Search found 4785 matches

by evilC
31 May 2020, 14:41
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 110
Views: 28305

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

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

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

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

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

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

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

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: 2
Views: 967

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

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

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

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

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

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: 110
Views: 28305

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

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

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...
by evilC
02 Jan 2020, 06:20
Forum: Ask For Help
Topic: Wacom pen / mouse wheel emulation
Replies: 1
Views: 379

Re: Wacom pen / mouse wheel emulation

AHK cannot differentiate input coming from one mouse-like device than another It also cannot block input coming from one device, but not block input coming from another Also, the WACOM tablet will be likely sending Absolute mouse data, not relative All of these issues can be solved using AutoHotInte...
by evilC
30 Dec 2019, 04:03
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 98622

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

It's because of the way compiled scripts work, AHI was not designed to work with compiled scripts
I made some changes, I think it should work if you use this newer version of AutoHotInterception.ahk: https://raw.githubusercontent.com/evilC/AutoHotInterception/master/Lib/AutoHotInterception.ahk
by evilC
15 Dec 2019, 18:13
Forum: Wish List
Topic: InputHook small improvement - different keyboards
Replies: 6
Views: 3381

Re: InputHook small improvement - different keyboards

AHI 0.5.0 now has a function to subscribe to all keys on a specific keyboard

Go to advanced search