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
69 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
24 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
41 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
23 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
27 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
43 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 ...
0
votes
1answer
38 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
13 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
24 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
0answers
10 views

Batch File or AutoHotKey for pre and post launch of applications Win 10

This is for an arcade cabinet. Im trying to create a script to launch a controller profile using xpadder, then start an emulator/game. Then once the game is closed, launch a 'blank controller' ...
0
votes
1answer
34 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....
0
votes
1answer
34 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
17 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 ...
1
vote
0answers
37 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
27 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
54 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
0answers
55 views

winactive or run in virtual desktop autohotkey

i work with virtual desktop whit multiples intances of google chrome in diferente virtual desktop I normaly use this for active or run google chrome . ^ñ:: SetTitleMatchMode, 2 ; approximate match ...
0
votes
1answer
55 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
0answers
18 views

Can't find CLSID for an application

I wan to use an AHK script with a specific version of Photoshop (CC2018, I have several installed) set via ComObjActive("{CLSID}"). The problem is I can't find an ID associated with this version. When ...
0
votes
1answer
52 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
0answers
16 views

Which messages are sent when restoring program from taskbar? (Windows 10)

Have a problem with certain program which would only correctly minimize or maximize by clicking on his taskbar icon any other way would result in unsatisfactory result i.e using autohotkey can't work ...
0
votes
2answers
56 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
0answers
23 views

What is wrong with my script in AutoHotKey? WITH VIDEO DEMO

Video: https://youtu.be/zbMQ6BOP6_E 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 ...
0
votes
1answer
35 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 ...
0
votes
0answers
25 views

Autohotkey: Remapping left and right mouse clicks while a key is being held down stop the held key from being held down

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 ...
1
vote
1answer
139 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. ...
0
votes
0answers
19 views

AHK native button function is not blocked where it should be

I would like to use right-mouse-button combos while preserving the native behavior of the button: *RButton::Send {RButton down} ; 1-simluate original behavior of RButton *RButton UP::Send {...
1
vote
3answers
458 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
33 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
68 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
70 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
0answers
34 views

Autohotkey: map left windows key to alt

I am trying to map the left windows key to Alt in Windows 10, because RealVNC apparently doesn't catch the windows key. Can this be done using AutoHotKey? I found some sort-of-working approaches: ; ...
0
votes
1answer
54 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
50 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
141 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
41 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
94 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
475 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 ...
2
votes
1answer
907 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
243 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
54 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
58 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 ...
1
vote
1answer
1k 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?
1
vote
0answers
165 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
25 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
108 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.
0
votes
0answers
62 views

Exclude All Subsites & All Subdomains From Google Search Results - Autohotkey

How can i Exclude All Subsites & All Subdomains From Google Search Results. I want to do With Autohotkey a Google Query Search that is able to do this: 1 - searching into all the existing ...
1
vote
2answers
71 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
141 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
68 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 ...