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
2answers
93 views

Recovering data corrupted by an AutoHotkey script?

I'm using AutoHotkey scripts for automating note taking stuff. Today, some problem occurred and Notepad++ did not respond. I closed the window, and after opening the file, I saw that all my data had ...
0
votes
2answers
224 views

Convert Two Keys to Three Keys using AutoHotKey

I make extensive use of the character "Zero-width non-joiner" in my documents and the program I use to write my documents is InDeisng. In InDesign the shortcut for ZWNJ is CTRL+SHIFT+2. Now I would ...
2
votes
1answer
855 views

Paste selected text on Windows like on Linux (middle mouse button)

I really like this feature on Linux systems. I want it too on my Windows systems, but I didn't find a proper solution. The solutions I found: -True X-Mouse -AutoclipX -Autohotkey script The ...
0
votes
1answer
409 views

How to simplify this AHK script? GetKeyState or KeyWait?

I have a script which contains three variants like these for 50+ keys. I wonder, how could I shrink it? ; Press "a" = Option 1 (with 500 ms sleep) ; Press "Ctrl + a" = Option 2 (with 500 ms sleep) ; ...
0
votes
0answers
220 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
1answer
65 views

Determine current status of Unikey: Vietnamese/English typing mode

I am using Unikey from this website to type Vietnamese in TELEX mode in my laptop. I would like to know whether it is in Vietnamese typing mode or English typing mode so I can use that info to write ...
0
votes
0answers
261 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
73 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 ...
1
vote
1answer
108 views

AutoHotKey Format Time

I'm trying to format 24 hour time like this. If I type "1930+" → 19:30 If I type "0630+" → 06:30 Basically when it reads a "+" at the end of a number 0-9 then it adds a " : " two places backwards. ...
0
votes
0answers
90 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
39 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
1answer
146 views

Disable ALT Functionality after an Application starts using AutoHotKey

I was looking for a way to disable the alt functionality that prepares a mnemonic-capable menu to be used with the keyboard, waiting for a letter to be pressed but, apparently, this isn't possible by ...
0
votes
1answer
492 views

AutoHotkey: create a hotkey with 3 keys

I want to create a hotkey with 3 keys, for example "control + k + l" Let's say I have the following script: ^k&l:: Click, 55, 100 Click, 55, 750 Return This code won't function ...
0
votes
1answer
205 views

Need to send keystrokes into a Citrix window

Client just got a new system. They're connecting to a program through Citrix. I don't know the exact details but basically the call center connects to a VDI, and then opens the application. The ...
0
votes
1answer
111 views

Word 2016 template with jump stops

When making a template which includes the same text except for a few distinct additions that I need to insert, how can I include "jump stops" to signal the cursor to each desired place? I believe ...
0
votes
1answer
209 views

How do I make Auto Hotkey convert “RButton down, Mousewheel action, RButton up” into “MButton down, Mouse moving up & down, MButton up”"

I got a program that zooms when pressing MButton while moving mouse up and down. Because this seems a little bit odd to me, I decided to use AHK to let this program zoom when the mouse wheel is ...
4
votes
0answers
497 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 ...
2
votes
1answer
63 views

Mimic right-click-key found on T420 keyboard

Background I used to have an old Thinkpad (T420?). The keyboard had a right click key on the keyboard, shown below. It was pretty convenient. I could open a folder, scroll down through the files in ...
3
votes
1answer
494 views

Autohotkey for disabling Alt-menu not working on Windows 10

I first discovered Auto Hot Key when I needed to disable the alt-menu option with the script ~LAlt Up:: return It worked back there, but its been a couple of months since I noticed it stopped ...
2
votes
2answers
65 views

Autohotkey go to EOL

In my autohotkey script I've created the following hot keys that I thought would allow me to move my cursor to the end of a line or beginning of a line instead of using Home and End. #NoEnv ; ...
0
votes
0answers
363 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 ...
3
votes
2answers
101 views

AutoHotKey Adding to End of a Number

I'm trying to set up AutoHotKey to do the following: If I type "34c" I want it to change to "34°C" with any number. 17.5c → 17.5°C It's easy to do with a "c" by itself by when it's at the end of a ...
3
votes
2answers
281 views

Disabling the WS_CAPTION flag does not work for chrome apps opened as window anymore

For years I've been using the ahk script below to disable the WS_CAPTION (long 0x00C00000) flag on Windows 10 applications windows in order to make their title bars invisible. The most common case of ...
3
votes
0answers
54 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 ...
0
votes
0answers
138 views

Trying to encrypt Hex to base64 via clipboard with AutoHotKey

I got a code that will decode highlighted URL to base64. Now I like to encode a highlighted hexadecimal to base64 but I cannot get it work : / As example, we have hexadecimal: ...
0
votes
1answer
718 views

How to close all running scripts, and restart them later?

In order to update AutoHotkey, all running scripts must be closed. AutoHotkey processes can be killed with a simple script (see below), but I don't know how to restart the same ones at will. Currently ...
0
votes
1answer
207 views

Autohotkey script to launch program on internet reconnection

I'm trying to code a script that monitors the internet, and if it disconnects to run chrome.exe on reconnection. Here is what I have so far; UrlDownloadToVar(URL) { ComObjError(false) WebRequest := ...
0
votes
2answers
1k 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 ...
1
vote
1answer
249 views

