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
2
votes
1answer
352 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 ...
1
vote
0answers
220 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
316 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
972 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 ...
6
votes
2answers
16k 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
994 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, % "...
2
votes
1answer
308 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 ...
3
votes
2answers
7k 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
327 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 ...
0
votes
1answer
181 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
104 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
472 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
236 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 ...
0
votes
1answer
225 views

AutoHotkey: swapping modifier keys when a specific ahk_exe/process is active, regardless of ahk_class or window title

I am trying to make the windows and alt keys swap when I am using REAPER so that my shortcuts on the PC are typed the same (as in the same keyboard locations by muscle memory) as when I am using it on ...
2
votes
1answer
1k views

How to simulate a key press in an out of focus window

I'm looking for a way to simulate a key press in an out of focus window. More specifically, I need to press a key every x seconds in a browser page for a given amount of time. It should look like a ...
0
votes
2answers
495 views

Using AutoHotkey to make CapsLock a Shift Lock for arrow keys

An AutoHotkey question. In general, I would like to see, when CapsLock is on, pressing one key would produce Shift + key. My question is almost answered in a SuperUser question here and an AutoHotkey ...
0
votes
1answer
456 views

How to make a selected monitor showing black by pressing a joystick button?

I would like to blank and reveal a given monitor by the press of a joystick button. I found the tool MultiscreenBlank2 which can blank and reveal a selected monitor. I try to use the tool AutoHotKey ...
0
votes
1answer
562 views

Why “SetCapsLockState, AlwaysOff” does not disable CapsLock completely in AutoHotKey?

Why SetCapsLockState, AlwaysOff does not disable CapsLock completely?
1
vote
2answers
144 views

How to mask “:” in a first row in AutoHotKey Hotstring?

How to mask ":" in a first row in AutoHotKey Hotstring? I want to type "colors:" and get "red, violet, blue". ::colors'::: Send, ( red, violet, blue ) return
1
vote
0answers
59 views

Media Keys for Specific, Uncommon media sites?

I like listening to an old-style radio show called Adventures in Odyssey. It's absolutely awesome, and the site is well made except for a few things. The player automatically continues to the next ...
0
votes
1answer
2k views

Remap Shift + Ctrl to Shift + Alt with AutoHotKey?

Is there a way for AutoHotKey to re-map the functionality Shift+Ctrl+← or → arrow (which highlights everything to the left/right) to Shift+Alt+← or →? Coming from a Mac I'm so used to having the CMD ...
1
vote
0answers
421 views

A program won't come to the foreground (Windows 10)

