Search found 4768 matches

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: 25
Views: 9652

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: 25
Views: 9652

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: 25
Views: 9652

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
by evilC
31 May 2020, 14:41
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 83
Views: 18821

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

Switch syntax is wrong, you need quotes around each option
Case "Word":
by evilC
10 Apr 2020, 14:39
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 89739

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

phasermaniac You appear to be correct https://github.com/evilC/AutoHotInterception/issues/62 I have released AHI 0.5.1 with a fix ### Added - AHI now supports scripts being compiled. You will still need the DLLs from the Lib folder, but not the AHK scripts ### Fixed - Fix issue 62 - x=0/y=0 never r...
by evilC
20 Jan 2020, 06:24
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 89739

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

i Moved the F7:: command to auto-execute section, but is not working as itended. If i place a While after if (!state), script runs forever. If i remove While, it runs only once.It seems loop is not properly set up. This is because you do not understand how threading works in AHK. Your first example...
by evilC
18 Jan 2020, 06:26
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 89739

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

Move the subscribe command to the auto-execute section AHI := new AutoHotInterception() keyboardId := AHI.GetKeyboardId(0x0E8F, 0x0041) ; The "true" parameter in SubscribeKey tells AHI to BLOCK (Hide from the OS) this key. AHI.SubscribeKey(keyboardId, GetKeySC("NumpadHome"), true, Func("KeyEvent")) ...
by evilC
17 Jan 2020, 16:52
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 89739

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

AHI monitor gives code 71 when i press that button Then you already have the key code and don't need to use GetKeySC() to find the code from the name the double colon execute the script when proper button is pressed. (at least that supposed to do) No, double colon syntax is specific to AHK hotkeys,...
by evilC
17 Jan 2020, 16:29
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 284
Views: 89739

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

Much WTF in that script. AHI.SendKeyEvent(keyboardId, GetKeySC("71"), 1) :: GetKeySC("71") there is no such key as "71" :: Why is there a double-colon here?? Even if the SendKeyEvent command did work, all the code would do is press and hold one key for ever, so no idea why you would want that It loo...
by evilC
17 Jan 2020, 07:46
Forum: Gaming
Topic: Universal Control Remapper (UCR) - v0.1.22 28th Oct 2018
Replies: 1006
Views: 492821

Re: Universal Control Remapper (UCR) - v0.1.22 28th Oct 2018

Your problem is going to be hiding the input from the game
When in "smooth pan" mode, you need to stop the game from seeing the normal input and generate your own
This would require something like windows hooks or AutoHotInterception (see link in sig)
by evilC
17 Jan 2020, 07:40
Forum: Gaming
Topic: Game blocking mouse clicks from AHK
Replies: 9
Views: 1418

Re: Game blocking mouse clicks from AHK

Run the script as admin
by evilC
17 Jan 2020, 07:40
Forum: Gaming
Topic: Minecraft - problem with MoveMouse
Replies: 1
Views: 618

Re: Minecraft - problem with MoveMouse

Most mouse aim games do not take input from the CURSOR, they take input from the mouse (Not the same thing)
MouseMove does not simulate mouse input, it simulates cursor movement
You need the mouse_event DllCall
by evilC
13 Jan 2020, 12:55
Forum: Gaming
Topic: Rapid fire stucks
Replies: 13
Views: 2523

Re: Rapid fire stucks

With just that code it gets stuck? Steps to reproduce?
by evilC
13 Jan 2020, 08:52
Forum: Ask For Help
Topic: Remap driver level key combinaison
Replies: 1
Views: 197

Re: Remap driver level key combinaison

AutoHotInterception (See link in Sig) will let you remap keys at a driver level
by evilC
13 Jan 2020, 04:42
Forum: Gaming
Topic: Rapid fire stucks
Replies: 13
Views: 2523

Re: Rapid fire stucks

Then just do

Code: Select all

*e::
If (eState)
   Return
eState := 1
SetTimer, Attack, 200
Return

*e up::
eState := 0
SetTimer, Attack, Off
Return
Using KeyWait to detect key up WILL CAUSE BUGS AND STICKING ISSUES. This technique doesn't
by evilC
09 Jan 2020, 18:54
Forum: Gaming
Topic: Rapid fire stucks
Replies: 13
Views: 2523

Re: Rapid fire stucks

It's pointless to use KeyWait to detect release of a key when you can just use an up event hotkey

Code: Select all

#MenuMaskKey vkFF
#InstallKeybdHook

SendMode, Input

Attack() {
    Send e
}

*e::
    SetTimer Attack, 200
    return

*e up::
    SetTimer Attack, Off
    return
by evilC
09 Jan 2020, 12:14
Forum: Gaming
Topic: Rapid fire stucks
Replies: 13
Views: 2523

Re: Rapid fire stucks

My guess is that it's nothing to do with GetKeyState not returning what it should, it's some other flaw in your code. When you say you also tried KeyWait, that's a huge red flag to me, indicating that you have blocking waits in your code, which is guaranteed to cause intermittent bugs in some scenar...
by evilC
07 Jan 2020, 18:25
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 83
Views: 18821

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

The powershell script needs to be run as admin
A simpler solution is just to right click the zip, select properties, check the unblock checkbox, then unzip the zip
by evilC
04 Jan 2020, 04:20
Forum: Gaming
Topic: Game randomly skips inputs
Replies: 1
Views: 420

Re: Game randomly skips inputs

SetKeyDelay is what you want, but it's incompatible with SendInput (Your current SetKeyDelay command does nothing because you used SendInput)
Replace all instances of SendInput with Send
by evilC
04 Jan 2020, 04:02
Forum: Gaming
Topic: Speedlink SL-6696 steering wheel with pedals
Replies: 1
Views: 389

Re: Speedlink SL-6696 steering wheel with pedals

AHK has no built-in support for virtual joysticks, period. If you are seeing stuff on the internet that seemed to indicate AHK could do this, you were probably looking at stuff referring to the AHK version of UCR , which has special libraries to handle this. That version of UCR is no longer supporte...

Go to advanced search