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

3
votes
2answers
4k views

How can I launch FireFox with no window frame or tabs / address bar?

I am looking for a way to launch Firefox from a script or command line without any window frame, address bar, or tabs. I'd like to be able to launch this at a given window size and position on screen. ...
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
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
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
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 ...
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
2answers
671 views

How to bind a key to left mouse button perfectly?

I am very new to AutoHotkey and I want to know if it's possible to bind a keyboard key to mouse left button one to one? Like if I hold down the key assigned to left click it would hold as if I'm ...
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
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 ...
0
votes
2answers
571 views

autohotkey's ControlClick,&Set Default not working?

I'm following this awesome AutoHotkeyScript and having difficulty getting the Set Default button to be clicked. off topic: If you want to replicate, I had to change a few commands for detection of ...
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 ...
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
5answers
394 views

How to show Year, date and day along with Time in windows taskbar?

How to show Year, date and day along with Time in windows taskbar? through autohotkey
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 ...
2
votes
1answer
230 views

Remap of Browser_Home key fails when browser window is not in focus

I have a bluetooth remote with a Browser_Home key, which I'm attempting to remap with AutoHotkey on my Windows 10 machine. By default, pressing Browser_Home does one of two things: If the window in ...
10
votes
7answers
55k views

Super key to pause, mute mic, and mute speakers in windows

EDIT:Just rephrasing the question: Does anyone know how to mute the mic using autohotkey? Here's why I need it: Whenever someone walks in my office I have to pause the media player. Sometimes, when ...
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
4k views

Execute command/script in Windows 10 remotely from Linux machine

My goal is to launch a simple AutoHotKey script in Windows 10 machine from Ubuntu host within the same private network. After googling, I found winexe, which sounded like it could do what I want, but ...
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-...
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 ...
4
votes
2answers
2k views

When caps lock is pressed, space bar returns underscore

Basically, what I'm looking for is: when CapsLock is on I want Space to return _ and I want Shift + Space to return . Detail: This is kind of a continuation of this question I asked about the ...
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?
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
2answers
869 views

Display turns on after I turn it off with AutoHotkey command

I use these two shortcuts to turn off the display: Launch_Mail:: #T:: SendMessage, 0x112, 0xF170, 2,, Program Manager However, not infrequently, the display turns back on instantly after I use this ...
0
votes
3answers
1k views

Autohotkey - need to reload

i am using autohotkey with great pleasure, but for some reason i need to reload the scripts / replace the instance every ~60 minutes. they are still active in my taskbar, but the shortcuts are no ...
2
votes
1answer
3k views

How to send ctrl key press with Auto Hotkey

I am trying to map a mouse button to mimic a single press of a ctrl key on the keyboard. (ctrl is used in a game I am playing to toggle displaying some extra info on the screen) I've tried this but ...
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 ...
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 ...
2
votes
0answers
143 views

Windows 7: Task Scheduler/Engine reduces the Working Set/memory of applications, is there anyway to stop this?

I've been trying to auto-start some Auto-HotKey scripts using the Task Scheduler since it allows the scripts to run with admin privileges without a UAC prompt. Usually, the scripts fail after several ...
1
vote
1answer
1k views

Shortcut for “Next” window in Windows 8 (or 7 or XP)

I want to have a shortcut for the next window in the open windows I do know about Alt+Tab but that's not what I want. Alt+Tab will cycle between 2 windows. Alt+Tab+Tab will cycle between 3 windows ...
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 ...
2
votes
5answers
745 views

Remap Ctrl to Alt and keep Alt+Tab and Ctrl+Tab

I'm using autohotkey to swap Ctrl and Alt LAlt::LCtrl LCtrl::LAlt This works great, but on top of this i want to keep Alt+Tab and Ctrl+Tab where they originally were. I've tried already a lot of ...
0
votes
1answer
216 views

Strange behavior involving right-click on laptop

(Synaptics TouchPad V1.3 on SMB Port, 19.0.19.1 / Windows 10, all updates installed) Left-click is working normally on my laptop. However, when I click the right-click button, nothing happens. The ...
7
votes
2answers
9k views

Generic way to remap every media button

Today I tried to remap some keyboard media keys to more useful functions and failed to do so. The problem The manufacturer doesn't provide a utility to bind and execute custom commands. My previous ...
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
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 ...
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. ...
1
vote
0answers
44 views

Can AutoHotKey be able to focus a panel?

Some programs have floating panels within the main window. Since the ability to focus them with keyboard only depends on the framework they are using, is there a way to use AutoHotKey to do this ...
2
votes
2answers
997 views

Emulating vi directional keys using AutoHotKey

Currently I am using following code for changing keyboard layout: //vim.ahk CapsLock::Send, {CTRLDOWN}{SHIFTDOWN}{SHIFTUP}{CTRLUP}{CTRLUP} return !^CapsLock::CapsLock CapsLock & j :: Send {...
6
votes
2answers
2k views

Autohotkey use CapsLock key as modifier key

How might I use the CapsLock key as a modifier type key in autohotkey? For example currently I am currently doing the following: t=0 CapsLock::t:=!t #If t y::6 u::7 Ideally I would like to ...