4,718 questions
0
votes
3
answers
128
views
How do I define a source file that's within a zip file?
I'm basing my attempts on this answer but I'm having no luck. I'm running it from AutoHotkey on Windows, but I'm also unable to get it to run from a command line.
The default folder is set with this ...
0
votes
1
answer
45
views
Reading & Writing in a file and changing the state of a checkbox depending on true or false (AHK v1)
I have a problem i've lingering on for a whole day. So i have this program that has a config file (need one). That ofc keeps all the settings in it for whenever the program is closed.
Tho i have a ...
0
votes
0
answers
58
views
why does the 'if' block also trigger after the 'else' gets triggered?
I have the following code, I am trying to implement a "a tap and hold" feature, where if I tap a for less than 300 ms, its supposed to fire the if block or if I hold down a, the else block ...
0
votes
0
answers
74
views
How to use autohotkey with Vim?
I´m new to Vim and I want to use autohotkey to make it so that, if I open Vim on PowerShell, the Esc key is Remapped to the CapsLock key so that I can change from Insert to Visual Mode faster.
I tried ...
0
votes
1
answer
190
views
Toggle maximize window with autohotkey
How can I make a script to toggle between Maximize/Restore for the current (active) window in autohotkey?
e.g. like this, but toggle:
#x::WinMaximize, A
-2
votes
2
answers
60
views
Why would Send rearrange string?
My code:
#Requires AutoHotkey v2.0+
TextToSend := FileRead("textToSend.txt")
lines := StrSplit(TextToSend, "\n")
:*:st::{
Loop
{
SetKeyDelay 10000
...
-2
votes
1
answer
109
views
Firestore JSON parsing terminated [closed]
I tried many ways to fix it , but i couldn't .
JSON :
jsonData := '{"select": {"fields": [{"fieldPath": "name1"}]}, "from": [{"collectionId":...
-1
votes
2
answers
94
views
AHKv2 Unable to offset excel value with ComObjGet - 'Error: This value of type "String" has no method named "Offset".'
AUTOHOTKEY v2.0.18
I have 2 codes. One works flawlessly and the other, which is almost exactly the same, does not.
Can you identify where I'm going wrong here please?
WORKING - TEST CODE TO GET IT TO ...
0
votes
1
answer
48
views
remap the AltGr+; combination to dollar sign $
I want to use the AltGr+; combination to produce the dollar sign using AutoHotKey v2.0. Unfortunately I cannot seem to get it to work after several failed tries. My keyboard has the actual AltGr key ...
1
vote
1
answer
63
views
Alternative to capslock in scripts
I have been using Autohotkey and many triggers involving the Capslock key on my laptop for a long time.
I am also using Synergy v1 from Symless to share mouse and keyboard from my desktop computer ...
0
votes
1
answer
32
views
How do I access the second (or Nth) entry that matches the script's criteria?
There is a script
#IfWinActive, ahk_class illustrator
RWin::Send, !frf
The menu commands looks like this
...
exportDocs
fitAndCenter
fitSelection
fitAndScale
...
Cuurently the script selects ...
-1
votes
1
answer
192
views
autohotkey v2 window maximize/minimize toggle hotkey failing
Why is this code randomly failing? It will work consistently and then freezup(either with the window maximized or minimized) at some seemingly random time, requiring me to select 'any window' in order ...
0
votes
2
answers
92
views
How do I make a GUI which asks the user how many loops the script should do in AutoHotkey V2
I want to make a Program which asks the user how many times the inner loop should loop. It should also ask only once and then run indefinitely with the number of loops the user set.
Here is the code:
...
0
votes
1
answer
134
views
How do MsgBoxes and GUIs work in autohotkey v2
ok so I have this code
#Requires AutoHotkey v2.0
global MyGui := ""
global uNID := "", Password := ""
global EditUsername := "", EditPassword := ""
...
0
votes
2
answers
118
views
Concatenating custom strings works, but unstably
I want to build concatenated strings in AHK v. 1.1 from seperate strings that I select consecutively with my mouse by pressing (down) Caps lock + y each time.
When I'm done selecting all text snippets,...
0
votes
1
answer
67
views
Auto Hot Key stopped working after modifying a script
I need to remap certain keys so that CapsLock + "ijkl" would result in arrow keys without actually toggling CapsLock on.
Standard practice.
ChatGPT gave me the following code which worked as ...
1
vote
1
answer
154
views
How can I replace my tab key with AutoHotkey?
My keyboard broke, and some keys are not working. To overcome this situation, I wrote a simple script that makes the letter 'q' act as 'Tab' when I hold down 'Shift':
+q::Send "{Tab}"
The ...
0
votes
1
answer
55
views
Why is my autohotkey script with a loop and if statement does not work?
I've been trying to make a script where at specific minutes every hours, something happen. I've tried to add a loop so it can always check if it is now at the right minute of the hour. I tested the ...
0
votes
2
answers
128
views
Reassign a keyboard shortcut, but also disable the original shortcut: Autohotkey script not working consistently
In Windows 10, I use the Dvorak keyboard layout. That means common keyboard shortcuts are in different places than usual, e.g. ctrl+v and ctrl+w are right next to each other, and x/c/v are not ...
0
votes
1
answer
157
views
AHK Multiple clocks showing time from different time zones
Good day,
I'm trying to create a script for AutoHotKey (AHK) which would show in a GUI multiple digital clocks (with different time zones). I already created a simple script with 3 different clocks ...
0
votes
1
answer
577
views
AutoHotkey V2 - Click/focus input field and type in open chrome browser
Being new to AHK v2, we asked claude ai to generate some code, as it appears to be trained on AHK V2 based on some AHK expert videos released a couple of weeks ago.
We're basically trying to click on ...
0
votes
1
answer
127
views
autohotkey convert v1 to v2 problem,Error: This value of type "Object" has no method named "insert"
I want to convert this ahk liabrary (v1) file to v2 version.
https://github.com/jixiuf/my_autohotkey_scripts/blob/master/ahk_scripts/emacs-key-sequence.ahk
Because,I'm a new learner,I do not ...
0
votes
1
answer
152
views
How to apply the '~' prefix to a hotkey but still block its default shortcut function?
Lets say I have x key, and I want use it as a "modifier" so that I can combine it with other hotkeys, like so:
x & and y
x & and w
x & and z
In order to do this, I need to use ~...
-1
votes
1
answer
55
views
is it possible to merge two autohotkey script?
Is it possible to join these 2 script?
This to use my remote control RC Modelism and the helmet VR oculus quest 2
I would like to use that the H and B keys on the VR Oculus Quest helmet and on the ...
0
votes
1
answer
49
views
Differentiate trackpad's buttons vs. Tap to click
I do not use the trackpad's 2 buttons. I do clicking by tap to click or clicking the whole trackpad. So I want to map the 2 buttons to something else. Autohotkey registers these 2 buttons as LButton ...