I have a program (QGIS, which uses QT5) that will not come to the foreground. It starts maximized (that's fine) but it stays behind all my other programs. It can be focused, and I can work in QGIS, ...
0
votes
1answer
411 views

How to connect to OpenVPN GUI with AutoHotKey

I've been using the OpenVPN GUI with an .ovpn file (I use the one provided by free VPN SigaVPN) for about a year, and although I'm generally pleased with both OpenVPN and SigaVPN, it's getting tiring ...
0
votes
2answers
556 views

Remap Winkey and Disable It's Shortcuts

The purpose is for gaming and I want to remap the Winkey to some other key so the Start Menu doesn't pop on when I hit it, and I want to disable Winkey shortcuts like Winkey+e (which opens explorer....
2
votes
1answer
890 views

Use ScrollLock key as a modifier with AutoHotkey

How to use the ScrollLock key as a modifier with AutoHotkey? Example: ScrollLock + F1 : Launch software1.exe ScrollLock + F2 : Launch software2.exe ScrollLock + F3 : Launch software3.exe etc. I'...
2
votes
1answer
185 views

How to use # and {enter} simultaneously inside a hotstring?

I'd like to do this using Autohotkey: Keyboard press ``# to get two lines of text in my text editor: #!/usr/bin/env python3 #coding: utf-8 I find it hard to achieve, because # and {enter} seems ...
2
votes
1answer
71 views

Prevent Winkey + Alt + Enter from opening Windows Media Center and rebind it

I've bought a new remote control and am using AHK to rebind some of its buttons. It doesn't have a software to set what each button will do, "it just works". Using KeypressOSD.ahk I'm able to see ...
2
votes
3answers
3k views

AUTOHOTKEY | WinMove | Virtual Desktop of choice

UPDATED-STATEMENT: 20181118@205016@SUN A suggestion was made to manually focus the Virtual Desktop of my choice, but this eliminates me from doing other tasks on another Virtual Desktop. Still waiting ...
0
votes
2answers
60 views

Combining two scripts into one fails

As two separate scripts the hotkeys work as expected. Combining into one file the #^l and #^h hotkeys stop working. Is it a glitch or am I doing something wrong? #NoEnv ; Recommended for ...
1
vote
1answer
135 views

Solution to Capslock / Shift every key?

I would like every key to be equivalent to "Shift + " when caps lock is turn on. Currently caps lock only capitalizes letters, not other keys. So if I press: '/", then it should be " rather than ' ...
0
votes
2answers
1k views

autohotkeyahk | holding a mouse-button to hold another key?

UPDATED-STATEMENT: 20181102@112800@SUN Post created UPDATED-STATEMENT: 20181104@133200@TUE Suggested pre-requisite code that worked only for a short while UPDATED-STATEMENT: 20190101@184318@TUE Pre-...
1
vote
0answers
112 views

How to execute a host autohotey combination/script from within VMware VM?

I have: Deepin OS as a VM in VMware workstation pro 15 Windows 10 as my main OS A script at my main OS so that when I click left control + left arrow / right arrow, it switches between workspaces ...
1
vote
0answers
216 views

Use AHK to close a specific PDF file open in Adobe Acrobat [closed]

Say I have multiple PDF files open in a single Adobe Acrobat window. I want to close one of these files. What would the AHK command be?
1
vote
6answers
5k views

Create a text file with a keyboard shortcut in Windows Explorer

I'm using the solution from How to create a new text document (TXT) file by a Hotkey? since a few years, with Autohotkey, and it allows to create a new text file anywhere in the Windows explorer with ...
1
vote
2answers
966 views

AutoHotKey script replace backslashes with forward slashes

I run a Linux emulator (or subsystem) under Windows 10, and sometimes I need to past Windows paths in the Linux console. Windows paths use backslashes \ to separate directories whereas Linux paths use ...
0
votes
1answer
211 views

AHK Virtual Machine GetPixelColor

I made a script on my computer and inside of it I uses the GetPixelColor function. After I made sure the script was working well, I transported the script to my VM and realized that the colors differ.....
0
votes
2answers
51 views

Detect WIN+PRINTSCREEN but not PRINTSCREEN

I have: Screeshoter freeware that detects PRINTSCREEN and does a screenshot Autohotkey that calls WindowsSnippingTool with WIN+PRINTSCREEN: #PrintScreen:: Run, "C:\Windows\winsxs\amd64_microsoft-...
1
vote
1answer
32 views

Dual Purpose Middle Click

I use middle click to open new windows in Chrome solely. I am also used to using middle click to essentially paste coming from Linux. Is there with autohotkey to keep both functionalities present? ...
1
vote
1answer
1k views

Disabling Windows 10's explorer.exe on startup to run custom kiosk mode

I need to disable explorer.exe on startup on Windows 10 in order to run an script.exe that launches several apps to run a vending machine. How can this be done?
0
votes
2answers
929 views

Remapping keys using autohotkey

I want to use autohotkey to remap the f11 key and the combination ctrl+f11 to something easier accessibele as ctrl+left and ctrl+down. I tried the following code, but it runs both f11 and ctrl+f11 if ...
0
votes
1answer
101 views

AutoHotKey I can't make the script work properly (sending text) - Answered

I'm trying to make a script that makes me: press enter > write this text/code [&AvT2LQEA] > then press enter again. It's for ingame purpose of showing off specific item. So far I've tried to make ...
0
votes
1answer
316 views

AutoHotKey: How do i get the 'Date Modified' of my current working directory into the clipboard?

I have a script that logs basic folder name and file count from media directories on our server into a spreadsheet. However, I also need to add a line of code that retrieves the 'Date Modified' of the ...
0
votes
0answers
64 views

Get microphone event info

So I'm using a 2in1 IR/2.4Ghz air mouse (Azulle lynk if it helps) to control my PC. It has a microphone button which I have to hold to use the mic but it does not register as a key press(to my ...
3
votes
1answer
2k views

How to send apostrophe (') in AutoHotkey?

I'm stuck to hold a specific character. The code does work with letters but doesn't work with apostrophe. ':: { pressed:=!pressed if(pressed) { sendinput,{' down} } else { sendinput,{' up} } }...
1
vote
1answer
1k views

Need a solution for running Windows apps full screen

I'm setting up a HTPC in Windows 10 and I want all of my UWP apps (Netflix, Hulu, Store, etc) to run full screen (not maximized... I want actual full screen). I know I can use tablet mode to ...
2
votes
2answers
4k views

AutoHotKey: How to make my script run only within a specific program?

I have made an AHK script that adds metadata to video clips within Avid Media Composer (video editing software). It does this by entering all the necessary sub-menu's and sends mouse clicks to ...
0
votes
0answers
71 views

How to put the notification area in multiline mode?

A couple of days ago the taskbar glitched (I actually use an AHK script to toggle its visibility) and I was left with a rather curious layout: a single-size taskbar with a wrapped notification area. ...
0
votes
1answer
615 views

AHK multiple keys sequence

On my iPhone, I have text replacement set up such that if I type three letters in combination it replaces it with a predetermined string of characters. How do I set AHK to replace the letters ABC when ...
0
votes
1answer
257 views

Autohotkey script to change Throttlestop 8.60 profiles

Is it possible to make a script, that would switch profiles in Throttlestop 8.60? Built-in hotkeys are restricted to ctrl-alt-shift + number, i want to bind it to "Win+Ctrl+1" for profile #1 and "Win+...
0
votes
1answer
1k views

Autohotkey disable Fn+Win key

Here's the script to disable windows start menu, but allow modifiers, it works as intended: LWin & vk07::return LWin::return I want to disable Fn+Win key, because it's opening windows start menu....

1
3 4
5
6 7
25