Autohotkey script for releasing a key after being pressed in combination with another

Does anyone know what the script would be to release left after I press left and down? I want it so that when I press and hold ← ↓, ← releases but ↓ continues to be pressed.
3
votes
0answers
696 views

Is there any way to type the clipboard to the guest in VMware

Similar to this question for VirtualBox: How do you auto-type the contents of the clipboard from the host into a guest Virtual Box instance? Is there any way to type the contents of the clipboard to ...
0
votes
0answers
95 views

Is there a way to dock an app on the side of screen so other apps maximize to the side of it?

I've seen a few apps (such as instant messaging apps) that will dock to the side of the screen and essentially shrink your total desktop space, meaning that any apps that are maximized on that monitor ...
0
votes
1answer
74 views

windows 10: disable specific hotkeys

I know there are a ton of questions like this, but I'm having a slightly more specific problem... I want to disable a couple specific windows 10 hotkeys (specifically, any hotkeys that are modified ...
0
votes
1answer
902 views

Autohotkey to search images

I'm learning how to use autohotkey and I wanted to create a script which open a game from steam and joins automatically to a specific server. My code so far is: F1:: Run, steam://rungameid/346110 ...
1
vote
2answers
2k views

how to open file in window on set position using autohokey from cmd/batch?

I having a hard time to combine my scripts which work separately... basicly I have a batch script with following in it: START "" "mpc-hc64.exe" "video.avi" this will open my video in mediaplayer. ...
0
votes
1answer
190 views

Autohotkey bug. Workaround?

In windows 10, I switch between a Greek Polytonic keyboard and a normal English QWERTY keyboard. I have an autohotkey script which swaps the left control key with capslock. settitlematchmode, 2 #...
0
votes
1answer
219 views

AutoHotkey XButton1 Simulating Control

I've been at this for an hour now with no luck. I've tried different ways and have yet to figure this out. Basically I'm playing a game, and in that game, in order for you to jump, you have to have ...
0
votes
1answer
133 views

autohotkey script only works if it creates a new notepad file each time

I have very little experience with AHK, but after some trial and error I managed to write a script that saved me tons of time. Somehow, it stopped working, and now that I am trying to troubleshoot it, ...
0
votes
1answer
90 views

CTRL+ENTER on a file in Windows 7 Explorer [duplicate]

The .py files are associated to SublimeText on my Windows 7. Thus, when hitting ENTER when the cursor/selection is on a .py file in the Explorer, SublimeText opens it. I want to keep this. How to ...
0
votes
0answers
40 views

Remapping Ctrl+LWin not working

I am trying to remap Ctrl+LWin to Shift+Alt and i tried this but it is not working: ^LWin::!Shift. Any idea why it is not working?
0
votes
2answers
1k views

Set hotkeys using AutoHotkey to control Music

I have a new pc with Windows 10 and three hotkey keys (f2, f9 and f10) are not used. On my old pc I had 3 keys dedicated to music: one paused/play, and the other two were to go to the next or previous ...
2
votes
1answer
4k views

How can I disable "Do you want to open or save this file?” prompt for .mp3 files in IE 11?

I am using IE11 for my AutoHotKey scripts.I want to disable “Do you want to open or save this file?” download prompt. I tried following things. 1-)Find the correct registry value for.mp3 C:\Users\q&...
0
votes
1answer
222 views

AutoHotkey: Syntax For Mapping CapsLock to Alt-Tab?

In AutoHotKey, I would like to map CapsLock to Alt-Tab. What is the syntax to make this work? And must I reboot to see it start working? (I've tried writing CapsLock::AltTab -- is this the wrong ...
0
votes
1answer
370 views

Keyboard Shortcut for Sort by Date Modified

Noob here I'm using autohot key to sorty by date modified whenever im in file explorer. Problem is that in some folders if the order of the columns is different my script doesn't work. Does anyone ...
1
vote
1answer
991 views

Three Key combination for AutoHotkey

I found out how to remap Caps Lock and S to something else: CapsLock &:: ... But how can I have a combination with three keys like CTRL, ALT and S?
0
votes
1answer
93 views

STAR song in spotify through AHK

As per this link: Is there a keyboard shortcut for "Save to Your Library" in Spotify's desktop app? The AHK script doesn't seem to work anymore. any updates/new solution to this please? ...
0
votes
0answers
78 views

some issues with my AltTab AHK script

I have created the following script to have an experience similar to the Android's "Recent Apps" but i have encountered some glitches; sometimes the Alt button stays "Down" after switching between ...
2
votes
0answers
221 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 ...
8
votes
2answers
5k views

Open Powershell as Administrator at Current File Explorer Directory Keyboard Shortcut (Windows 10)

Let's say that I'm browsing through Windows File Explorer, and suddenly I decide that I would like to open Powershell as administrator at the current directory (the directory that I'm at in File ...
0
votes
1answer
1k views

How can you run autohotkey script in background only with PID available?

I like to run an autohotkey script in background inside a virtual machine (sandboxie). The script will press f1-f8 keys in an endless loop. It is supposed to have effects on a game which runs on the ...
0
votes
1answer
211 views

Run Chrome with “first/only parameter”

I have search for a "first/only" parameter in this chrome list of parameters https://peter.sh/experiments/chromium-command-line-switches/#load-extension but I can't find it does anybody know how to ...