TaranVH / 2nd-keyboard

ALL of Taran's scripts - not just for the 2nd keyboard.
https://www.youtube.com/watch?v=O6ERELse_QY
1.66k stars 534 forks source link

How can i launch Interception during startup and make it run in the background? #66

Closed weizenyang closed 4 years ago

TaranVH commented 5 years ago

check the pull requests and solved issues I believe someone made something that does that. [actually, I just checked, and saw no such thing. I remember SOMETHING about it, though...] I have not yet implemented it myself - because i have to wait for lots of stuff to load during startup anyway. all i have now is a shortcut to it in my startup folder - but this does not hit "y" for me. Let me know if you figure it out!

XLENet commented 5 years ago

Shouldn't this be as easy as configuring a Windows startup task?

TaranVH commented 5 years ago

lol maybe! Feel free to share with the class! I've never bothered to figure it out, because the PC is always loading a bunch of other stuff at that time anyway, so it does not slow me down to have to do it manually.

Jerreu commented 5 years ago

I suppose you mean launching the Lua Macros script, in which case, you could, as I did, put your AHK script into Autostart and then do something like this:


CoordMode, Mouse, Screen
MouseGetPos, txpos, typos
Sleep, 500
Click, --coordinates of the "Play" Button; You can get them using Window Spy, which comes with Ahk--
Click, --coordinates of the Minimize Button; this will hide it and put it into the tray, because lmc.minimizeToTray is set to true in the Lua File--
MouseMove, %txpos%, %typos%```
DennysOliveira-2 commented 5 years ago

About the "hit on Y", you can just create a batch with

start /min intercept.exe /apply
minimize

The /apply does the thing about the need to hit y. I still haven't figured out how to make it run on tray, or anything like that, but as it starts and stays minimized I just fixed it at the toolbar al it always start and I forget it. image

DennysOliveira-2 commented 5 years ago

Then just paste their shortcuts at the startup folder image

Edit: Keeep in mind that you should put the original batch launch file at Intercept.exe root folder.

oliver-ni commented 5 years ago

To solve the problem of the hanging command line window, try this vbscript (.vbs):

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "intercept.exe /apply", 0, true
MayhemBill commented 5 years ago

This saved my life. Packing intercept into the vbs and setting it to autorun on startup makes this a whole lot easier.

PotatoJet commented 4 years ago

Then just paste their shortcuts at the startup folder image

Edit: Keeep in mind that you should put the original batch launch file at Intercept.exe root folder.

Which you use now?Intercept.exe Or Hasu_USB?

PotatoJet commented 4 years ago

This saved my life. Packing intercept into the vbs and setting it to autorun on startup makes this a whole lot easier.

Which you use now?Intercept.exe Or Hasu_USB?

MayhemBill commented 4 years ago

I just got a Streamdeck. Way easier.

PotatoJet commented 4 years ago

96 See it

PotatoJet commented 4 years ago

Please close this issue!!!

Agasthya7 commented 3 years ago

This saved my life. Packing intercept into the vbs and setting it to autorun on startup makes this a whole lot easier.

Can you elaborate on how I can make the vbs file run on startup. Tried a lot of ways but it just doesn't run

daominh89 commented 2 years ago

This saved my life. Packing intercept into the vbs and setting it to autorun on startup makes this a whole lot easier.

Can you elaborate on how I can make the vbs file run on startup. Tried a lot of ways but it just doesn't run

So you first create a vbs file in intercept original folder with the following code:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "intercept.exe /apply", 0, true

Then create a shortcut in startup folder that point to this vbs file