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

How can I get language code for Vietnamese Telex?

How can I get language code for Vietnamese Telex? I tried this site but it(0x042A) is wrong for Vietnamese Telex. I'm using windows 10 version 1909 (OS Build 18363.1198).
19
votes
2answers
58k views

Swapping Function (Fn) and Control (Ctrl) Keys on Lenovo ThinkPad W500

I'd like to swap the Fn and Ctrl keys on my ThinkPad W500 (like many others! See: How can I switch the function and control keys on my laptop? and Intercepting the Fn key on laptops) Numerous folks ...
0
votes
0answers
9 views

Use AutoHotKey to change the audio input/output for a specified Program?

Sorry, this is my first using this software and I already tried searching on their forum, to no avail. What I want to achieve is to have a keyboard shortcut key to change the audio input/output for a ...
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
0answers
14 views

Can anyone spot the cause for and hopefully suggest a resolution for this autohotkeys bug? [closed]

I present to you my first autohotkeys script. For the second time (Thanks pedantic stack exchange user) It is based on a piece of code provided by a user here: How to hide mouse cursor? The original ...
1
vote
2answers
5k views

How to hide mouse cursor?

How to toggle mouse cursor visibility? Hiding mouse cursor would be useful in particular with certain video players and PC games, when it isn't done automatically.
0
votes
1answer
30 views

How to disable zoom (ctrl + scroll wheel) in chrome dev tools?

I want to disable zooming in and out chrome dev tools when I hold ctrl and scroll. One way is to completely disable this action from mouse settings for all applications but that I don't want. Can I ...
0
votes
0answers
15 views

Remapping Left Shift + up arrow to another key

Hi guys total AutoHotkey newbie here, I was wondering if any experts could help me with a quick script? I would like Left Shift & up arrow key to type the question mark key "?" And Left ...
0
votes
1answer
27 views

How to remap a key to several characters in AutoHotKey?

I'm making a keyboard layout where nearly every key maps to several characters. I know the usual syntax for remapping a key to a single other key is a::b, but that doesn't seem to work for multiple ...
10
votes
3answers
2k 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, ...
1
vote
3answers
170 views

Is there a way to automatically quit two programs when battery is below certain level?

I'm setting up a new laptop with Windows 7 and I'm using Rainmeter to display system info in a sidebar (CPU, memory, GPU info etc). This needs MSI Afterburner running in the background to access GPU ...
7
votes
5answers
9k views

Need Autohotkey to center active window

I'm looking for a way to center the active window on the desktop using Autohotkyes. Can someone give me a script that I could use please. Thanks
0
votes
1answer
20 views

Best strategy to block concurrent button presses. Block spacebar while holding CTRL

So a few weeks ago I modified my mechanical keyboard to lube the switches, I broke the Left-ctrl key's contacts on the pcb making it a dummy switch. I have since ran jumpers from the left-ctrl to the ...
0
votes
1answer
17 views

Browser Keyboard shortcuts not working

I recently switched to a PC ( from a laptop). I use keyboard shortcuts extensively for Chrome (and other browsers), but they're not working on the PC. Specifically, Ctrl+T for new tab and Ctrl+Tab for ...
0
votes
1answer
11 views

`alt + ctrl + <anyCharacter>` autohotkey mapping used in a jetbrain IDE goes goes through but then a a popup opens after pressing enter

This quesiton is similar to What is preventing ctrl-alt-m from reaching IntelliJ on Windows 10 . However, ctrl + alt + <anyKey> does go through to the jetbrain IDE, pressing any key after that ...
0
votes
2answers
677 views

Any way to set window bigger than desktop with Autohotkey?

I'm trying to solve this problem on Windows 7. I need to set the window size bigger than actual size of desktop, so I can hide title bar and main menu of arbitrary application. Unfortunatelly it ...
0
votes
0answers
15 views

Multiple cursors at once functionality, just as in the Visual Studio Code but in every Windows application?

Was wondering if this: https://code.visualstudio.com/docs/editor/codebasics can be implemented with WinApi or by DLL calls using something such as https://www.autohotkey.com/docs/commands/DllCall.htm ...
2
votes
1answer
2k views

Universal middle button scrolling with laptop with mouse pointer in keyboard

