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
1
vote
3 answers

Launch trusted file on computer from cell in Excel

I have a cell in my spreadsheet that has a hyperlink to a script file (AutoHotKey) and I'd like to be able to launch said script by clicking on the cell in Excel. It works but I'm always presented with a warning: Some files can contain viruses or…
Paul Leavitt
  • 55
  • 1
  • 12
1
vote
1 answer

pixelsearch in middle of screen/monitor?

i wanted to afk or have some break while leveling my character,the green box are the monster yea i messed around inside game files and edited it with photoshop lol, my script is doing perfectly fine and attacking monster, but how can I make…
1
vote
1 answer

Autohotkey script to download to a specific folder on the computer

I need Firefox to always open Desktop in the Save as dialogue on saving files, so I can type in the name of the folder on the Desktop and save the file where I want. That would be a simple and very efficient way of grouping downloaded files. The…
user5280114
1
vote
2 answers

Replace Left and Right Click for Alt+1 and Alt+2 (Autohotkey)

I want to send click when I press hold Alt key + 1, and then, still holding the alt key send right-click when press the 2 key my code !q:: Send {LButton Down} KeyWait q Send {LButton Up} Return !w:: Send {RButton Down} KeyWait w Send…
dcaro
  • 49
  • 6
1
vote
2 answers

How to make an Autohotkey automatically run at startup?

I tried to create simple .ahk script for remapping RightControl on AppsKey (win context menu). I've just put RCtrl::AppsKey in file. It's working after I launch it, but it doesn't automatically start with Windows. I tried it with AllUsers\..\Startup…
Yuriy Rozhkov
  • 117
  • 1
  • 11
1
vote
2 answers

autohotkey long text and in a virtual machine

So I'm trying to learn autohotkey scripts and the documentation is lacking at best. First, can authotkey read commands and perform actions and such inside a virtual machine? I have a windows host and a linux virtual machine running eclipse. I'd like…
Falmarri
  • 47,727
  • 41
  • 151
  • 191
1
vote
1 answer

Extract data from csv file and save to text file (without overloading your RAM)

I had this huge list of providers ip address ranges with additional info about the total number of addresses and the name of the provider. It pretty much looks like this: 2.160.0.0,2.175.255.255,1048576,28/09/10,Telekom Deutschland…
Forivin
  • 14,780
  • 27
  • 106
  • 199
1
vote
3 answers

Autohotkey, assotiate key with object

Here is part of my script. It runs a program by a hotkey if it's not running or shows/hides its window in other case. ConsolePath := "cmd.exe" ConsoleWndClass := "ConsoleWindowClass" CalculatorPath := "calc.exe" CalculatorWndClass :=…
grabantot
  • 2,111
  • 20
  • 31
1
vote
2 answers

How can i improve my random programm AHK Script

I am a beginner in programming. I need a program that generate a random number between 1 - 100 in each second. This is the code I wrote with simple AHK Script. Loop { Random, rand_num, 1, 100 ToolTip, Random number:`n%rand_num%`n`nPress ESC to…
Coffeeyay
  • 13
  • 3
1
vote
2 answers

Autohotkey script to bookmark to a specific folder

I'm using Firefox and I was looking for an autohotkey script which would enable me to skip the whole series of clicks when I bookmark a page in a specific folder and replace it with a single keyboard shortcut. Although I've read forum threads on…
user5280114
1
vote
1 answer

Valid URL for an FTP site with username containing @

I want to create a valid URL to send to Windows File Explorer (or other file managers like TotalCommander) using the format: ftp://username:password@ftp.domain.ext/folder/ In Explorer, it works with very straight username and password. But I…
JnLlnd
  • 165
  • 1
  • 14
1
vote
1 answer

Autohotkey key press in minimized chrome

I have problem with this Autohotkey Script, it work in maximized but didnt work in minimized Google Chrome browser Loop { ControlSend, Chrome_RenderWidgetHostHWND1, {e}, Margonem MMORPG - Google Chrome Sleep, 1000 }
Matos
  • 11
  • 1
1
vote
1 answer

AutoHotkey: Test for key sequence?

What I mean is that if I press the A key, it then tests for the B key on the second key press, then if it is, it tests for the C key. If any are not the key it's waiting for, it goes back to the A key.
Shane Smiskol
  • 952
  • 1
  • 11
  • 38
1
vote
2 answers

Random sending of array in AutoHotKey

I'm trying to create an AHK script that will type a random insult whenever I type 'diss'. However, at the moment, all I am getting everytime I type 'diss' is "Array[rand]". What am I doing wrong? Array:= Object() Loop, Read,…
1
vote
2 answers

Activate my app from the tray - AHK

Imagine my application's window class name is classAbc My app has a minimized in tray ability, When a custom key is pressed it goes into tray, How to activate it from the tray? WinActivate, ahk_class classAbc won't work at that time I also tried…
LastBye
  • 1,143
  • 4
  • 19
  • 37
1 2 3
99
100