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

Disable mouse using a key

Is there a way I can assign a key to block other keys using autohotkey? I've tried this, tried adding parentheses nothing works Here is the code g:: lbutton:: rbutton:: BlockInput, MouseMove ...
0
votes
1answer
300 views

AHK, holding button

I hope this is the right place to ask. I want the LButton to be executed normally if tapped but want RButton to be pressed when held down. Example: I spam LButton and do a light attack but holding ...
2
votes
3answers
828 views

Beep or make a sound upon Cut, Copy, Paste

I have autohotkey installed in my windows 10. How can I have it to "beep" or make a sound whenever I Cut, Copy, Paste, something. I'm working on a huge records which involves cutting-copying-pasting ...
-1
votes
1answer
1k views

How can I set one key on keyboard for multiple keys through AutoHotKey?

I need to press my end key, to register space+s at the same time. From what I have heard, the code is somewhat like End ::send space,s Escape:: ExitApp Return Now the problem is that I don't ...
1
vote
1answer
718 views

Autohotkey won't restore/activate a minimized window

I have created the following script in an attempt to have one hotkey that launches the calculator, or, if it is already open, 'activates' the window, or, if it is already activated, closes the ...
0
votes
1answer
271 views

Is it possible to remap key combinations in windows without AutoHotKey?

I want to remap alt+arrows to work like home, end, etc like here but I prefer to not have another program running in the background. Is it possible to do this without AutoHotKey? Is there anything ...
0
votes
1answer
239 views

AHK — How to interrupt alternate keys for same hotkey?

I have a code that every time I press the hotkey, a letter is sent. Pressing Q, Q, Q, Q, Q is sent "a", "b", "c", "d", "e", respectively. Then the loop restarts. For example: pressing Q 13 times ...
1
vote
1answer
151 views

AHK – How to group different commands to a hotkey?

In Photoshop I have 3 actions for my hotkey "g": If I hold "space + g", zoom in and enable tool (zoom); If tap "g", enable tool (smudge); AND... If I tap "g" 2 times, open menu (Ctrl+Alt+F12). If ...
0
votes
1answer
638 views

Autohotkey bind one key to several with random timers

