Search found 4774 matches

by evilC
05 Nov 2019, 12:20
Forum: Wish List
Topic: InputHook
Replies: 18
Views: 5341

Re: InputHook

I’m talking about this, AutoHotkey already uses a hook, and I need to use another one of my own, and it does not work very reliably. You do not need to use another keyboard hook ; you can use the existing one, via hotkeys. When you register a key-up hotkey, all you are doing is telling AutoHotkey's...
by evilC
05 Nov 2019, 11:28
Forum: Announcements
Topic: Test build - InputHook, long paths, switch-case
Replies: 30
Views: 12912

Re: Test build - InputHook, long paths, switch-case

Hmm, yeah, dunno wtf went wrong there, apologies
by evilC
05 Nov 2019, 11:23
Forum: Wish List
Topic: InputHook
Replies: 18
Views: 5341

Re: InputHook

serzh82saratov See here for an example of filtering repeats, and also detecting key up. I build an array (KeyWatchTimers) of function objects for held keys, and have a timer running for each one checking for key release using GetKeyState Note that in my case I want to support holding multiple keys,...
by evilC
04 Nov 2019, 14:23
Forum: Announcements
Topic: Test build - InputHook, long paths, switch-case
Replies: 30
Views: 12912

Re: Test build - InputHook, long paths, switch-case

Here is a demo of a Bind Mode routine for a Dynamic Hotkeys system using InputHook I implemented my own detection for key release /* Demo of using InputHook to power a Dynamic Hotkeys system */ #SingleInstance force OutputDebug, DBGVIEWCLEAR kb1 := new KeyBinder() kb2 := new KeyBinder() Gui, Show,, ...
by evilC
04 Nov 2019, 14:20
Forum: Announcements
Topic: Test build - InputHook, long paths, switch-case
Replies: 30
Views: 12912

Re: Test build - InputHook, long paths, switch-case

Also, there seems to be a problem with InputHook and classes: Assigning ih to local variable, then to property works (However note that inputHook is not passed to OnKeyEvent as it is with a normal function) kb := new KeyBinder() kb.Start() class KeyBinder { __New(){ ih := InputHook() ih.KeyOpt("{All...
by evilC
04 Nov 2019, 11:08
Forum: Announcements
Topic: Test build - InputHook, long paths, switch-case
Replies: 30
Views: 12912

Re: Test build - InputHook, long paths, switch-case

lexikos could we get OnKeyUp for InputHook as well as OnKeyDown? I am looking into the possibility of using InputHook to write a dynamic hotkeys solution, however the current implementation does not seem to be great for allowing multi-key combos - eg if trying to bind A + B, the code has no way of ...
by evilC
13 Oct 2019, 12:31
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 91760

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

v0.4.10 has been released! Devices now poll at 1ms instead of ~15ms This now means that if you are using a mouse set to 1000hz updates, AHK will be notified of mouse movement much more rapidly. However, this may result in very high CPU load as AHK is not very suitable for this high a rate of input s...
by evilC
07 Oct 2019, 08:56
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 91760

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

This is a known issue, adding more conditions to a #If statement increases the delay, and I *think* #if statements have a certain amount of time to resolve true or false before AHK just assumes false. What you could try is to set a global variable to indicate which app is active, as that may resolve...
by evilC
25 Sep 2019, 08:31
Forum: Ask For Help
Topic: Passing a variable as a key to obtain an associative array value
Replies: 2
Views: 484

Re: Passing a variable as a key to obtain an associative array value

I don't see Description_IN_ARRAY[] being initialised anywhere, are you sure it's an array?
I see Engagement_IN_ARRAY being initialised, but don't see it being used anywhere
by evilC
11 Sep 2019, 13:32
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 159
Views: 68995

Re: .NET Framework Interop (CLR, C#, VB)

Thanks, how about maybe we create a repo on GitHub for CLR interop stuff where we can collect code snippets, tricks and tips?
Maybe also include some guides on how to set up Visual Studio .NET projects for easy use with AHK?
by evilC
11 Sep 2019, 12:14
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 159
Views: 68995

Re: .NET Framework Interop (CLR, C#, VB)

I recently noticed qwerty12's post about parsing a List<T> from .NET code and had a stab at writing a wrapper class to handle it all, this is what I came up with so far - basically it lets you Count(), MaxIndex() etc as well as enumerate a List<T> as if it were an AHK array: #include CLR.ahk code = ...
by evilC
06 Sep 2019, 07:24
Forum: Scripts and Functions
Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
Replies: 23
Views: 10404

Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)

There is no installation, AHK scripts do not need to be installed You cannot use it to call functions in other scripts, as AHK does not support this Code within an AHSD script creates a button on an SD device, which you then point at a function in that same script I am not sure if you can run multip...
by evilC
29 Aug 2019, 03:24
Forum: Scripts and Functions
Topic: CvJoyInterface - A new, class based vJoy library
Replies: 18
Views: 14941

Re: CvJoyInterface - A new, class based vJoy library

It says in the first post why I wrote another version. If you already have working code, no need to change
by evilC
23 Aug 2019, 16:28
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 91760

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
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 91760

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
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 91760

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
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 91760

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?

Go to advanced search