Search found 4820 matches

by evilC
23 Aug 2019, 16:28
Forum: Scripts and Functions (v1)
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 345
Views: 199526

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

v0.4.8 of AHI has been released! https://github.com/evilC/AutoHotInterception/releases/tag/v0.4.8 Fixed the bug @tmplinshi just reported Updated the Monitor app - there are now Copy buttons to copy the VID/PID of your device to the clipboard [Edit] I forgot to prefix the VID/PID with 0x, so I delete...
by evilC
23 Aug 2019, 11:55
Forum: Scripts and Functions (v1)
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 345
Views: 199526

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

Ohh, I think I maybe see the issue - it's passing true/false, but the GetDeviceIdFromHandle method uses a lookup table with 1/0 for keys. I am not sure what I was smoking when I wrote that Does this also fix it? [code] GetKeyboardIdFromHandle(handle, instance := 1) { return this.GetDeviceIdFromHandl...
by evilC
23 Aug 2019, 07:37
Forum: Scripts and Functions (v1)
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 345
Views: 199526

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

Did you unblock the DLLs?
What version of AHK are you using? If 64-bit, try 32-bit unicode
by evilC
20 Aug 2019, 10:50
Forum: Scripts and Functions (v1)
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 345
Views: 199526

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

installed driver (I think)
It should be very obvious if you did it right, you will get a response back from the command-line saying that install was successful.
Did you maybe just double-click the EXE instead of running it from a command-line?
by evilC
15 Aug 2019, 15:51
Forum: Scripts and Functions (v1)
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 345
Views: 199526

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

v0.4.6 has been released!
  • Added MoveCursor method to move the cursor to a specific position
    This is similar to the AHK MouseMove command
  • NumLock is now bindable
by evilC
14 Aug 2019, 06:45
Forum: Ask for Help (v1)
Topic: AHK works sporatically
Replies: 2
Views: 770

Re: AHK works sporatically

If an application only sees keys send by the script intermittently, Delete the line SendMode, Input and add the line SetKeyDelay, 0, 50 in it's place. The problem is that the game is polling for key state (Likely once every 50ms or so) and when it does not work, what is happening is that AHK is pres...
by evilC
05 Aug 2019, 04:42
Forum: Ask for Help (v1)
Topic: Are there other alternatives? (class_dd , winring0)
Replies: 2
Views: 849

Re: Are there other alternatives? (class_dd , winring0)

See AutoHotInterception, linked in my signature
by evilC
05 Aug 2019, 04:41
Forum: Ask for Help (v1)
Topic: Help adding GUI to my script. (script works, not with GUI)
Replies: 1
Views: 331

Re: Help adding GUI to my script. (script works, not with GUI)

Without code it would be pretty hard to help you
If you want a user-defined hotkeys system, I have a library that will do that for you here: https://www.autohotkey.com/boards/viewtopic.php?t=38651
by evilC
02 Aug 2019, 04:28
Forum: Scripts and Functions (v1)
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 345
Views: 199526

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

That's the Interception driver, which this library uses We tried to pay the money to get that upgraded version, but he would not sell for a one off fee - instead he set up a patreon account and asked for a monthly income and would release it after 6 months or so. You can see the conversation here: h...
by evilC
31 Jul 2019, 05:14
Forum: Ask for Help (v1)
Topic: Specify joystick ID number
Replies: 2
Views: 1081

Re: Specify joystick ID number

The WinMM API (What AHK uses to read joysticks) does not support this - you can swap around IDs using PJP JoyIDs tho. One potential solution is to read the sticks via DirectInput instead - see JoystickWrapper for a DirectInput library for AHK. With JoystickWrapper, you select sticks using a GUID, wh...
by evilC
31 Jul 2019, 04:56
Forum: Scripts and Functions (v1)
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 110
Views: 44420

Re: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick button

"there is no such dll in the download"
The copy step (Step 3) uses a file that you used in step 1 (Install interception), so if you are on step 3, this cannot possibly be true
by evilC
30 Jul 2019, 10:46
Forum: Scripts and Functions (v1)
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 110
Views: 44420

Re: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick button

if (!state) is probably your problem. On a hold, state will be 1 when the hold triggers, then 0 when you release the key For a tap, state is always -1, which is logically true, so your Taps code will never trigger on a tap, but will trigger on a hold Your code structure should be more like this: My...
by evilC
29 Jul 2019, 10:34
Forum: Ask for Help (v1)
Topic: Need Help with Surface Pen (4 functions for 1 Button, including Toggles)
Replies: 3
Views: 1757

Re: Need Help with Surface Pen (4 functions for 1 Button, including Toggles)

Forgetting for the moment about your issues detecting multi-tap, are you saying that the surface pen is sending normal mouse left/right/middle click? If so, I take it that you wish to rebind these actions ONLY when coming from the surface pen, but NOT when coming from your normal mouse? If this is t...
by evilC
25 Jul 2019, 05:04
Forum: Ask for Help (v1)
Topic: XBOX One Controller
Replies: 9
Views: 25077

Re: XBOX One Controller

What on earth makes you think XINPUT_GAMEPAD_A:: is a valid hotkey, or a valid syntax for the Send command? AHK simply cannot send XInput, period, let alone using that syntax for input You are literally saying "Why does this feature that I just made up not work?" Because you made it up and it is not...
by evilC
25 Jul 2019, 04:50
Forum: Ask for Help (v1)
Topic: Wait function Topic is solved
Replies: 11
Views: 1444

Re: Wait function Topic is solved

Oops, slight typo If ( ErrorLevel == 1 ) ; Found should be If ( ErrorLevel == 0 ) ; Found
Also, AFAIK, RGB mode is neither faster nor slower than BGR mode.
by evilC
24 Jul 2019, 14:15
Forum: Ask for Help (v1)
Topic: Wait function Topic is solved
Replies: 11
Views: 1444

Re: Wait function Topic is solved

Your first if just checks if ErrorLevel is "true", which both 1 (Found) and 2 (Error) are The second IF check is also always true as you check if something is itself: If ( p_DesiredColor = p_DesiredColor ) I think you want If ( ErrorLevel == 2 ) ; Error Return ( p_ReturnColor ? p_DesiredColor : 1 ) ...
by evilC
24 Jul 2019, 12:47
Forum: Ask for Help (v1)
Topic: Wait function Topic is solved
Replies: 11
Views: 1444

Re: Wait function Topic is solved

You can return whatever you like from your own function, and these values do not need to be the same as the ERRORLEVEL codes from PixelSearch Your PixelSearch seems wrong though, surely instead of l_OutputColor you want p_DesiredColor? As you have a bunch of parameters for the function anyway, may a...

Go to advanced search