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.

Filter by
Sorted by
Tagged with
0
votes
0answers
126 views

can i duplicate mouse events on both halves of my screen?

If I have two identical applications side-by-side on my desktop, is there AHK script or something that can allow me to is there software that exists that will mimic what I do on the left half on the ...
0
votes
0answers
40 views

How to assign a mouse movement and then a left click to a key on the keyboard?

Before you start, you should know that I am French, so please excuse me for my English which may be bad. As you saw in the title, I have a particular request. I would like to assign a mouse move to ...
0
votes
0answers
30 views

Control Windows Toolbar with AutoHotkey

I use a tool called XMeters that provides useful system information on the Windows taskbar, but has the drawback of opening Windows Task Manager whenever it accidentally clicks on the bar graphics. ...
0
votes
1answer
161 views

Paste a text with Autohotkey containing special characters

I'm using Word for making index cards for my studies and often I need to use the Equation feature. There's no hotkey for the subscripts and always opening the menu and chosing the desired one is ...
0
votes
0answers
50 views

Google Chrome: Can I use customized action to open a link in a new tab?

By default,we used to trigger open link in new tab with ctrl+click. But I would like to change the action with alt+click.Is it possible? I have tested Chrome's AutoControl Configuration and Shortkeys ...
0
votes
1answer
173 views

Is it possible to open multiple tabs in ConEmu and run a command in each of them with one click? (or with Autohotkey)

I'm developing an application that uses multiple microservices (springboot apps) that i have to start when i'm setting up the enviornment. Is the a way to open multiple tabs in ConEmu and run in them ...
0
votes
2answers
538 views

AutoHotKey for holding down C key and relese it in game

Hi I'm in a game that I can't crotch without having to hold down C key. I just want to know if there is a script that allows you to do it like if I hold down C key for sec it keeps holding it until ...
0
votes
1answer
145 views

Autohotkey to conditionally ignore native keystroke

How can I make a hotkey be specific to an application, but conditional to some factor so that if the condition is not true the hotkey will be handled by the native/default handler? I've made a hotkey ...
0
votes
1answer
95 views

Relationship autohotkey PDF

I'm making an autohotkey script to populate several fields in a PDF form. The script begins to take a number in a excel sheet, opens a site in an intranet, pass some values to variables, then closes ...
0
votes
0answers
103 views

How can I mass save a list of URLs to PDF?

I have a list of URLs for recipes that I want to save as PDFs before my subscription to the site runs out. A friend wrote an AutoHotKey script that will take the URLs and use the Print to PDF option ...
0
votes
0answers
38 views

AHK: Temporarily turning off a remapped key

I am trying to do something in these lines: NumpadEnter:: Alt !a:: Hotkey, NumpadEnter, Off return !a Up:: Hotkey, NumpadEnter, On return Essentially, block a remapped ...
0
votes
0answers
100 views

autohotkey: map a key to 2 different hotkeys + need 0 delay

I don't have any hotkeys free. And i need use alt for alt, while i need it when i press it to act like i pressed small l. But with autohotkey code sendinput {l down} {l up} it cause bug i can't ...
2
votes
0answers
30 views

Holding Shift and Click solution

