Search found 4763 matches

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: 275
Views: 69088

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: 275
Views: 69088

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: 275
Views: 69088

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: 275
Views: 69088

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: 999
Views: 405124

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: 8
Views: 545

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

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

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

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

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

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

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: 79
Views: 13949

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

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

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

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: 275
Views: 69088

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

Re: InputHook small improvement - different keyboards

AHI 0.5.0 now has a function to subscribe to all keys on a specific keyboard
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: 275
Views: 69088

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

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

Go to advanced search