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
1
vote
1answer
298 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
1k 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 ...
3
votes
0answers
394 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, ...
4
votes
1answer
921 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
140 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
839 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
146 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
764 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, ...
1
vote
1answer
3k 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
79 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
305 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
1k 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
689 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
475 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
675 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
258 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
82 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.
2
votes
1answer
2k 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
256 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
96 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
276 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 ...
9
votes
1answer
3k 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
407 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
299 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)?
2
votes
1answer
574 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
643 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 ...
4
votes
3answers
2k 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 ...
4
votes
1answer
202 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 ...
2
votes
0answers
143 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
263 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
237 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
188 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)?
3
votes
1answer
2k 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
894 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
1k 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
298 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
665 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
102 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 ...
4
votes
2answers
4k 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
122 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
375 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
623 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 ...
4
votes
1answer
692 views

Switch any program to kiosk mode

Sometimes friends or even unknown people visit me and we are doing something on my computer. I often find myself in the situation when I want to leave the computer but I don't completely trust the ...
0
votes
1answer
595 views

Pressing multiple modifier keys using AutoHotkey?

This should be pretty easy to do, but I can't figure it out. To open a link in a new tab and switch to it in Chrome, you press ctrl+shift and click. I want a button on my mouse to map to ctrl+shift. I ...
4
votes
2answers
1k views

Displaying a custom animation at the click location on Windows 10 in response to an event

There are plenty of programs regarding the alternation of the cursor appearance, especially for the Mac OS in which one can change the look of the cursor, on for example mouse events, with beautiful ...
1
vote
1answer
339 views

How to have Sublime Text's Vim mode and AutoHotKey work without conflict?

Sublime Text is by far the best text editor I've ever seen, and AutoHotKey is the scripting program I can't live without, especially the hotstrings feature, which allows me to create abbreviation-...
2
votes
1answer
2k 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,...
2
votes
1answer
1k views

How to bind a mouse click to open task-view in Windows 10

I use the Sketchpad on Windows Ink Space a lot on my tablet and sometimes I wish to switch between applications without closing the Sketchpad and without moving much - ie: quickly swap to task view, ...
0
votes
2answers
3k views

Autohotkey Keywait for either of 2 keys to be released

In Autohotkey, I know you can use "KeyWait" to wait for a key to be pressed or released, but what can I do if I want to be able to wait for either of two keys to be released? I found this on the web, ...