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
135 views

Disable all Win+key shortcuts in Windows 10, but leave the shortcuts available for other apps?

I have an app which requires the use of certain Win+key commands for various functions, and I can't remap these shortcuts. Many Win+ shortcuts can be disabled in regedit using the method described ...
0
votes
1answer
96 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 ...
0
votes
0answers
42 views

How can I remap scroll-wheel left-right to copy-paste with AutoHotKey?

How can I remap "mouse right scroll" to ctrl+c and "mouse left scroll" to ctrl+v using AutoHotKey?
2
votes
1answer
289 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
144 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
331 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
225 views

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

Why SetCapsLockState, AlwaysOff does not disable CapsLock completely?
0
votes
1answer
76 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
0
votes
0answers
48 views

Cannot use shortcuts made by Autohotkey in RStudio

I made some shortcuts using Autohotkey like this. CapsLock & j::Left CapsLock & k::Down CapsLock & l::Right CapsLock & i::Up It works on other program such as chrome or words. But ...
1
vote
0answers
44 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
387 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
216 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
139 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
1answer
287 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
259 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
136 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 ...
0
votes
0answers
79 views

How do I rebind the Keyboard Layout Switch (“Alt+Shift”) to another keypress in Windows 7?

I switch between ANSI and ISO keyboard layouts often in my work. So I want to use this function, but I want to bind it to the Pause key ("F15"). How do I accomplish this so it works in all programs? ...
2
votes
1answer
40 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 ...
0
votes
2answers
1k 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
58 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
113 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
440 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
91 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 ...
0
votes
0answers
207 views

AHK: Switch to a window in the current virtual desktop?

I currently have this: F1:: IfWinActive, ahk_exe ConEmu64.exe { WinActivateBottom, ahk_exe ConEmu64.exe return } else { WinActivate, ahk_exe ConEmu64.exe return } return This cycles ...
2
votes
0answers
97 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?
0
votes
3answers
924 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 ...
0
votes
1answer
210 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
74 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
42 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
27 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? ...
0
votes
1answer
384 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
271 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
46 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
83 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
61 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
538 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
515 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 ...
1
vote
1answer
1k 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
67 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
370 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
122 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
440 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....
0
votes
2answers
260 views

Replace certain text in lines with each line from another file

I have a text file with text of this order; str/4 <</Contents(100 cups)/(Date) Colour red <</Contents(080 bowls)/(Date) Status used Pack team <</Contents(200 John)/(Date) School ...
0
votes
0answers
58 views

Touchpad Scrolling and Mouse Wheel Scrolling

I have a mouse with a wheel attached to my laptop which has a touchpad. Can I enable the mouse wheel to scroll one screen at a time and have the touchpad scroll one line at a time? I can install ...
0
votes
1answer
64 views

Open windows 10 emoji dialog with Win+X hotkey turned off

I want to insert emoji while typing in Windows 10. Unfortunately I have globally disabled Windows+X hotkeys using Group Policy. So I cannot use Win+; or Win+. anymore. How do I use it then? I am open ...
0
votes
0answers
24 views

Autohotkey, holding down 2 bottoms for a certain amount of time will do the action of another bottom

I'm new to aouthotkey, current script below ~W & A::Send {0} Return ~D & W::Send {+} Return ~D & S::Send {9} Return simply want to add a timer of when W & A is hold down ...
0
votes
1answer
199 views

AHK Counter Gui does not have title

On trying to make a small counter in AutoHotkey AHK to count some stuff, when I press Page down and Up for + and minus, all work well with a small problem the GUI that it opens is so small and I can't ...
1
vote
0answers
42 views

Hotkey to play selected folder/s on windows explorer

If one or more folders on windows explorer are selected and then "Alt + Intro" is pressed, windows shows the properties of those folders. I would like to make a custom hotkey to play the files in the ...
1
vote
1answer
298 views

How to let an Auto-Hotkey Script survive desktop-locking?

I got an Auto-Hotkey script #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Warn ; Recommended for catching common errors. SendMode Event ; Input worked ...
1
vote
0answers
43 views

Hello folks, I'm looking for a program that by using a hotkey and pressing double-click will open a file with the desired application [closed]

Now let me explain, Let's say I have a media file (.mov) and I want to open it with Winamp. I would press a series of modifiers Plus the left Mouse button and it will open it with the program ...