I`m trying to make a simple macro shift and left click are hold for 20 sec and durring that time another key is in the loop for this 20 sec. Seems like after shift and click are down nothing else i ...
0
votes
0answers
49 views

AutoHotkey - Remapping keys only if certain keys are being held down

In a specific 3D app I am trying to accomplish the following: only while I hold down RButton, if I press space I wish to remap space to MButton. Currently what I have so far (not really working atm)...
0
votes
1answer
204 views

Switch between windows on only one virtual desktop with Autohotkey - with alt+tab working as-is

I'm looking for a autohotkey function, system shortcut or dll call to cycle between all windows on the current virtual desktop. Windows 10 has this option (Pressing Alt+Tab shows windows that are ...
6
votes
4answers
2k views

How do I disable specific windows 10/Office Keyboard Shortcut (CTRL+SHIFT+WIN+ALT+D)

it seems that Office has decided to hi-jack the keyboard shortcut CTRL+ALT+SHIFT+WIN+D. That might not seem like a problem, but I have assigned that keyboard shortcut in AutoHotKey and have been ...
0
votes
1answer
23 views

Execute something from the start menu using autohotkey

How do I start something from the windows start menu using autohotkey? I can do Send ^{Esc}MyAppName{Enter} And everything works except the last {Enter}. The screen stops on the open start menu ...
1
vote
0answers
43 views

How to map NumPad1 to Alt+Enter?

I'm new to AutoHotKey, and I'm trying to map NumPad1 to Alt+Enter. I have done this by right clicking on the AHK window and editing script, which is in My Documents/Autohotkey.ahk and overwriting the ...
0
votes
1answer
69 views

AutoHotKey: Double press script from SetTimer malfunctioning

(Not sure how to edit the script for it to become readable on StackExchange) If a letter has modifiers and is being sent on this double press script from SetTimer on the manual (https://www....
1
vote
1answer
172 views

AutoHotkey Keyboard Shortcuts Not Captured When Certain Programs Are Focused

I have a very simple AutoHotkey script that listens for certain key presses to run Windows Shortcut files (lnk): F21:: Run "C:\Users\djcim\Google Drive\Powershell Scripts\Admin Shortcuts\djcim\...
1
vote
0answers
26 views

AutoHotkey; using a modifier as a normal key and then as modifier

Novice on AHK here. Here are the lines: ^Alt:: Send, b ^!PGDN:: Send, r The "^!" part of the second line gets send continuously before PGDN is pressed, and I get something like "bbbr", so I have ...
2
votes
1answer
148 views

How to highlight focussed window using bug.n

I'm using bug.n which is based on autohotkey for my window manager on Windows 10 and want the window with current focus to be obvious by having a coloured border like the top left window in the image ...
0
votes
1answer
85 views

Multiple key presses for one key press hotkey

I really don't know to create this script. When I press "r" key I want both "r" and "w" to be pressed. Can anyone help me script this command?
-1
votes
1answer
76 views

Combining and improving 2 ahk scripts into 1

I've created a script by editing from those scripts I found around about gaming. I'm not even sure if it's 100% effective, but somehow I kind of know what I want. Is it possible to combine the below ...
0
votes
1answer
358 views

How to Split Screen & Auto-size Programs on Vertical Monitor

My monitor is one a vertical orientation, so snapping windows to top and bottom is impossible. I am using Windows 10. I need help finding a way to: Auto start Google Chrome and Internet Explorer. ...
0
votes
1answer
66 views

AutoHotKey: How do I set the starting value of the current loop iteration?

I've made a basic AHK script that adds unique metadata to each file on a system I use every day. The idea is to add _01 to the first file followed by _02 to the second file and going up forever until ...
0
votes
2answers
72 views

AHK first character is repeated for hot strings

::cl::call For this hotstring, after hibernation for cl gets ccall the first character is repeated in windows 10. ~^.::reload I added this hotstring to reload. AHK version: v1.1.30.03 - April 5, ...
0
votes
1answer
45 views

How do I remap the mouse clicks so that a previously held down key carries on sending inputs once I release the remapped key?

Let me explain my scenario. I'm holding down the 1 key producing a string of 1's. When I right or left click my mouse, the string of 1's stop briefly before resuming once again to produce a string of ...
2
votes
2answers
2k views

How do write a toggleable hold down key in AHK?

I'm trying to write an AHK script that allows me to do the following: Press the t key to toggle the 1 key being held down so that it types a bunch of 1's indefinitely until I press the t key again. ...
3
votes
3answers
2k views

How to bind F13-F24 keys to the 12 side buttons on Razer Naga?

I'm trying to use the Razer Synapse configuration app to bind the 12 number buttons send extra F keys from the 13..24 range, but I'm not having any progress. When I'm in the right menu, I can press F1 ...
0
votes
0answers
80 views

AutoHotkey - How to send a key that is not part of the current keyboard layout

I use a program that uses \ as a shortcut. I use a French AZERTY keyboard, where the backslash can only be typed using a key combination: Alt Gr+8 (or Ctrl+Alt+8). So I cannot activate the shortcut (...
0
votes
1answer
132 views

Disable “ctrl+t” shortcut in OneNote using AHK

I'm a beginner at AHK. How can I disable the ctrl+t shortcut in OneNote using AutoHotKey? My attempt so far at a script: ; use regular expressions for matching titles SetTitleMatchMode,RegEx #...
0
votes
1answer
169 views

How to launch multiple AutoHotkey scripts at once?

Launching multiple scripts would mainly be beneficial to restore the running scripts after an AutoHotkey update as all process must be killed prior to the installation. Currently I restart my computer ...
0
votes
1answer
137 views

How do I use alt + left mouse button + o (any alphanumeric key on the keyboard) with autohotkey?

I need two hotkeys: alt+q+left mouse button and alt+w+left mouse button Now I have this that is not working $!LButton:: IF getkeystate(h) { send mButton down KeyWait, LButton send mButton up }...
1
vote
1answer
248 views

AHK Window activation not working when launching program

I'm currently the following code to launch the Program SpeedCrunch when pressing Win+C #c:: IfWinExist, SpeedCrunch { WinActivate } IfWinNotExist, SpeedCrunch { Run, speedcrunch.exe, C:\...
2
votes
1answer
302 views

Setting different keys for switching between different keyboard layouts, how can be implemented in Windows?

Using the tool AutoHotKey I could set Caps Lock key for switching keyboard layouts (here). But I still want to set Caps Lock for Layout_1 and Shift+Caps Lock or backtick ` for Layout_2. Is it ...
0
votes
0answers
146 views

