Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
1answer
24 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
18 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
50 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....
0
votes
0answers
49 views

Remap Autodesk Maya camera navigation with AutoHotKey?

So I've just now figured out that remapping navigation (Camera Track) controls for Autodesk Maya is physically impossible, so the only way around this is to use AutoHotKey. I need help figuring out ...
2
votes
1answer
48 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
56 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
45 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? ...
0
votes
0answers
36 views

AutoHotKey: MacOS style keyboard modifier keys on Windows?

I'm a new AutoHotKey user, and I've been Googling for the past couple hours for existing examples of what I'm trying to do, but nothing I've found works quite what I'm going for. I just switched from ...
2
votes
1answer
26 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
1answer
115 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
67 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 ' ...
1
vote
2answers
85 views

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

win10_v1803.17134.345_home autohotkeyahk_v1.1.30.00 How to hold w when holding XButton1 on Logitech G502 using AutoHotKey? Problem is when holding the key with the script below it just sends a single ...
1
vote
0answers
33 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
60 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
30 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
2answers
184 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
0answers
28 views

Autohotkey bug after disabling, left-clicking opens new file explorer window instead of maximizing/minimizing

mbutton:: suspend rbutton::shift return I need this script for a 3D software I'm using. Unfortunately I'm getting a bug right after I disable it by pressing middle mouse button. I made a 51 ...
0
votes
1answer
42 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
38 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
38 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
21 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
105 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
38 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
39 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
42 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
53 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 ...
2
votes
1answer
94 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} } }...
0
votes
1answer
155 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 ...
0
votes
0answers
131 views

autohotkey - toggle a loop with the same hotkey which starts it

I have this loop, i don't know autohotkey, and i would like to toggle this loop with capslock: CapsLock:: Loop,10000000{ SendInput { m down} sleep 50 SendInput {Click} sleep 50 } return EDIT:Yes i ...
0
votes
1answer
104 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
60 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
99 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
70 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
113 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
77 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
40 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
31 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
20 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
39 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
33 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
100 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
40 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 ...
1
vote
2answers
62 views

Recovering data corrupted by an AutoHotkey script?

I'm using AutoHotkey scripts for automating note taking stuff. Today, some problem occurred and Notepad++ did not respond. I closed the window, and after opening the file, I saw that all my data had ...
0
votes
2answers
56 views

Convert Two Keys to Three Keys using AutoHotKey

I make extensive use of the character "Zero-width non-joiner" in my documents and the program I use to write my documents is InDeisng. In InDesign the shortcut for ZWNJ is CTRL+SHIFT+2. Now I would ...
1
vote
1answer
221 views

Paste selected text on Windows like on Linux (middle mouse button)

I really like this feature on Linux systems. I want it too on my Windows systems, but I didn't find a proper solution. The solutions I found: -True X-Mouse -AutoclipX -Autohotkey script The ...
0
votes
1answer
185 views

How to simplify this AHK script? GetKeyState or KeyWait?

I have a script which contains three variants like these for 50+ keys. I wonder, how could I shrink it? ; Press "a" = Option 1 (with 500 ms sleep) ; Press "Ctrl + a" = Option 2 (with 500 ms sleep) ; ...
0
votes
0answers
52 views

Secret Windows keyboard shortcuts?

So, my keyboard has a function key that opens Settings in Windows 10. With AutoHotKey, I discovered that the keyboard shortcut used is Win+F21. Here's the key history: VK SC Type Up/Dn Elapsed ...
0
votes
1answer
43 views

Determine current status of Unikey: Vietnamese/English typing mode

I am using Unikey from this website to type Vietnamese in TELEX mode in my laptop. I would like to know whether it is in Vietnamese typing mode or English typing mode so I can use that info to write ...
0
votes
0answers
34 views

AutoHotkey does not send some media keys?

With this AHK script running: ^!Left:: Send {Media_Prev} MsgBox, 0, , Pressed Left! return ^!Right:: Send {Media_Next} MsgBox, 0, , Pressed Right! return ^!Space:: Send {Media_Play_Pause} MsgBox, 0,...