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 ...

learn more… | top users | synonyms (2)

1
vote
2answers
320 views

How to tell if VLC is playing anything or not with AutoHotKey?

Is there a way in AutoHotkey to find out if VLC is playing anything or not? My purpose is to only send Full Screen key F and Aspect Ratio key A if VLC is playing something; if not, wait for it to ...
0
votes
0answers
24 views

Autohotkey - need to reload

i am using autohotkey with great pleasure, but for some reason i need to reload the scripts / replace the instance every ~60 minutes. they are still active in my taskbar, but the shortcuts are no ...
0
votes
1answer
41 views

My keyboard input somehow got registered onto my roommate's computer [closed]

My roommate and I are both connected to our school's internet via ethernet. All of my peripherals are wired. He has a wired keyboard and a wireless mouse. I use autohotkey to quickly enter my login ...
-1
votes
1answer
12 views

AutoHotkey: Press a button every x seconds while mouse-button y is pressed down

I'm trying to figure out if it's possible. While I hold mouse-button 4 ( back ) down, it should execute pressing down the combination ctrl+g every 50 ms. I can do it with my Logitech mouse, but I ...
0
votes
2answers
3k views

AutoHotKey - Hold a key down

I have an AutoHotKey script that should hit F3 when I hold down Ctrl, and hit F2 when I release Ctrl. My script currently: $ctrl:: Suspend, On Send, {F3} While (GetKeyState("Ctrl",P)) { } Send, {F2} ...
1
vote
1answer
38 views

Make Office ribbon to drop-down and hide on hover

How can I make a minimized Office ribbon to drop-down on hover over a tab and disappear after the mouse leaves it? Among other annoyances, one of the worst usability disadvantages of the Office ...
0
votes
0answers
37 views

My AHK script keeps saying invalid hotkey

I'm trying to set up my function keys to adjust volume (like it did on my laptop), but I can't seem to get it to work. It just keeps saying invalid hotkey on line F5. Here's my code: #NoEnv ; ...
1
vote
1answer
24 views

Autohotkey high priority remapping

I want to make RCtrl+(w/a/s/d) map to (up/left/down/right), I wrote this script: $>^w::Send {Up Down} $>^w Up::Send {Up Up} $>^a::Send {Left Down} $>^a Up::Send {Left Up} $>^s::Send ...
1
vote
0answers
21 views

AutoHotkey sending odd characters

I have this autohotkey script: StringCaseSense, On ^':: { Input, char, L1 if char = a Send á else if char = A Send Á else if char = e Send é else if char = E Send ...
0
votes
0answers
19 views

How do I access the application icon's context menu with AutoHotKey?

I'm afraid I don't really know what this special menu is called, but I'd like to activate one of the menu items here from an AutoHotKey script. I'm trying to get at Clear Scrollback. Again, I ...
1
vote
1answer
2k views

How to loop AHK by user input?

Is there a way to loop a certain script using user input with INPUTBOX? The script below runs only once when I click the button for it. Is there any way for the script to popup something where it ...
1
vote
1answer
18 views

Autohotkey won't execute whole script

Here's my script: ^!m::Send hello Sleep, 500 Send world All it does, is sends "hello". How do I tell autohotkey to move forward?
0
votes
2answers
82 views

Autohotkey for Razer Blackwidow Macro Keys

I'm having extreme difficulty trying to map the M1-M5 macro keys on the Razer Blackwidow keyboard using AutoHotKey. A similar question was previously asked on this forum but no answer or solution ...
1
vote
0answers
22 views

How can I list positive and negative values separately in listview box in autohotkey?

Here's my AHK script: Gui, Add, Edit, x77 y15 w100 h30 vMyvar gEdit1 ;first edit box, there can be entered any value. Gui, Add, Edit, x237 y15 w100 h30 vNewvar Disabled, %Newvar% ;second edit box it ...
2
votes
1answer
66 views

Getting RegEx Code for File Name Change

Good Day Please help to find the right RegEx or other code for changing file name. Many subtitle files I have unnecessary character. I need to rename in my expectation format. Here the example Raw ...
0
votes
0answers
23 views

How to send the information at different places by this GUI in autohotkey?

I made this simple GUI- Gui, Add, Text, x72 y20 w50 h-10 , Customer Name Gui, Font, S12 CDefault, Verdana Gui, Add, Text, x22 y40 w180 h30 , Customer name Gui, Add, Text, x22 y70 w180 h30 , Contact ...
0
votes
1answer
35 views

What is the difference between simple imagesearch command and using it with coordmode in Autohotkey?