I have a new HP ZBook G6. It has two mouse button rows, the top one for the mouse pointer in the middle of the keyboard, the lower one for the trackpad. I have completely disabled the trackpad (and ...
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 ...
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?
0
votes
1answer
4k views

What's the utility of the return command in autohotkey?

In the instances where the return command returns a value, the utility is obvious. I have seen the return command being used even when it is seemingly unnecessary. Let me show the following examples: ...
1
vote
1answer
22 views

Blocking specific keys while a function is running with AutoHotkey

So I made this script with AHK and it works but what I want it to also do, is to make it so while the function is running, it wouldn't be able to be triggered again. So I want to either deactivate the ...
0
votes
1answer
31 views

Is there a keyboard shortcut to uncheck, not toggle, a checkbox?

If looking at a webpage checkbox you know whether it needs to be toggled with mouse or spacebar to uncheck. However, with tools that simulate keyboard usage I am not aware of a way to definitively ...
1
vote
2answers
42 views

How to turn my screen black and then turn it back on on command?

I need to find a way to make my pc (windows 10) screen turn black, without turning the computer off (or putting it to sleep) and then turn it back on on command. This is because I need t make a ...
3
votes
3answers
4k views

How to bind F13-F24 keys to the 12 side buttons on Razer Naga?

I'm trying to use the Razer Synapse configuration app to bind the 12 number buttons send extra F keys from the 13..24 range, but I'm not having any progress. When I'm in the right menu, I can press F1 ...
11
votes
8answers
20k views

How to toggle the auto-hide status of the Windows taskbar

I use Windows 8 on my desktop. Currently I have to move my mouse over the taskbar, right click, click on properties, click on auto-hide the taskbar, and then click OK. This is a real pain if you want ...
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
1answer
169 views

Autohotkey - GetKeyState breaks if a new key is pressed

I'm trying to create a script that presses the space button, as long as it is physically pressed. By example, if I hold down the space bar, the script would replicate spaces with Send. As soon as I ...
1
vote
0answers
175 views

Remapping mouse buttons to single-button hotkeys not usable on the keyboard

I have a Roccat Kone AIMO and I want to remap the buttons to buttons that are not on my keyboard, like the F13-F24 keys. I could theoretically do this via the "assign a hotkey" function in ...
2
votes
1answer
3k views

AHK is possibe to make this script works in inactive window

Is it possible to make this script work in a specific inactive/minimized window. ? loop { dllcall("keybd_event", int, VK, int, SC, int, 0, int, 0) dllcall("keybd_event", int, VK, int, SC, int,...
0
votes
0answers
26 views

How can I reprogram keys of one of my keyboards?

Not sure if this is a question for this forum but: I have a laptop and a connected keyboard (where some keys are not working properly). I would like to edit the keys so that all keys on the left side (...
0
votes
0answers
19 views

how do i get rid of “press 1 to answer” on google voice?

I want to be able to answer a call by just pressing the hotkey "a" to pick up the call without having to then press "1" on google voice. how do i do this? thank you
0
votes
1answer
3k views

How to disable view page source in Chrome?

I need one help from you that is to block the page of viewing the source (original sites should be opened but source page must be blocked). I have almost come to the solution with the help of ...
0
votes
0answers
2 views

Windows 10 configure application precedence for capturing key strokes

I am running windows 10, and from time to time need to remote login to a mac. And I have since encountered some key stroke capturing issues. So I have the wox launcher bond to Win + Space. And if I ...
0
votes
0answers
27 views

Make mouse wheel behave like arrow keys for camera movement in RTS game

I want my mouse wheel to work like the arrow keys on the keyboard, to move the camera in a game the same way I can do it with wheel left/right, which I could bind via the mouse software. But I could ...
4
votes
2answers
3k views

How to make AutoHotkey automatically close a pop-up dialog?

Question I'd like AutoHotkey to automatically detect when a certain pop-up dialog appears and take certain actions. How do I do that? Concrete example In my particular case, I'd like AutoHotkey to ...
123
votes
12answers
271k views

How can I open a command prompt in current folder with a keyboard shortcut?

How can I open a command prompt in current folder with a keyboard shortcut in Windows 7? Is there any way to implement this? I think Autohotkey could do this, but don't know how.
0
votes
1answer
20 views

ahk script hotkeys losing their original functions

I use some hotkeys in an ahk script but they don't do their original functions if I assign hotkeys. Example: I may have double press esc for alt + f4 closing an application but then esc does not do ...
0
votes
0answers
24 views

Convert multiple files with AutoHotkey

I'm trying to setup AutoHotkey to automatically convert a selected file to PNGs when pressing a CTRL+ENTER. To do the conversion, I'm using the CLI version of Filestar. I have figured it out how to ...
8
votes
5answers
11k views

How to fix AHK to send keys to RDP fullscreen?

How do you get AutoHotKey hotkeys to work with Remote Desktop in fullscreen on Windows 7?
1
vote
2answers
3k views

AutoHotKey remap page down to (ctrl + win + left)

How do I remap page down to (Ctrl+Win+left) for Windows 10 desktop switch. Same for page up to Ctrl+Win+right
16
votes
8answers
97k 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
26 views

Autohotkey, Retrieving title or URL seperately from a string?

So I have this firefox extension that simply copies to the clipboard, the active tabs URL. It is coppied in this manner [title](URL) so for example [Google](https://www.google.com) I need to retrieve, ...
0
votes
0answers
19 views

How to create or is there a shortcut to mute the sound of the current window/program?

What I want to do is mute the sound of the current program/window in Windows. How I would normally go about this, is RMB on Sound Icon in taskbar (or through Control Panel -> Sound) -> Open ...
3
votes
3answers
5k views

How can I return focus to the previous window?

I have an Autohotkey script which opens and closes a pop-out command line similar to the Quake console dropdown. When I close it, however, it places focus on the taskbar. How can I instead return ...
1
vote
0answers
423 views

Remap Bluetooth headset button on Windows 10?

I have Bose QC 35 II and I am trying to get the Multifunction button to mute/unmute calls in MS Teams. For the purpose I will be using AutoHotKey, but in order to do that I need to capture the message ...
11
votes
5answers
3k views

Why is notepad++ blocking my autohotkey shortcuts?

I have a series of keyboard shortcuts defined in my autohotkey script. Currently, none of them work whenever notepad++ has focus. The script is loaded as usual. The keyboard shortcuts (mostly stuff ...
2
votes
1answer
42 views

AutoHotKey Send Dynamic Key

I'm trying to create a script with a user-configurable hotkey I can bind to the dynamic hotkey, but I can't seem to send a hotkey. Here is a simple script illustrating the problem #Persistent #...
8
votes
2answers
4k views

Windows virtual desktops. Cycle back to first desktop at end

Let's say I have three virtual desktops. I know I can navigate through them using: ctrl + windows + left | right However, is there a way to make it cycle back through to the beginning if I reach the ...
0
votes
0answers
17 views

How to make WinMove fill the margin?

^l::WinMove, 0, 0 When I press ^l, though the window move to the left corner, some space remains unfilled. Is there any way to make WinMove to fill the margin?

1
2 3 4 5
25