preprocessor for .gitignore file (used by git) for RegEx support and more

After a lengthy search without results, I plan to create a preprocessor for the ".gitignore" file. .gitignore does not support regEx, but glob. I would like to be able to use regEx, or both (regEx ...
0
votes
1answer
213 views

How to get caret position in a PDF for so I can highlight text using AutoHotKey?

I want to be able to highlight pdf text in Acrobat using only the keyboard (no mouse at all). There is no highlight text hotkey available in Acrobat. So I am trying to do this: use keyboard to select ...
1
vote
0answers
689 views

autohotkey script to bind multiple key-presses to one key

^y:: y + & 6 return On pressing control+Y I want the actions of: y^6 to be pressed on the keyboard. The above doesn't work. I can't find where it says in any documentation or tutorial how ...
3
votes
1answer
7k views

How to open a URL in a new browser window with AutoHotkey?

With AutoHotkey on Windows you can associate a shortcut to open a URL - web page or link - in the default browser with the following script: ^!g::Run https://mail.google.com/ This will open Gmail in ...
0
votes
1answer
683 views

Autohotkey, How to pass variable “name” as function parameter?

I have a small test script like this: #SingleInstance, off global gText global gNum := 0 Gui, Font, s9 cBlack, Tahoma Gui, Add, Text, w50 center vgText, % "0" Gui, Add, Button, x+10 gBtnClicked, % "...
1
vote
1answer
198 views

AutoHotKey triggers Ctrl while scrolling

I'm not sure if this is Windows, Chrome or AHK related so I wanted to post this question. I've been using AHK for years to make some shortcuts control my volume and media, like Win+PageUp for volume ...
0
votes
0answers
156 views

Disable holding alt+tab+w in CS GO

I have a little random problem.. When im playing cs go, and only when im in game, windows tabs out when im releasing the hold of alt + tab + w keys?? Pretty annoying. Tried with autohotkey, but cant ...
3
votes
1answer
4k views

How to pass command-line arguments to AHK script?

I'd like to run the AHK script with arguments, like: AutoHotkeyU64 file.ahk arg1 arg2 Then access these variables as part of the script, e.g. MsgBox, %arg1%, %arg2% How this can be achieved?
2
votes
0answers
250 views

AHK says invalid hotkey

My AHK script says that numpad3 or 3 is invalid, what is the code I must input to make my script input numbers? F9:: Toggle := !Toggle While Toggle{ 3 sleep 10 4 ...
1
vote
0answers
37 views

AutoHotkey Script Failed to Load [closed]

I try to load the "Hotstring Helper" script, obtained from the AutoHotkey.chm file, and get an error message box stating Target label does not exist.  It indicates: Line# 013: Return ...
0
votes
1answer
176 views

How can I map the print key to take a Skitch for Windows Desktop screenshot on Windows 10?

Is there any way to configure Skitch for Windows Desktop to take a screenshot when I press the print key on Windows 10? It's okay if I have to use autohotkey.
1
vote
2answers
85 views

+ / - keys on non-US keyboards

Many shortcuts require to use the + or - keys. Example : zoom or dezoom with Chrome : CTRL + or -. some websites (such as this one) use + or - keys to do certain actions (I have a laptop with no ...
1
vote
1answer
354 views

Starting GUI programs from WSL using AutoHotKey: how to tell cmd which $DISPLAY variable to use?

I have lately found the correct configuration for using Xming to get gvim.exe started from my WSL (Windows Subon Windows, and I wonder if I can automate the procedure. At the end of the day, I would ...
0
votes
1answer
141 views

Autoshift with autohotkey

I wanted to play with autoshift functionality. That is, if any of the alphanumeric keys is pressed longer than some timer, "shift" is automatically applied. I would imagine that someone has already ...

1 2
3
4 5
24