3:: Send {3} Sleep, 55 Send {4} Sleep, 64 Send {5} Return GOAL: press 3 = press 345 BONUS: random sleep time This is my first AHK script. My problem is that the output of the script is only 45 (not ...
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, ...
3
votes
1answer
568 views

AutoHotKey: remapping Alt+Shift+Tab to (L)Win+Shift+Tab

I'm trying to use AutoHotKey to get Alt+Tab and Shift+Alt+Tab in Windows to have the same behavior as Cmd+Tab and Shift+Cmd+Tab in macOS. Note: Cmd on a mac keyboard sends the Win key. What I've ...
0
votes
1answer
85 views

AutoHotKey - Multiple commands not being executed

I am using an AutoHotKey script to control iTunes with standard media keys and its working great except for one tweak I've tried to add to it. I want the Play/Pause media key to Launch iTunes if it's ...
3
votes
2answers
658 views

AutoHotkey - make window stay right in taskbar

Is there a way to achieve this using autohotkey: I want some windows to be always at the top right of the taskbar no matter how many programs I opened. So, for exmaple, currently it is like this. But, ...
0
votes
1answer
88 views

Basic AutoHotKey input doubler?

I have a fairly simple idea that I think AutoHotKey could help me with. Essentially, when I use ctrl-v to paste, I want it to transmit a second ctrl-v so that I paste twice. I've got several keybinds ...
0
votes
2answers
488 views

How do I swap primary and secondary mouse buttons from the command line or by using a hotkey without rebooting or compiling a program?

My eight-year-old son is left-handed and I am right-handed. I wish to be able to quickly and easily switch primary and secondary mouse buttons from the command line. We use Windows 10. I found this, ...
0
votes
1answer
2k 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.
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 ...
0
votes
1answer
200 views

Use AutoHotKey to remap Windows desktop commands to Numpad

I want to remap the Windows multiple-desktop keys to the Number pad. Right now, to do it, I can press Windows+Control+Arrow key to shift between them on Windows 10, but I want to do it with the Number ...
2
votes
2answers
496 views

How do I bind my left click to a button?

Im using AHK (AutoHotKey) to try and bind my X button to be left click (When X is pressed it would act like a left click) for game usage. I am confused on how to do it. If you know, please help.
0
votes
1answer
438 views

How to use modifiers with hotkeys in AutoHotKey

I have a working AHK script that I've been using for a while. I recently tried adding a new line to this script to run a function in Transparent Screen Lock; namely, to lock the PC on a hotkey ...
0
votes
1answer
289 views

How can I send CTRL+Tab to get out of textbox (Form in SAP)

May you please help me with sending a key press into a SAP form. I am using a AutoHotKey app. I would like to send CTRL+Tab to get out of textbox window by pressing a key combination CTRL+T (don't ask ...
0
votes
1answer
502 views

AHK script to click a specific button in a program not working inside the program window?

I'm trying to create a hotkey for a software button inside a program since the devs of the program did not do so. Here is what I tried to move the mouse, click the button and move the mouse back to ...
0
votes
1answer
127 views

Binding on AutoHotkey isn't working?

I'm new to AHK and I'm trying to write a script which does the following: I press F3 and then there is a mouse click at certain coordinates on the screen and then the cursor goes back into its ...
0
votes
1answer
68 views

Autohotkey script to emulate krunner

Is there a way to emulate krunner with Autohotkey? The idea is to press ALT+F2, for example, type the name of the program and it would search for the installed programs and start it.
1
vote
1answer
1k views

Create and toggle Windows Firewall rule

Using a single batch, PowerShell or AHK script, how can I: (if it does not exist) create a Windows Firewall rule that blocks a program; and disables or enables the rule depending on what its current ...
1
vote
1answer
172 views

AutoHotkey remapping for Autodesk Maya navigation

I'm trying to remap existing navigation controls for panning 3D view in Maya. Since Maya doesn't allow any changes to its navigation I want to try to do that with AutoHotKey. By default to pan a view ...
-1
votes
1answer
89 views

Single keystroke for a series of keys

Lately I have been trying to remap my LeftControl button to perform "wdwdwd", this is how Meepo works for me. I had tried this piece of code <^:: Send, wdwdwd the ahk file gets executed, but ...
0
votes
0answers
194 views

Capture Fn key on microsoft keyboard wireless 850

I am trying to capture or change the function of the Fn key on a microsoft keyboard wireless 850 My end goal is to redefine it with autohotkeys. It seems that the Fn key is not detected and does not ...
7
votes
1answer
2k views

AutoHotkeyA32 vs. AutoHotkeyU32 vs. AutoHotkeyU64

The portable .zip archive for AutoHotkey contains 3 executables: AutoHotkeyA32.exe, AutoHotkeyU32.exe, and AutoHotkeyU64.exe. Based on the filenames, I'm assuming 32 and 64 refer to 32-bit and 64-bit ...
0
votes
0answers
247 views

AHK Script Regularly Stops Responding

I've got a simple script that I use for text expansion. The layout is similar to the following: ::.sig:: SendInput This Is My Signature Return For some reason, this script regularly stops ...
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
1answer
382 views

Autohotkey script making keys “sticky”

I've been successfully using an AHK script for almost a year which maps Ctrl-C and Alt-E-S-V (an Excel shortcut) to Win-key combinations, and maps Ctrl-Del to Ctrl-Space, Ctrl-- (delete row). However,...
1
vote
1answer
416 views

How to enclose a selected string with characters?

Enclosing a string would be particularly useful on message boards with no markdown shortcuts, instead of typing [quote] [/quote] I could use a hotkey to do so. Adding quotation marks (") or other ...
3
votes
3answers
1k views

win 10 autohotkey; how do you remap window swapping from alt-tab to ctrl-tab?

I recently swapped the ctrl and alt functions on my computer to make it feel more like a mac, but one thing is still bugging me. When I press alt-tab now I cycle through different tabs of the ...
5
votes
1answer
185 views

copy newest file in Windows folder to clipboard automatically

I am using a program called "screen shot assistant" to convert PNG files to JPG. The program outputs the files from the clipboard to a designated folder. (using AHK or any other method) I am looking ...
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 ...
0
votes
1answer
199 views

How to move text cursor to the next location quickly? [closed]

I need to fill text inside the quote brackets, which locate in unpredictable places in the file. Is there a way to fill them quickly without having moving the cursor manually? NASA, “” [Stagnation ...
0
votes
1answer
168 views

Bypass windows protection to allow autohotkey send

For Example if I do this: run Notepad.exe sleep 500 send, test return It will run when I'm logged in remotely, but if I schedule a task to run this .ahk it will run it but will stop a the send ...
-1
votes
1answer
168 views

How to run scripts with Windows is booted (like AutoHotKey or Java scripts)?

I need to run a certain script each time Windows goes up. How could I execute it when starting Windows (that is, in boot)?
4
votes
1answer
1k views

Custom Syntax Highlighting for AutoHotkey in Notepad++

I'm using the latest version of Notepad++ as of this post (version 7.3.3, 64-bit) with User Defined Language v.2.1.0.12. I've added syntax highlighting for AutoHotkey provided by the AHK message ...
1
vote
1answer
570 views

Using AutoHotkey, I'm trying to remap the function keys to their secondary function as default and the default as the secondary

I'm trying to remap the function keys to their secondary function as a default nut I'm running into a few issued in the code. One thing to note is that, in my keyboard driver software, I can switch ...
-1
votes
2answers
819 views

Adding a custom button to the OneNote ribbon

Is there any way to add a simple custom button to the OneNote 2016 ribbon? All I want to do is have it run an AutoHotKey script. I looked at Onetastic but it does not appear to have a way to run ...
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 ...
0
votes
1answer
487 views

In PotPlayer is there a way to move OR copy the current playing file to another directory (besides trash)? Or any way with AutoHotKey or similar?

When reviewing multiple video files for Video Editing, and library mgmt, PotPlayer ticks many boxes for fast reviewing, but can't find this. Thought i'd reach out here for anything I might have ...
0
votes
1answer
77 views

Is it possible to use AutoHotkeys to submit form data on a website?

I have set up hot keys to let me highlight a word in a foreign language(FR, SP, GE) and based on the hotkey I can either conjugate it, hear a human pronounce it, or define it in context. However the ...
2
votes
1answer
2k views

AutoHotKey Run Windows Commands

Is there a way to run Windows command line commands in AutoHotKey without just opening a command prompt and sending the key presses? I want to run commands hidden in the background. For example ...
0
votes
1answer
98 views

Assist with AHK Script?

the below code is an AHK script that i have been using. It works very well. Essentially what it does is it pulls the mouse down for me, while im holding left control and the left mouse button. The ...
1
vote
1answer
232 views

How can i combine these 2 AHK scripts? Any help please

can someone please help me? I am trying to merge these 2 scripts in 1, but i keep getting errors. I thought just combining them would work, but sadly it has not lol. The 2 scripts are below. #NoEnv ...
0
votes
1answer
443 views

Fine tune this red border around active window AHK script

I am a autohotkey novice, but i've found this kind of useful script for putting a red border around my active window making it more noticeable. I've installed autohotkey and run the script, however I ...
0
votes
1answer
1k views

AutoHotkey Run script while holding down key

I need help with a script, i want it to only run while im holding down a key. Heres the script: ;If you use this, you have to use absolute screen coordinates. CoordMode, Mouse, Screen ;Suppose a ...