I want to know the difference between using simple imagesearch command and using it with coordmode. What difference does it really make when we use it with coordmode? Please elaborate and provide a ...
0
votes
3answers
496 views

Troubleshooting hotstring expansion in autohotkey

I am experiencing inconsistent hotstring expansions in ahk. For example the following hotstring :o:192.::192.168. worked till yesterday, but after today's boot/reboot cycle , it isn't. The hotkeys ...
0
votes
1answer
35 views

How to paste the data only in blank cells in ms excel from some other program using autohotkey?

Myvar:=5 F1:: xl:=comobjactive("excel.application") xl.range("i"myvar).select() myvar++ Send, {CTRLDOWN}v{CTRLUP} return In the above script, when I press F1 key it selects I5 cell automatically and ...
0
votes
1answer
21 views

Automatic and dynamic click script on windows

I'm in the need of creating a dynamic system which may allow me to auto move the mouse on a Windows client automatically. I've found online the program Autohotkey which may fit my needs, but I need ...
1
vote
3answers
1k views

Autohotkey script to exit VMWare window

To exit from a VMWare console window on my XP system, I need to: Press both Shift keys Press Cntrl-Alt Does anyone know how I can do this in Autohotkey?
4
votes
3answers
2k views

Detecting touch screen presses in AutoHotkey in Windows 8

I am using a Dell Venue 8 Pro running Windows 8.1 32 bit. I am trying to use AutoHotkey to map certain regions of the screen to certain buttons on the keyboard, in order to be able to use the touch ...
0
votes
1answer
41 views

How to activate specific excel window and specific excel sheet using com objects autohotkey?

I am using following script to activate specific excel window- f5:: WinWait, Microsoft Excel - B [Compatibility Mode], IfWinNotActive, Microsoft Excel - B [Compatibility Mode], , WinActivate, ...
0
votes
0answers
30 views

How to automate mouse clicks with conditions in autohotkey?

As i work on excel and i have to keep full screen mode on when i work on excel. for this i have automated mouse click like this- f2:: MouseClick, left, 497, 45 ;clicks on view tab Sleep, 100 ...
0
votes
0answers
27 views

How to use conditions in autohotkey?

Friends I am copying data from excel sheet and pasting it in some online form. There are four fields in that online form like first is customer name, second is father name, third is address and forth ...
0
votes
0answers
45 views

How to activate particular excel sheet and automate mouse click only when particular function is not working in autohotkey?

I have the following autohotkey script- F9:: WinWait, Microsoft Excel - DATAFILE [Compatibility Mode], IfWinNotActive, Microsoft Excel - DATAFILE [Compatibility Mode], , WinActivate, Microsoft ...
0
votes
4answers
609 views

How do I send a keyboard layout switch event with autohotkey in Windows 7?

I want to remap the keyboard layout/language switching to Win+Space, I tried it with: LWin & Space::Send, ^+ But it doesn't seem to work, I would want it to send a Ctrl+Shift sequence so ...
1
vote
2answers
57 views

Is there a way to automatically quit two programs when battery is below certain level?

I'm setting up a new laptop with Windows 7 and I'm using Rainmeter to display system info in a sidebar (CPU, memory, GPU info etc). This needs MSI Afterburner running in the background to access GPU ...
0
votes
0answers
23 views

Map Home and End to fn+arrow key

Just got a Lenovo ThinkPad x1 carbon generation 3, and although I generally love it, I had gotten quite used to fn+ right arrow and left arrow producing the same effect as home and end. Is there any ...
0
votes
0answers
22 views

AutoHotKey doesn't detect volume knob

Please bear in mind, I'm extremely new to AHK, but Google and Superuser have turned up nothing so far. AHK doesn't seem to detect VOLUME_UP or VOLUME_DOWN when using the volume knob on my keyboard. ...
0
votes
1answer
54 views

how to control copy and paste from excel sheet using autohotkey?

