Search found 4785 matches

by evilC
19 Nov 2020, 10:51
Forum: Ask For Help
Topic: Listen to keystrokes during script execution
Replies: 12
Views: 1449

Re: Listen to keystrokes during script execution

With that code, KeyPress() is never getting called because you changed the signature - you have 4 parameters (extra type parameter) instead of 3
by evilC
19 Nov 2020, 10:41
Forum: Ask For Help
Topic: Listen to keystrokes during script execution
Replies: 12
Views: 1449

Re: Listen to keystrokes during script execution

Oh, you mean AHK hotkeys, not normal windows shortcuts - totally different thing.
If the AHK hotkey definitions you have are context sensitive, then if the context is active, they will override the ones declared by AllKeyBinder
by evilC
19 Nov 2020, 09:22
Forum: Ask For Help
Topic: Listen to keystrokes during script execution
Replies: 12
Views: 1449

Re: Listen to keystrokes during script execution

By default it won't block the keys (Allowing existing shortcuts to work) There's an optional 2nd parameter ("pfx") that is used as a prefix for all hotkeys it declares, and it defaults to ~ This can be overridden in the constructor eg kb := new AllKeyBinder(Func("MyFunc"), "*") to make keys block an...
by evilC
06 Nov 2020, 06:56
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 110
Views: 28364

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

You need quotes around those words
if if (t= "rettangolo")
by evilC
21 Oct 2020, 04:42
Forum: Gaming
Topic: WhiteKnight - Block games from being able to see sticks using ViGEm
Replies: 22
Views: 38738

Re: WhiteKnight - Block games from being able to see sticks using ViGEm

AutoWhitelister.exe is Autohotkey.exe renamed When you run AutoWhitelister.exe, it launches AutoWhitelister.ahk The app minimizes to tray, so maybe why you are seeing no GUI is that it is minimized to the tray. However, this does not sound like what is happening, you should not see any CMD window at...
by evilC
20 Oct 2020, 05:55
Forum: Gaming
Topic: WhiteKnight - Block games from being able to see sticks using ViGEm
Replies: 22
Views: 38738

Re: WhiteKnight - Block games from being able to see sticks using ViGEm

If you no longer want to use it, then yes, you should remove it. HG is a driver, HC is a service WhiteKnight can do the uninstall for you - if the button next to each says "Install", then it is not installed and clicking the button will install it. If it is installed, then the button will say "Unins...
by evilC
04 Sep 2020, 15:06
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 110
Views: 28364

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

Demo.ahk demonstrates exactly this - two completely separate grammars - "Volume" and "Call Contact", both using the same hotvoice object

Code: Select all

volumeGrammar := hv.NewGrammar()
;...
contactGrammar := hv.NewGrammar()
; ...
by evilC
01 Sep 2020, 09:25
Forum: Scripts and Functions
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 40
Views: 15163

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

1) Nothing stopping that, no 2) Hmm, not entirely sure why that happens, I suppose maybe if you hit the space very quickly after the e, then the callback does not have time to fire before the space is processed. I guess you could add space as a THM key too? 3) Not familiar with it, no 4) Not really ...
by evilC
25 Aug 2020, 09:28
Forum: Scripts and Functions
Topic: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)
Replies: 25
Views: 12090

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

My library uses StreamDeckSharp as the underlying library that communicates with the SD, so I doubt it is something I can add support for myself. Maybe ask on their page if it supports GIFs for button images, or if it is a planned feature? Looks like he is still updating it... https://github.com/Ope...
by evilC
07 Aug 2020, 17:35
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 110
Views: 28364

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

AHK's Suspend command suspends hotkeys in the same script as the one executing the suspend command, and that script has no hotkeys in it, so clearly it will do nothing.
by evilC
20 Jul 2020, 13:44
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 110
Views: 28364

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

If you unzip the zip,all the files should be in the right place and the demo scripts should work.
Are you sure you are downloading a release, or are you maybe using the green "clone or download" button on the main page.
Do you have the DLLs in your zip?
by evilC
20 Jul 2020, 13:38
Forum: Bug Reports
Topic: * prefix breaking issue
Replies: 1
Views: 786

* prefix breaking issue

There's something odd going on with this code, and the only really pattern that I can see is that using the * prefix seems to cause bugs Specifically, with pfx := "*" , then a press of backspace triggers backspace down:: but a release of backspace triggers ^backspace up:: No such problem with pfx :=...
by evilC
20 Jul 2020, 13:05
Forum: Scripts and Functions
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 40
Views: 15163

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

Yeah, I used the following test code and there definitely seems to be something strange going on #NoEnv #Persistent #singleinstance, force #include Lib\TapHoldManager.ahk ;~ Notepad:= new TapHoldManager( 200, 400, 2, "$*","ahk_exe notepad.exe" ) ;~ Notepad:= new TapHoldManager( 200, 400, 2, "$*") No...
by evilC
20 Jul 2020, 11:35
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 110
Views: 28364

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

There's only one command in the unblocker ps1 script - just make sure you have an admin powershell prompt active, copy the one line of code from the ps1 file, then paste it into an admin powershell prompt and run it The alternative to even needing the blocker is to unblock the files whilst they are ...
by evilC
09 Jul 2020, 18:55
Forum: Scripts and Functions
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 40
Views: 15163

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

I already did, and it did exactly what you said it should do - double tap of left or right sends home or end, I don't see what the problem is
by evilC
29 Jun 2020, 04:09
Forum: Scripts and Functions
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 40
Views: 15163

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

global is needed because functions have their own local variable space. Without global ahi , the function would not be able to use the ahi variable that was declared outside the function state holds the state of the input key - for a tap, it is always -1, but on a hold, it is 1 when you press the ke...
by evilC
27 Jun 2020, 20:11
Forum: Scripts and Functions
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 40
Views: 15163

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

Only support for the same key is built into the library, but no reason you could not implement that functionality yourself by just subscribing to e and space, and only enabling the space subscription once e was tapped twice #include Lib\TapHoldManager.ahk thm := new TapHoldManager() thm.add("e", fun...
by evilC
22 Jun 2020, 07:50
Forum: Scripts and Functions
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 40
Views: 15163

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

RapidHotkey only supports multi-tap
THM supports multi-tap, long-press, and multi-tap followed by long-press
From what I can tell, THM does everything RapidHotkey does and more

Go to advanced search