Questions tagged [autohotkey]

AutoHotkey (AHK) is a free, open-source macro-creation and automation software for Microsoft Windows that allows users to automate repetitive tasks. It is driven by a scripting language that was initially aimed at providing keyboard shortcuts, otherwise known as hotkeys, that over time evolved into a full-fledged scripting language.

AutoHotkey (AHK) is a free, open-source macro-creation and automation software for Microsoft Windows that allows users to automate repetitive tasks. It is driven by a scripting language that was initially aimed at providing keyboard shortcuts, otherwise known as hotkeys, that over time evolved into a full-fledged scripting language.

AutoHotkey can be used to:

  1. Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by hand or a macro recorder.
  2. Remap keys and buttons on your keyboard, joystick, and mouse.
  3. Create hotkeys for keyboard, joystick, and mouse. Essentially any key, button or combination can become a hotkey.
  4. Automate almost any kind of GUI.
  5. Retrieve and change the clipboard's contents.
  6. Opening programs, documents, and websites with simple keystrokes.
  7. Monitoring a system and automatically opening wanted and closing unwanted programs.
  8. Scheduling an automatic reminder, system scan, or backup.
  9. Creating text replacement task or automatic spelling corrections.
  10. Convert any AHK script into an executable file that can be run on computers where AutoHotkey is not installed.
  11. Create simple GUI tools.

AutoHotkey also has a very friendly and helpful community.

Resources

4574 questions
4
votes
1 answer

How to do logins using the WinHttpRequest COM?

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 take hundrets of megabytes of RAM and use loads…
Forivin
  • 14,780
  • 27
  • 106
  • 199
4
votes
1 answer

Why does AutoHotkey respond with a "System cannot find the file" error?

I'm new to AutoHotkey and cannot understand why this script is giving me the error: Failed to launch program or document Action: Params: <* "Initiated."> Specifically: The system cannot find the file…
ciso
  • 2,887
  • 6
  • 33
  • 58
4
votes
1 answer

How to use script with laptop lid closed?

So I have a script which works perfectly fine. Here it is: #SingleInstance force #Persistent settimer, idleCheck, 1000 ; check every second return idleCheck: if WinExist("App Name with or without Spaces") ; if app is running { if(A_TimeIdle >=…
SakhJack
  • 51
  • 7
4
votes
1 answer

How to I set arrow hotkeys in autohotkey?

I am working at a script in AutoHotkey to allow me to control my computer's volume with my Dell AT101W keyboard (since there are no keys set in Windows to control such things and this keyboard doesn't have controls programmed into it). What I have…
Jim Adams
  • 53
  • 4
4
votes
6 answers

How to stop an infinite loop in autohotkey using the key you start it with

So i just started using autohotkey and i made this script to spam the trade chat in a game called path of exile, it works pretty well, but i cant get it to stop when i press f1 again, i've tried countles times, but the loop just won't…
4
votes
2 answers

Gui window Positioning in Autohotkey

In Autohotkey, I want to position my Gui window to right bottom of the screen but how? For illustrate, +--------------------------------------+ | Desktop (screen) | | | | …
Hitesh Chavda
  • 772
  • 1
  • 9
  • 25
4
votes
2 answers

Change autohotkey tray icon from within script

How can I change the tray icon to my.ico from within an Autohotkey script for example when the script is paused. For this I have come up with my own Pause Script menu item in the tray menu. #SingleInstance ignore Menu, Tray, Tip, AutoCase 0.11 Menu,…
David
  • 299
  • 2
  • 14
4
votes
5 answers

Calling custom C#/.Net DLL in Autohotkey

I think I'm in over my head here, but wondering if anyone can point me in the right direction. I've created a C# class library (dll) in Visual Studio 2010 to interact with a MS SQL server. It works fine when I call it from another C# program.…
colinwurtz
  • 703
  • 1
  • 7
  • 23
4
votes
2 answers

Conditionally intercept a mouse click in Autohotkey?

I want to have a script which will intercept a mouse click and send a key press instead, but only when the capslock key is toggled on. I want the mouse click to be sent normally if the capslock key is toggled off. Currently I have made…
Sakuya
  • 660
  • 5
  • 23
4
votes
1 answer

trying to comunicate with device with win xp cmd

Im very new to this and am probably in over my head but i had an idea to make part of my job easier so i wanted to try. Im wanting to put together a batch and input file to send commands to a serial device. mode com1 baud=9600 parity=n data=8…
4
votes
0 answers

How to freeze ahk window spy in windows 8

My Window Spy says "Shift-Alt-Tab to freeze display" but ShfitAltTab winminimizes all windows. How can I freeze the Window Spy of autohotkey in Windows 8?
AMDG
  • 269
  • 2
  • 9
4
votes
1 answer

Slowing scroll speed down with autohotkey

I downloaded AutoHotKey earlier today, in order to revert the scrolling on my ASUS laptop. I found a script where the reversion is made, and I understood it pretty easily. This is the original script - it's working. WheelUp:: Send…
Andersnk
  • 857
  • 11
  • 25
4
votes
1 answer

Windows going crazy after typing Romanian characters using a Romanian Programmers layout while remapping Alt/Ctrl/Win with Autohotkey

I've remapped some keys using Autohotkey, like this: LWin::LAlt LCtrl::LWin LAlt::LCtrl I'm using Windows 7 with the Romanian (Programmers) keyboard layout. If I want to type ă I hit RAlt + a, for example. It's called "Programmers" because it's a…
oblio
  • 1,519
  • 15
  • 39
4
votes
1 answer

How do you kill a (window free) process in AHK?

I have a windowless process I want to kill with AutoHotkey. (I could know anything, e.g. the PID.) For example I have tried WinKill, eg with WinKill , ahk_pid %p_id% Nada. Anything else?
emanuensis
  • 133
  • 2
  • 10
4
votes
4 answers

ControlClick is not working

My script is supposed to press a button somewhere in my window, upper left. It is not working as it should be. I tried this: ControlClick ClassNN ThunderRT6UserControlDC29, ahk_class ThunderRT6FormDC Yet it doesn't work. I tried the manual…
Khalil
  • 311
  • 5
  • 16