Search found 4821 matches
- 15 Dec 2019, 12:36
- Forum: Scripts and Functions (v1)
- Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
- Replies: 345
- Views: 203881
Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Hello I have successfully got my keyboards VID and PID. But I don't know how to detect which keyboard has send the keys. I need to know that because my goal is to change Windows keyboard layout into QWERTY if I use my QWERTY keyboard or into AZERTY layout if I use my AZERTY keyboard. In AHI, you su...
- 22 Nov 2019, 13:59
- Forum: Scripts and Functions (v1)
- Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
- Replies: 29
- Views: 27654
Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
Surely you can resize the image before you pass it to AHSD as an image.
Either a command-line tool or an API for AHK maybe like GDI+
Either a command-line tool or an API for AHK maybe like GDI+
- 22 Nov 2019, 10:37
- Forum: Scripts and Functions (v1)
- Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
- Replies: 29
- Views: 27654
Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
1) I don't think there is any way in AHSD to auto-size an image Does it change? If not, then just manually resize it using a paint app or something and use that 2) At the start of each example script is a line that calls AHSD.Instance.GetDeck() which is passed the number of the deck to connect to. T...
- 20 Nov 2019, 05:39
- Forum: Scripts and Functions (v1)
- Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
- Replies: 29
- Views: 27654
Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
You add an image to a canvas object #SingleInstance force #Persistent #include Lib\AutoHotStreamDeck.ahk AHSD := new AutoHotStreamDeck() ; Get a Deck object Deck := AHSD.Instance.GetDeck(1) ; Ask the Deck object to create a new Canvas Object canvas := Deck.CreateKeyCanvas(Func("KeyEvent")) ; Set a p...
- 13 Nov 2019, 19:34
- Forum: Scripts and Functions (v1)
- Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
- Replies: 29
- Views: 27654
Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
AHSD v0.3.2 has been released
Added support for the StreamDeck Mini and XL
Example script updated to work with multiple StreamDecks at the same time
Added support for the StreamDeck Mini and XL
Example script updated to work with multiple StreamDecks at the same time
- 05 Nov 2019, 12:28
- Forum: Wish List
- Topic: InputHook small improvement - different keyboards
- Replies: 6
- Views: 4915
Re: InputHook small improvement - different keyboards
AHKHID and HIDMacros can differentiate keyboards, but cannot block I forget if I added the functionality to AutoHotInterception to notify on all keys, but could add it if not - under the hood you subscribe to a whole device anyway, so it would be fairly simple to just add a flag to fire the callback...
Re: InputHook
Having OnKeyDown fire events for key up seems wrong - pointless to break backwards compatibility and make the name misleadingserzh82saratov wrote: ↑05 Nov 2019, 11:58And, if I understand you correctly, then I do not propose a new OnKeyUp method, I only suggest a parameter for OnKeyDown.
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...
- 05 Nov 2019, 11:28
- Forum: Announcements
- Topic: Test build - InputHook, long paths, switch-case
- Replies: 30
- Views: 25275
Re: Test build - InputHook, long paths, switch-case
Hmm, yeah, dunno wtf went wrong there, apologies
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,...
- 04 Nov 2019, 14:23
- Forum: Announcements
- Topic: Test build - InputHook, long paths, switch-case
- Replies: 30
- Views: 25275
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,, ...
- 04 Nov 2019, 14:20
- Forum: Announcements
- Topic: Test build - InputHook, long paths, switch-case
- Replies: 30
- Views: 25275
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...
- 04 Nov 2019, 11:08
- Forum: Announcements
- Topic: Test build - InputHook, long paths, switch-case
- Replies: 30
- Views: 25275
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 ...
- 13 Oct 2019, 12:31
- Forum: Scripts and Functions (v1)
- Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
- Replies: 345
- Views: 203881
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...
- 08 Oct 2019, 09:23
- Forum: Scripts and Functions (v1)
- Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
- Replies: 345
- Views: 203881
Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
No, you would need to manually handle that yourself
- 07 Oct 2019, 08:56
- Forum: Scripts and Functions (v1)
- Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
- Replies: 345
- Views: 203881
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...
- 25 Sep 2019, 08:31
- Forum: Ask for Help (v1)
- Topic: Passing a variable as a key to obtain an associative array value
- Replies: 2
- Views: 971
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
I see Engagement_IN_ARRAY being initialised, but don't see it being used anywhere
- 11 Sep 2019, 13:32
- Forum: Scripts and Functions (v1)
- Topic: .NET Framework Interop (CLR, C#, VB)
- Replies: 201
- Views: 119070
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?
Maybe also include some guides on how to set up Visual Studio .NET projects for easy use with AHK?
- 11 Sep 2019, 12:14
- Forum: Scripts and Functions (v1)
- Topic: .NET Framework Interop (CLR, C#, VB)
- Replies: 201
- Views: 119070
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 = ...
- 06 Sep 2019, 07:24
- Forum: Scripts and Functions (v1)
- Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
- Replies: 29
- Views: 27654
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...