Search found 4785 matches

by evilC
15 Dec 2019, 17:28
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98990

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

AHI v0.5.0 has been released! Added SubscribeKeyboard and SubscribeMouseButtons to subscribe to all keys or buttons on a device The old undocumented Monitor class has been removed, Monitor.ahk now uses the new SubscribeKeyboard / SubscribeMouseButtons functions Added some development tools to help m...
by evilC
15 Dec 2019, 16:20
Forum: Bug Reports
Topic: InputHook sees multiple press/release events for single press of NumLock
Replies: 1
Views: 1919

InputHook sees multiple press/release events for single press of NumLock

#SingleInstance force Sleep 100 ; When hitting F5 to run script in SciTE, release of F5 appears in list. Suppress ih := InputHook() ih.KeyOpt("{All}", "SN") ih.OnKeyDown := Func("AhkKeyEvent").Bind(1) ih.OnKeyUp := Func("AhkKeyEvent").Bind(0) ih.Start() Gui, Add, ListView, h200, Key Name|SC|State L...
by evilC
15 Dec 2019, 12:41
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98990

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

scriptors wrote:
09 Dec 2019, 15:10
Sorry but I can't install and work with AutoHotInterception … strange but true :(

I use Autohotkey_H (on Win10 64) and if i try Monitor.ahk have this:
I will try and look into it
Raised issue: https://github.com/evilC/AutoHotInterception/issues/56
by evilC
15 Dec 2019, 12:40
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98990

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

dsieburgh wrote:
15 Dec 2019, 05:36
The Pause/Break Key. Using the Monitor AHK you provided, if I press Pause/Break it shows Numlock(1/0 states)+LControl(4/5 states) and when I only press Numlock I get Numlock Keyname (just 0/1 states).
Confirmed, this is a bug.
Raised issue: https://github.com/evilC/AutoHotInterception/issues/55
by evilC
15 Dec 2019, 12:36
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98990

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...
by evilC
22 Nov 2019, 13:59
Forum: Scripts and Functions
Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
Replies: 25
Views: 12109

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+
by evilC
22 Nov 2019, 10:37
Forum: Scripts and Functions
Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
Replies: 25
Views: 12109

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...
by evilC
20 Nov 2019, 05:39
Forum: Scripts and Functions
Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
Replies: 25
Views: 12109

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...
by evilC
13 Nov 2019, 19:34
Forum: Scripts and Functions
Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
Replies: 25
Views: 12109

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
by evilC
05 Nov 2019, 12:28
Forum: Wish List
Topic: InputHook small improvement - different keyboards
Replies: 6
Views: 3390

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...
by evilC
05 Nov 2019, 12:21
Forum: Wish List
Topic: InputHook
Replies: 18
Views: 5585

Re: InputHook

serzh82saratov wrote:
05 Nov 2019, 11:58
And, if I understand you correctly, then I do not propose a new OnKeyUp method, I only suggest a parameter for OnKeyDown.
Having OnKeyDown fire events for key up seems wrong - pointless to break backwards compatibility and make the name misleading
by evilC
05 Nov 2019, 12:20
Forum: Wish List
Topic: InputHook
Replies: 18
Views: 5585

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: 13643

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: 5585

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: 13643

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: 13643

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: 13643

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: 285
Views: 98990

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: 285
Views: 98990

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...

Go to advanced search