I am copying and pasting some data from ms excel sheet to some other program using the following autohotkey script: f1:: loop 2000 { Send, {CTRLDOWN}c{CTRLUP} sleep 100 send {ALTDOWN}{TAB}{ALTUP} ...
2
votes
1answer
3k views

Windows 8 not running autohotkey script on startup

I am running Windows 8.1 Pro (RTM) 64bit and made a shortcut to a autohotkey script in shell:startup. (Alt-drag and dropped the script into there to create a shortcut) Autohotkey is set to run as ...
1
vote
1answer
123 views

ALT + ESC I want to improve upon its functionality

Pressing ALT+TAB is very helping in navigating among open windows in the desktop of my windows 8.1 PC. NOTE 1: The menu that appears gives one the ability to navigate not only between open desktop ...
2
votes
0answers
62 views

Display on screen the currently pressed keys (Windows) [closed]

I am looking for a tool that would show on the screen which keys I am currently pressing. It should show all the keys pressed, and as soon as I release a key - it should dissapear. I have tried many ...
0
votes
2answers
78 views

How can I re-map these keys?

I am re-mapping the Qwerty layout to Dvorak using AHK because I can't install custom keyboard layouts on this computer. Most of my remapping just follows a simple pattern, and this works well: ...
0
votes
1answer
128 views

How to change default browser to custom program/script (http-association) in Windows 8.1?

How do I change the default browser in Windows 8.1 to a custom program or script? I would like to change the association of the http-protocol to an AutoHotKey-Script (AHK), which opens the right ...
0
votes
1answer
61 views

Make Sikuli run on a separate virtual screen

I'm using Sikuli to create scripts that run using screen captures. How could I make a sikuli script run in a separate virtual screen in order to be able to use my computer when a script is running? ...
0
votes
2answers
149 views

AutoHotkey script for 'right click context menu' command [duplicate]

I am using a Macintosh keyboard on Windows and would like to create a hotkey so that I can turn ctrl and some other other button into the “right click context menu” button of non-mac keyboards. What ...
62
votes
7answers
96k views

How can I open a command prompt in current folder with a keyboard shortcut?

How can I open a command prompt in current folder with a keyboard shortcut in Windows 7? Is there any way to implement this? I think Autohotkey could do this, but don't know how.
0
votes
1answer
46 views

How to map “shift” key to “shift” + “capslock” using AutoHotkey?

I’m using Vim, so I”ve remapped capslock to esc. But I still want capslock sometimes. So I’m wondering to remap shift to shift+capslock: When shift is used the normal way: Long press and release, it ...
1
vote
2answers
4k views

Hit one key to hold a second key down, until third is pressed

I'm trying to get the following behavior with AutoHotKey: When the A key is pressed, AHK holds down the S key until the D key is pressed. The following script isn't working as expected: a:: Send ...
0
votes
2answers
157 views

How to use AHK to hold down the mouse click as long as I'm holding it?

Here is my code atm.. ; Create hotkey for the 'left' key left:: Click , 53, 486 return ; Create hotkey for the 'down' key down:: Click , 138, 613 return ; Create hotkey for the 'right' key right:: ...
0
votes
0answers
27 views

AutoHotkey Capslock::Ctrl doesn't work in some applications

I have the snippet Capslock::Ctrl in my autohotkey script that runs at system startup and my CapsLock is correctly turned into a Ctrl key, except for a few applications. If regedit or XYplorer are ...
0
votes
0answers
82 views

Seeking FFPLAY command for LIVE Decklink audio input to AVectorScope filters live on screen

My first superuser question. Using FFPlay or FFMPEG I'd like to be able to have visual monitoring of live audio (level meters, vectorscope) real-time on screen from a BlackMagicDesigns Decklink ...
0
votes
0answers
27 views

AHK IfWinActive with partial title

I would like to set a hotkey ONLY at the Contact dialog of Outlook 2013 to access directly to the "Notes" field Can someone help me out to have this script work? SetTitleMatchMode, RegEx ...
0
votes
0answers
31 views

remapping Win P “project to a connected screen”

I use autohotkey and I would like to remap Win-P that actually opens the right bar to select the way to project to a connected screen. Which would be the script to access "duplicate" screen (the ...
1
vote
1answer
133 views

Select text until character found [duplicate]

I`d like to learn how I can select text like with +^{Left} until a specific character ("-" in this case) has been found. Thank you for your help.
12
votes
7answers
25k views

How can I use Autohotkey to focus on an existing Google Chrome tab, not a “container” window?

How can I use Autohotkey to focus on an existing Google Chrome tab, not a "container" window? Details Google Chrome seems to represent each window with a container window handle, which contains one ...
1
vote
2answers
392 views

Autohotkey script - Send keystroke on specific Firefox page?

I have a script that sends End key keystroke when i open specific page in Firefox, it scrolls automaticly to the bottom of the page. The problem is that i can't scroll upwards on that page any more. ...
1
vote
1answer
29 views

Shift and number key issue

Wanted a simple script where MButton mapped to hitting the number row key 8 then holding RButton until released. $MButton:: SendInput {8} SendInput {RButton Down} return $MButton Up:: SendInput ...