4,723 questions
0
votes
1
answer
55
views
Prevent <modifier> & <key> hotkey from firing if the <key> is already held down?
I have this issue I have been unable to solve elegantly. I provided the below code as a reproducible sample
If I trigger shift + f23, then release shift but still holding down f23, if I press control, ...
0
votes
1
answer
35
views
How can I bridge AHK hotkeys to a Chrome extension using a Python native host (named pipe attempt)?
Goal
I'm trying to build a minimal working system where pressing a key in AutoHotkey (AHK) sends a message to a Chrome Extension, via a Python native messaging host.
The architecture is:
AHK → Named ...
1
vote
1
answer
48
views
Triggering simultaneous key press and hold in AutoHotKey
how do i get WASD to mirror the exact same actions that the arrow keys do?
Say if I hold the Up arrow key for a few seconds I'm trying to get W to mirror the same.
This is what I've tried so far
Up:...
0
votes
0
answers
25
views
AHK Function not returning result properly
I am relatively new in AHK so I apologize for my basic lack of knowledge.
I have the following script:
xpos1=
xpos2=
SetMouseDelay,-1
SetBatchLines, -1
col_outher_circle=0xFFFFFF
col_gray_area=...
-2
votes
0
answers
25
views
sleep time in gui between two send commands
is it possible to add in my gui sleep timer
to know when will the next command be sent?
there's my gui and loop command with sleep which have 120seconds, so i wanna add this timer on my gui
global ...
0
votes
0
answers
24
views
AHK - how to do it for multiple files
the below code works and it is for a single file. How could the code be modified to work for an array or multiple files? The code basically triggers a backup job with its status shown on a progress ...
-4
votes
0
answers
53
views
AHk/AHI Script sends wrong keys
I'm trying to make a AHK script (v2.0), using AHI as well, for a improvised button box made with 2 small keyboards, to use when playing Eurotruck Simulator 2. The script seems to work fine for a bit, ...
-2
votes
0
answers
31
views
Why does my script send RMB events randomly? [closed]
I have a script for animation cancelling in Stardew Valley that experiences unintended behavior. When I press the Space bar key, the script performs a Left Mouse Button click followed by a Right Shift ...
0
votes
1
answer
61
views
Make AutoHotKey produce uppercase text in timestamp
I am using the following AutoHotKey script on the CTRL-ALT-D keyboard shortcut.
^!d::
FormatTime, CurrentDateTime,, ddd dd MMM yyyy @HH:mm
SendInput, %CurrentDateTime%
return
This one ...
0
votes
2
answers
100
views
Autohotkey (AHK): map some types of mouse clicks
In Windows,with AutoHotKey (AHK),
how do I substitute each middle-click to be shift- click
Also is it possible to map middle-drag to be ctrl-drag?
Here is why: I am one-handed and I cannot use the ...
0
votes
0
answers
14
views
Use AHK v1 to load ADB screencap directly into memory
I recently asked about using AHK to save an ADB screencap to a file. The next step in my script was to load that PNG into memory via Gdip. Now, I'm wondering if I can skip the file entirely.
Is there ...
0
votes
0
answers
23
views
How to make key presses stick from one command to the next?
I am on Windows 11 and have swapped the Alt and Ctrl keys to emulate keypresses on a MacBook.
Consider the following sequence of keypresses to cut everything and paste, which works:
Alt (Ctrl) + A =&...
0
votes
1
answer
39
views
Using AHK v1 to save a screenshot from adb (redirect binary output to a file)
In an AHK script, I'm trying to redirect the binary output from adb to a file. adb exec-out screencap -p > Screenshot.png However, it looks like AHK's RunWait doesn't really handle binary output.
...
0
votes
1
answer
85
views
The class name of the control is different in different PC
I want to jump to the corresponding input box by the class name of the control, and then enter the data in the CSV. This code works on my PC, but I found that the class name of the control is ...
0
votes
1
answer
83
views
How can I close a stuck window using AHK or Python?
I have a Chromium based software that is really buggy, for some reason some windows of that process become unkillable, I can move them around but I cannot close them.
I've tried to use winclose and ...