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

5
votes
0answers
581 views

automate so that if and only if external monitor is attached, closing laptop lid does nothing

Please don't mark as duplicate before reading the whole thing. I have read the other posts and they do not solve my issue. I'm using a laptop with an external display. When the display is connected, ...
4
votes
0answers
234 views

I Need to Keep a Window Active

I need to keep a browser window active while I use another window. "Keep-on-Top" is not what I'm looking before because when I switch pages, it still goes inactive. I'm trying to keep a page ...
3
votes
0answers
43 views

How can I recover an autohotkey script that has been over-written

I have an autohotkey script that is continuously running on my computer. I inadvertently saved a blank script over it, but the original is still running in the background. I tried to recover the ...
3
votes
0answers
114 views

How to prevent window popup when new program starts?

Say I launch Firefox when reading a PDF. To prevent distraction, I want it to open silently until I manually switch to it. Is there a way to do this? All the search result I found is about JavaScript ...
3
votes
0answers
578 views

Monitor file change in AutoHotkey without a loop or timer

I am interested in having an .ahk file reloaded automatically whenever it changes. The reason is that I am hosting my .ahk files in Google Drive, and so the script may be changed on a running computer ...
3
votes
0answers
198 views

Get value for `Position` property from a Delphi TProgressBar class instance using AutoHotkey (ahk)

I would like to obtain the current Position (progress) property value from TProgressBar1, which is a child of TProgressFrame1 and grandchild of TPanel1 within a particular TProgressDlg Window. ...
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 ...
2
votes
0answers
517 views

Set Scaling of individual applications in Windows

I occurs to be that I want any app I'm not looking at to be scaled down (to say 100%), but the one in focus to be scaled up (to 200%). This would both make maximal use of my hi-res laptop screen for ...
2
votes
0answers
253 views

AutoHotKey: Odd window sizing behavior on Windows 10

I realise this is probably a really obscure problem but hey it's the internet. I have a 24" portrait monitor, and I wanted vertical snapping. I found an online script, but for most types of windows, ...
2
votes
0answers
2k views

Passing control hotkeys to VirtualBox with AutoHotKey

I use VirtualBox on Windows 10 host, and my guest OS is linux openSUSE. Since I still need many windows control hotkeys, I do not use Auto Capture Keyboard in VirtualBox. As a drawback, I can't use ...
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 ...
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
0answers
211 views

How can I pin AutoHotkey to the Window 7 taskbar?

I want to pin a shortcut for AutoHotkey to the Windows 7 taskbar. However, dragging AutoHotkey.exe to the taskbar doesn't work as expected. On my previous computer I was able to pin AutoHotkey to the ...
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 ...
1
vote
0answers
75 views

Why do config files stored in Dropbox not work?

Recently I have moved an AutoHotKey script and an AntiMicro profile to a Dropbox folder to avoid suddenly losing them if something happens. Since then new problems arise: The AutoHotKey script cannot ...
1
vote
0answers
194 views

What is “IfWinActive” counterpart for window class and process?

IfWinActive command isn't always viable as some windows don't have titles. Is there a similar command for window class (ahk_class) and process (ahk_exe)?
1
vote
0answers
249 views

autohotkey key map not working in Win10

installed latest ahk version on new win10 machine. Copied working key mapping script from win7 machine, but it does not work on win10. Tried creating new script on win10 to try mapping anything, but ...
1
vote
0answers
57 views

1-click switch user shortkey

