Skip to main content
Filter by
Sorted by
Tagged with
7 votes
4 answers
18k views

I compiled it to an executable, but to open it I have to right-click and press "Run as administrator". I want it to request admin privileges each time I run it, but how to do it? I can't do this: ...
barteczek56's user avatar
7 votes
1 answer
5k views

I have searched around quite a bit and have failed to find an answer. In AutoHotKey, I am not sure the difference when a single percent is used near the beginning of a line, and when a variable is ...
wetin's user avatar
  • 438
0 votes
1 answer
2k views

I have this current script but it won't pause, even though i put a Pause script at F8 is there a way to stop the current loop? F7:: Loop{ Send {1} ; Pressed 1 Send {-} Send {-} Send {-} Send {-} Send ...
jerimiah's user avatar
17 votes
8 answers
16k views

I am working on a AutoHotkey script that does a repetitive job in Google Chrome. Every time that I click a link from the script, I have to tell my script to sleep while the page loads. I am ...
Questionmark's user avatar
0 votes
1 answer
237 views

This script is supposed to switch me from Windows to Linux(VM) and vice versa: Pause::vmStart() return runVM := false linux := false vmStart() { If (!runVM and !linux) { Run, C:\Users\...
Patrick Rode's user avatar
30 votes
3 answers
23k views

I'd like to trigger an event in AutoHotkey when the user double "presses" the esc key. But let the escape keystroke go through to the app in focus if it's not a double press (say within the space of a ...
Matthew Lock's user avatar
  • 13.6k
22 votes
5 answers
38k views

A simple script like a::msgbox hi! used to work fine under Windows 7. Now that I upgraded to Windows 10, it isn't working when certain windows are active. Specially LButton-Hotkeys can mess up ...
phil294's user avatar
  • 11.1k
4 votes
1 answer
3k views

You can see lots of people automating things on websites using mouseclick and keystroke simulation on browser windows or using the IE COM, but for some applications you don't want your application to ...
Forivin's user avatar
  • 15.8k
-1 votes
1 answer
6k views

I have just done a piece of code that does the following thing. When I make a selection by mouse in Firefox or EndNote, the script sents a Ctrl+c and checks the clipboard for a regex match. If there ...
menteith's user avatar
  • 690
29 votes
5 answers
18k views

After March 2015 upgrade of Spotify the below hotkey no longer works to get next song in Spotify: ; Spotify next track <^>!p:: DetectHiddenWindows, On ControlSend, ahk_parent, ^{Right}, ...
EquipDev's user avatar
  • 6,051
19 votes
3 answers
55k views

I want to use Fn+S to emulate Ctrl+S, and so far this is my code: #InstallKeybdHook #Persistent SC126 & s:: Send ^{s} return My problem is that I don't know the Fn key's scan code. ...
user3098326's user avatar
15 votes
3 answers
17k views

I just discovered AutoHotKey and it seems like a dream come true. I have two .ahk scripts, A.ahk and B.ahk. I want to call script B from within script A. The AHK forums are strangely silent on the ...
Abbas's user avatar
  • 6,894
12 votes
6 answers
15k views

I'm looking for a way in AutoHotkey to put the currently visited url in a variable. The goal of this AHK is to trace what I've been doing during the day to log my hours better. I have another system ...
masterdam79's user avatar
8 votes
1 answer
7k views

I am a newbie to Autohotkey, and I can't figure this out despite reading through this site and the official documentation. I just want to have certain hotkeys work only with certain applications. So ...
user1843366's user avatar
6 votes
4 answers
26k views

Whenever I try to launch the Windows Spy utility in AutoHotkey, it fails with an error "Could not launch file: U:\Software\AutoHotkey_1.1.26.00\AU3_Spy.exe" Initially I thought that I may have had a ...
Stevoisiak's user avatar
  • 27.8k
5 votes
2 answers
12k views

A challenge to all you AutoHotKey masters: Give us a function that will Find and Move the Cursor to an Input Field (E.g. LoginName) and, alternatively send input text. For the old, lazy hackers like ...
user478094's user avatar
5 votes
3 answers
6k views

Windows 10 has finally multi desktops, you can switch desktops with ctrl+win+right (or left) keys. It's a nice feature, but you have two use two hands to switch desktops. I'm trying to map the keys ...
Fabman's user avatar
  • 372
5 votes
4 answers
1k views

I have been trying to find a way to remap my keyboard and send 5-digit hex unicode chars, the method described here: ahk Send only supports 4-digit hex codes {U+nnnn}, I know that in the past, ...
markymark's user avatar
4 votes
1 answer
3k views

I am trying to output some text with hot string. All work well except when using the # character. It produces unexpected results. :*:.ef::C# Entity framework{Space} I tried to escape it with ` char, ...
Mg Bhadurudeen's user avatar
3 votes
3 answers
5k views

I use autohotkey version: 1.0.48.05 (because I stick with activeaid). The script to read the current path is as follows (and worked until Win 7). ; Get full path from open Explorer window WinGetText,...
HHeckner's user avatar
  • 5,094
2 votes
1 answer
2k views

For example I want press 'v' to get 'asdfv' by autohotkey, but when I define like the below : v::send asdfv the script run into an infinite loop, because the last v is covered as the shortcut. So ...
whitelilis's user avatar
1 vote
1 answer
1k views

I'm self-answering this question because I've seen it asked all over the Internet, but with few helpful answers, and definitely no resolutions on Stack Overflow that I can find. Example Code ...
Andrew Cheong's user avatar
1 vote
1 answer
592 views

I´m trying to let a race game play via AutoHotkey. I use this script to paste the keys i pressed into a txt to let them automaticly play back. My problem is now that this script only can log one key, ...
Broump's user avatar
  • 373
1 vote
2 answers
3k views

I have a python script called "server.py" and inside it I have a function def calcFunction(arg1): ... return output How can I call the function calcFunction with arguments and use the return value ...
Secozzi's user avatar
  • 262
1 vote
0 answers
315 views

I am writing a User Define Function with SQLite in AutoHotkey. It works well as I intended when I use (return) English only. But, If I use (return) any character with NonEnglish, it makes broken ...
Kita Nagoya's user avatar

1
2 3 4 5
7