4,718 questions
0
votes
0
answers
59
views
Script lagging so much when i hold down the 'q' key/hotkey
I'm trying to spam 'q' in game but only if some pixels are on-screen as condition, but I'm having a problem with it being super laggy when I hold down 'q' for a long period of time to spam it. And ...
1
vote
1
answer
109
views
AHKV1: With ControlGet, Is it possible to also get the column header names along with the items?
I am able to get the items of a SysListView321 using ControlGet:
ControlGet, OutputVar, List,, SysListView321, Options ahk_class #32770 ahk_exe Ditto.exe
Console(OutputVar)
Console() outputs:
...
0
votes
1
answer
937
views
Autohotkey showing clipboard content
I don't know what happens but I cant get the AHK to use show clipboard content.
#5::MsgBox, Clipboard / Error: Function calls require a space or "(". Use comma only
between parameters.
#5::...
0
votes
0
answers
117
views
When the script is restarted, another instance of the script may open by itself
As a result 3-4 identical scripts may hang in the tray, how can you fix this?
Here is the upper part of the script:
`SetWorkingDir %A_ScriptDir%
#SingleInstance Force
#Persistent
#NoEnv
#...
0
votes
2
answers
396
views
Paste text with an embedded hyperlink using AutoHotKeys
I just began AutoHotKeys today, and am still unfamiliar with how most of it works, but I have been able to successfully create a host of auto-replace hotkeys. I am now trying for my first more ...
0
votes
1
answer
277
views
Script for sending whatsapp to number + trimming
I created a script that uses whatsapp api, it takes selected/clipboard number and builds the URL from there. I managed to make that work ( i'm new to AH ) but I'm not being able to trim spaces ( which ...
0
votes
1
answer
30
views
How to write COPY for New Keys in AutoHotKey
I want to use AutoHotKey to do COPY, CUT and PASTE
On my Keyboard there 5 keys called A, B, C, D, E on top of F2-F6
I want to use
A for COPY
B for CUT
C for PASTE
I used Key History to identify these ...
1
vote
2
answers
3k
views
PowerShell to start a script at startup with Task Scheduler
I want to automate the running of my AutoHotkey toolkit using Task Scheduler because the "Startup" folder also throws up a CMD screen when it starts, and this method does not. However, I ...
0
votes
1
answer
187
views
AltGr + Space AHK script makes ctrl stuck
When I write in Polish I have to use right Alt (AltGr) to write special symbols. Sometimes when the symbol was at the end of the word I would press space before releasing alt, which would not produce ...
-1
votes
1
answer
287
views
How can I download an url source html to a string in autohotkey v2
I'm new here, hope I'm doing things the right way!
I want to dl this URL, I've done it before (with help) but now I accidentally deleted my source, and I can't remember where I got help or what the ...
4
votes
1
answer
618
views
Multiple key press detection with AHK
I am using the following AutoHotkey script originally written by Laszlo to detect single, multiple, short and long presses of the Ctrl key:
Morse(timeout = 150) { ;
tout := timeout/1000
key := ...
3
votes
1
answer
2k
views
How do I create a POST request using AutoHotKey V2?
How do I create a POST Rest API request using AutoHotKey V2? Every existing script I can find on the internet applies only to AutoHotKey V1. Are there existing utility scripts that faciliate this ...
1
vote
1
answer
129
views
How to send a block of text with various indent of the text?
How can I send a text with AutoHotKey that results text output as below ?
Alfa
Bravo
Charlie
Delta
I have tried to use this operation:
text =
(
Alfa
Bravo
Charlie
Delta
)
Send % text
...
0
votes
0
answers
520
views
How do I find out which key is pressed, when it's a non standard key, absent on the majority of keyboards?
My ASUS G553Q whatever has a Microphone Mute key, which doesn't function correctly anymore. I want to use AHK to intercept the key and replace it with F24, which I'll bind to mute in discord, the ...
0
votes
1
answer
143
views
Is there a way to specify paste directly after right mouse click in AutoHotkey v2?
Is there a way to specify paste directly after right mouse click in AutoHotkey v2?
Current code
<^z::Send, {RButton}{p}
Problem /
There are multiple shortcuts (p) in the right-clicked menu
Other /
...
1
vote
0
answers
72
views
Long / Short press a key?
I would like to do this :
if Ctrl was pressed down for more than 200ms (long press)
It doesn't anything
if the key was pressed down for less than 200ms (short press), send("a")
I got these :
...
1
vote
2
answers
257
views
Remapping Unaccented Vowels into Accented Ones using AHK (AutohotKey) - 2 ISSUES & REQUESTS
thanks in advance for your valuable and diligent assistance !
I have a little Qwerty laptop and I'm trying to remap unaccented vowels into accented ones using AHK (AutohotKey).
ISSUE #1:
For example, ...
0
votes
0
answers
111
views
How to handle AutoHotKey "suspend" in Python
I'd like to convert this AHK script into a Python script, but I really don't understand this suspend on AHK, can somebody help please?
LButton::
Send {WheelDown}
return
F2::Suspend
Here's my Python ...
0
votes
1
answer
242
views
AHK: Middle-mouse should drag-lock
Recently got new Windows 11 computer, can't get used to the "Tap twice and drag to multi-select" touchpad setting, on my PC it starts selecting just when I'm trying to move mouse right after ...
2
votes
1
answer
103
views
Simple AHK script, trying to understand if this is expected or if I'm doing something wrong
Here is the code:
*Lalt::return
#if GetKeyState("Lalt", "P")
a::
b::
if GetKeyState("shift", "P")
send ^+{%A_ThisHotkey%}
else
...
1
vote
2
answers
453
views
"Press any key to exit" command prompt?
^!a::
hwnd := WinExist("A")
for Window in ComObjCreate("Shell.Application").Windows
if (window.hwnd==hwnd) {
Selection := Window.Document....
0
votes
2
answers
755
views
How do I bind a key to open a folder in Visual Studio Code?
I want to open a folder in Visual Studio Code when I press a button. Can I bind this with AutoHotkey v1?
0
votes
1
answer
66
views
Hotkey problem with (AltGr) (<^>!) (LCtrl & RAlt)?
I want while holding down "AltGr " then(and) "SC033" it stills doing undo, undo, undo ... until release "SC033".
as for <^>!p the same thing for <^>!SC033 ...
0
votes
1
answer
102
views
How to detect when a running script is modified and reload?
I have an AutoHotkey file running on a Google Drive folder on a remote machine and i'm trying to make it reload itself whenever it detect it got modified.
Is there a method to subscribe to file ...
0
votes
1
answer
50
views
How to reformulating a formula to another in AHK?
#If WinActive("Program Manager ahk_class Progman")
~LButton::
CoordMode, Mouse, screen
MouseGetPos, x,y
if (x > 100 and x < 200 and y > 300 and y < 400){
SoundBeep, 1000
}
#...