So I'm looking for the most efficient method of switching between one user to another, on Windows 10. What I'm hoping to find is a command wherein I could add username and password (disregarding the ...
1
vote
0answers
285 views

Are there any other modifier keys on Windows?

I'm trying to use the Win key as a modifier key on Windows. So far, the best approach I found is to map it to another key using AutoHotKeys. For example, I can map the left win key to the left control ...
1
vote
0answers
152 views

How to create hotkeys for switching windows to specific desktops in Windows 10 using AutoHotKey

So, I have created an AutoHotKey script to easily switch to 9 different desktops using the number pad (think of it like a 3x3 grid, sort of). The problem is I also want to have hotkeys to move ...
1
vote
0answers
757 views

Windows 10 Volume Mixer fails to keep System Sounds muted over Remote Desktop Connection

The problem: after having muted the System Sounds on the remote desktop machine, it shall unmute itself after several seconds. This pattern is persistent. The physical setting: I use my laptop at ...
1
vote
0answers
135 views

How do I create an AHK that disables a specific bluetooth device?

How do I create an AHK script that automates the following process: 1.Right click audio icon and enters "Playback devices" menu 2.Right click a specific bluetooth device 3.Disables this bluetooth ...
1
vote
0answers
215 views

Automate clipboard pasting with AHK

I'm asking if someone would be able to help me formulate the code needed paste from the clipboard to a textarea (the ID is known) on a webpage using Google Chrome. It's a simple script with two lines....
1
vote
0answers
113 views

make tab a modifier key

Is it possible to set TAB as a modifier key? I want to bind tab-h/j/k/l to vim-style movement keys. Seems there is no mention of adding additional hotkeys in the Hotkeys documentation page. This ...
1
vote
0answers
106 views

Autohotkey. How will I hit ctrl button just once and not everytime?

shift::SoundSet +1 ctrl::SoundSet -1 .......is the script, problem is I need to press ctrl five times if I want my volume to increase five more. Unlike this: PgUp::SoundSet +3 pgdn::SoundSet -3 I ...
1
vote
0answers
155 views

Open TCP/IPv4 properties with Autohotkey

I have the following Autohotkey mapping to attempt to open the Open TCP/IPv4 properties: #w:: Run ::{7007acc7-3202-11d1-aad2-00805fc1270e},, max WinWaitActive, Network Connections Send {...
1
vote
0answers
51 views

How to setup a Ubuntu custom shortcut for “goto selection”

On Windows, I set up a Autohotkey shortcut in a way that the selected text was sent to the OS for execution. If it's a http hyperlink, default browser is launched. If it's a file path, file explorer ...
1
vote
0answers
126 views

How to send keystroke to tray application with AutoHotKey?

I have a tray application, which is listening for keystroke. Unfortunately, this keystroke is intercepted by very progressive Windows 8 interface. I don't need this progress, I need my old application ...
1
vote
0answers
279 views

How to use Windows key in Autohotkey as part of a macro

I have been using autohotkey on a terminal with 122 keys. I remapped the keys so that their original funky uses are now much closer to normal modern computers. I also mapped a scancode to Windows ...
1
vote
0answers
1k views

Submit button in Autohotkey GUI based on dropdown

Via autohotkey I'm trying to Read the contents from a dropdown box Present the content to the user in a AHK GUI dropdown box Select the correct item in the original dropdown box via the input ...
1
vote
0answers
642 views

How to quickly switch between “webcam preview” and XBMC?

I've build a dedicated PC for use in Dental Clinic, but I found out that it's very difficult to setup the computer "idiot-proof" enough. It has to do 2 simple things: show live preview from intra-...
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 ...
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
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 ...
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
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
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
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
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
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
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
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,...
0
votes
0answers
45 views

Make Google Translate extension read selected text automatically

I am using Google Translate extensition on Google Chrome. I already set up to immediately popup of any selected text as below. However, there is no option to make the extension read the selected text ...
0
votes
0answers
87 views

autohotkeys - pastes from clipboard instead of intended hotkey phrase

When I type in a hotkey command (ex. .shave) instead of filling in the intended Autohotkey phrase, it just pasts whatever I copied previously, i.e. what is on my clipboard. I'm using Autohotkeys in ...
0
votes
0answers
21 views

Autohotkey error due to missing IE.ahk

I would like to use this autohotkey for my dictionary. The code requires COM.ahk and IE.ahk. Unfortunately, the IE.ahk was retired and I am not familiar with autohotkey. When I run the code I got the ...
0
votes
0answers
55 views

Opening a window is not working, but clicking is

SetTitleMatchMode, 2 ; approximate match IfWinExist, - Incoming Video Call - Google Chrome { WinActivate, - Incoming Video Call - Google Chrome } MouseClick, Left, 1455, 470, ClickCount 1, Speed ...
0
votes
0answers
97 views

Windows 10: Mac OS like full screen mode

In Mac OS, a full screen window is automatically moved to a new workspace. Is there a way to replicate this behavior in Windows 10? I.e. Poll (or get notified) when a window is fullscreen, create a ...
0
votes
0answers
184 views

Remap “Windows key + Ctrl + Left or Right arrow” to “Fn key + Ctrl + Left or Right arrow”

How can I, using AutoHotKey, remap the following: Windows+Ctrl+Left/Right arrow (which switches virtual desktops on windows 10) to Fn+Ctrl+Left/Right arrow EDIT: Since this doesn't work, can I ...
0
votes
0answers
109 views

In KMPlayer how can I use mouse XButton1&2 for next/previous tracks

The mouse/keyboard preferences under general don't have the option to assign previous track and next track to the 3rd and 4th mouse buttons. I set up autohotkeys to send PgUp/PgDn which are assigned ...