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
0 answers
54 views

Why do Some programs not cover the entire screen even when maximized? [closed]

Normally you can just click double square icon in the top right corner of the program to make it maximize the window. It's simple as that. But some programs's window do not cover the whole screen even ...
user avatar
0 votes
0 answers
17 views

AHK: Open folder or active it if opened

I'm using autohotkey and try to do this: Open download folder (Q:\Down in my case) or active it if already opened (subfolders don't count, for example still open Q:\Down if I opened Q:\Down\phvideos ...
user avatar
  • 245
0 votes
1 answer
45 views

AHK and drive safety when constantly writing to disk

First of all am fairly new to all this, so please bear with me. I am in a situation where I need to constantly write the contents of a variable to an INI file located on the C: drive. By constant I ...
user avatar
0 votes
0 answers
25 views

Sending Keystrokes/Macro to a connected device?

Currently I'm trying to automate a bit of work I've been handed. Basically, it's a device where I need to put in the same values over and over again, though with a variable for it (Serial and MAC). ...
user avatar
0 votes
1 answer
20 views

Mapping every key into a modifier when pressed with another

It has become common to e.g. map Caps Lock to Ctrl as a modifier / Esc when pressed alone. I had an idea to do a similar thing with regular keys, e.g. j+w -> Ctrl+w, but j when pressed alone. I ...
user avatar
0 votes
1 answer
57 views

How can I prevent the 0x80004005 error from appearing when I run AutoHotkey code?

#IfWinActive, ahk_exe explorer.exe ; only for explorer ^sc07B:: selected = % Explorer_GetSelection() ; get currently selected item in explorer as source ;*[test] ...
user avatar
0 votes
1 answer
29 views

Autohotkey script doesn't work when VSCode focused

The default behavior for the shortcut <Windows Key + Number> is to open the respective application on your taskbar. I have this behavior overridden by the AHK script posted here, which changes ...
user avatar
0 votes
0 answers
15 views

AutoHotkey: switch Windows desktop in combination with full screen VNC

My problem is that the default shortcuts to change a Windows virtual desktop are not working when running a VNC client full screen. I need to pass all system shortcuts directly to the VNC session, ...
user avatar
3 votes
1 answer
110 views

How to split multi-line clipboard data (e.g. from Excel) in single-line "pastes", one CTRL+V at a time

To illustrate my dilemma as simply as possible: I have a list of values ranging from 1-10 that I want to copy and store. When I press Ctrl+V (or any paste execution), I want 1 to be displayed. When I ...
user avatar
1 vote
2 answers
64 views

Alt + Shift + letter in AutoHotKey

In AutoHotKey, this works just fine RAlt & a::Send {U+00E4} ; RightAlt + a -> ä Now I want to map the capital version of that letter, i.e, RightAlt + RightShift + a -> Ä I tried this but ...
user avatar
0 votes
0 answers
28 views

Why does the script work on a Notepad window, but not on an Explorer window and other program windows?

I found some code that works in the notepad, but can't work in the explorer and some other software, how to change it to universal?Or is there some other way, to scroll the number of lines without ...
user avatar
  • 1
0 votes
1 answer
17 views

Supress #f in Visual Studio from opening "Feedback Hub"

I have the following autohotkey script: SetTitleMatchMode 2 #f:: if WinExist("Mozilla Firefox") WinActivate return #v:: if WinExist("Microsoft Visual Studio") ...
user avatar
  • 101
1 vote
0 answers
30 views

Rewriting the input change logic "Alt" + "Shift" (release) on Windows?

I am trying to implement this algorithm, and rewrite Windows input change logic : I tried this LAlt:: While GetKeyState("LAlt", "P") { Input, key, L1, % "{LControl}{...
user avatar
  • 119
1 vote
1 answer
53 views

Suspend foreground process with AutoHotKey?

I have found how to suspend a specific process, and how to get the process path and name of the foreground window, but I'm not sure how to combine the two. I found this script and have been testing it ...
user avatar
0 votes
0 answers
25 views

Modifier + Left Click to Middle Click

I would like to map a modifier key + left click to function as a middle click. For example, Ctrl + left click to middle click. I use a logitech mouse with the frictionless wheel that tilts left and ...
user avatar
0 votes
0 answers
22 views

I have an issue with dropdownlist and send command

I have a bot that monitors certain areas and captures pixels. I want a DropdownList to press a separate key on the keyboard for each captured pixel. It's a DropdownList where I can set which key to ...
user avatar
1 vote
1 answer
116 views

NirCmd volume control of certain applications from Volume Mixer not working?

So I use this app to mute microphone communication in Valorant. But I also want to mute the game itself. The devs of the game have separated these 2 so in Volume Mixer (SndVol.exe) they are 2 ...
user avatar
  • 11
0 votes
1 answer
47 views

Running a program before Windows login (Task Scheduler fails to execute)

I'd like to run a small *.exe written in AutoHotkey before the Windows user logon. I created a scheduled task for this, but it doesn't seem to work. In the task scheduler it reads "The last run ...
user avatar
  • 176
0 votes
0 answers
36 views

VLC Media Player: edit short jump forward based on total video time, not current position

I am looking to use VLC Media Player in a very specific way. I know I can edit jump sizes for very short jump, short jump, etc. Instead, I would like short jump to reflect the total video time, not ...
user avatar
1 vote
1 answer
84 views

How do I auto highlight specified text in Autohotkey?

For example this replaces all the words test with test. :*?:test::test2 which works but I would like it to highlight that 'test2' given word.
user avatar
  • 1,258
1 vote
1 answer
52 views

Map Alt Space to Win (Start Menu) in Windows 10

I'm trying to map Alt+Space to open the Start Menu on Windows 10 (to the same hotkey as Spotlight on Mac). I'm trying to use AutoHotkey, but it's not working: LAlt & Space::LWin Maybe it has ...
user avatar
  • 411
1 vote
1 answer
146 views

Can use special characters without pressing shift key in windows10?

how can I use number keys in top of keyboard just for special characters like (@#$) without pressing shift key to use that. -for example when pressing num2 key just show @ I search about that just ...
user avatar
  • 23
0 votes
0 answers
61 views

What's wrong with my .bat file syntax?

I'm making a tiny batch file to do three things: Run an autohotkey file to remap certain keys. Immediately after, open a game executable, then wait until I close it in-game and... kill the autohotkey ...
user avatar
0 votes
2 answers
69 views

Autohotkey - Sort ini file in reverse?

Is it possible to read an ini file in reverse? Can it be done with a "sort" or a "filereadline" loop? a.ini [section1] key1=1 [section2] key2=2 [section3] key3=3 [section4] key4=4 ...
user avatar
  • 31
0 votes
2 answers
76 views

Autohotkey - Keyboard Input to Only One Program

I'm trying to make it so that I can read and scroll through my Adobe Reader using the mouse, but when I start typing, I want it to go to my OneNote to take notes while I'm reading. I can set OneNote ...
user avatar
0 votes
0 answers
55 views

Changing integrity of a running process, in Windows from command line?

I trying to change running processes integrity, as can be changed in Process Hacker: So, like this, but in command line that I need. I tried Icacls, and chml, and PsExec, but they not capable to do ...
user avatar
1 vote
2 answers
510 views

How can I execute AutoHotKey in a game

This is not for cheating. I am playing a point and click, single player game. The only goal I have is to move the cursor so it is visible on my TV. My laptop is plugged into my TV screen, and only ...
user avatar
0 votes
1 answer
78 views

Executing Remote Script With Remote Console Output

I can ssh to a RPi 4 from Windows 10 and start a remote Python script, but the output of the script appears on the Windows console. Tried using nohup to be able to close the Windows console without ...
user avatar
  • 13
0 votes
0 answers
35 views

Is it possible to have multiple font colors in gui-edit?

I want to show sections and keys from an ini file in different color in gui-edit (all section color : blue , all key color : red) With this code, the texts are only blue: FileRead, file, a.ini Gui, ...
user avatar
  • 31
1 vote
1 answer
60 views

Autohotkey-Gui-Edit : Can section and key be read in different color in ini file?

How to read sections and keys in different colors in gui edit I'm reading an .ini file, but I can't display the section and keys in different colors. reads in only 1 color a.ini : ↓↓↓↓↓↓↓↓↓↓↓ [title] ...
user avatar
  • 31
1 vote
1 answer
178 views

How do you enable "dark mode" for the AutoHotKey GUI windows?

I use AutoHotKey to pop up little boxes where I can paste various things into and then press Enter to forward this to my more advanced scripts. They look way too bright when I've made such great ...
user avatar
0 votes
0 answers
55 views

AHK's Run is not saving the correct PID

I have a script that is supposed to open a new incognito window, display the pid, then close the incognito window. However the pid saved from Run doesn't match windowSpy's pid. Here's the script: ...
user avatar
0 votes
1 answer
64 views

Autohotkey: Get the shortcut (.lnk) of the currently open file?

When I open a file and press the q key, I want to add the shortcut of that file to a different folder. example: q:: (active file: %A_Desktop%/1.jpg) add active file shortcut(.lnk) to in folder (%...
user avatar
  • 31
0 votes
1 answer
101 views

Autohotkey: I can't get the path of the active file

i want to get path of active file. active file path: C:\Users\e\Desktop\1w.jpg" autohotkey result: C:\Windows\System32\dllhost.exe code: q:: WinGet, Path, ProcessPath, A MsgBox, %Path%
user avatar
  • 31
0 votes
1 answer
50 views

Is AutoHotKey installer compromised? [duplicate]

According to Virustotal, the download for AHK is compromised. I also found a site called autoclicker.org (.org?) that links to another page that contains a compromised file. Seems these autoclickers ...
user avatar
  • 1
0 votes
1 answer
229 views

Keyboard shortcut for 7z "Add to archive..."

I want to create a keyboard shortcut for the Right click > Add to archive... feature of 7z, in the Windows File Explorer. This nearly works with AutoHotkey: #z:: SendInput {AppsKey}a{Enter} ...
user avatar
  • 1,696
0 votes
1 answer
75 views

Automatically pause media when switching virtual desktops in Windows 10

I've been searching for a way to get this functionality with no luck so far. Basically, all I'm trying to do is have a script in AutoHotKey or another program that will pause whatever media I happen ...
user avatar
3 votes
2 answers
117 views

Tweak Windows 10 scrollbar to jump to clicked location by default

In Windows 10 (and probably all other Windows versions too), clicking a scrollbar above or below its handle scrolls up or down by one page. But instead, I'd like to jump to the clicked location. There ...
user avatar
  • 479
0 votes
0 answers
112 views

AutoHotKey script to copy text from a chrome extension?

I am using Windows 10. I want to assign a hotkey to automatically copy and paste text from a chrome extension's default popup window (the one you can access for example by left clicking on an ...
user avatar
1 vote
2 answers
320 views

Auto close program after X seconds inactivity (in that program)

Using AutoHotkey, I want to auto close a program (e.g. Firefox) after X seconds of inactivity (in that program--i.e. mouse or keyboard activity possibly elsewhere, but none in that program). What code ...
user avatar
1 vote
1 answer
73 views

Fix repeated keystrokes without destroying AutoHotkey scripts?

I have a mechanical keyboard problem where sometimes 1 keypress registers as 2. I solved this by installing Keyboard Chattering Fix and setting a minimum 50ms delay requirement between key presses. ...
user avatar
  • 157
0 votes
1 answer
45 views

Autohotkey-COM-Youtube : How get channel id from url?

I can get the video name using this code. But to get the channel id I change the "title" to "channel_id" but it doesn't work... I want to get channel id instead of title MsgBox, % ...
user avatar
  • 31
0 votes
1 answer
119 views

Is it possible to intercept a 'open file' event in windows and replace the default opening application with something else?

Suppose I have two .pdf files. One is a comic book and the other is just a document. The behavior I want to achieve in the end is when I double click on the comic book, it will open the comic book ...
user avatar
1 vote
0 answers
75 views

How to Pin to Bottom/Desktop UWP Application Using AHK Windows 10

I'm aware of using setParent from DLL in Windows and I can pin Win32 application on Windows already with this script #o:: Current := WinExist("A") ;ParentID := WinExist("ahk_exe ...
user avatar
0 votes
1 answer
77 views

How to make space act like as if it were a new modifier key like alt, shift, ctrl

How do I make the space key (or any other non-modifier key) act like a modifier? For instance when I hold down space and press h, it should e.g. print "hello".
user avatar
0 votes
1 answer
156 views

Map Caps Lock to Backspace and Caps lock to Some other shortcut using Autohotkey

How can I turn caps lock to backspace using autohotkey? I also want to add some kind of shortcut to toggle caps lock by mapping shortcut like Shift + CapsLock. I am using windows 32 bit Standard ...
user avatar
2 votes
2 answers
673 views

How to assign a hotkey to enable/disable Focus Assist on Windows 10/11?

To my surprise, there seems to not be a Windows hotkey for enabling/disabling Focus Assist on Windows 11. Is there a way to force such a hotkey, even if it requires the use of third-party software (...
user avatar
  • 1,141
0 votes
0 answers
48 views

Keyboard doesn't register Ctrl+Shift but lets me use any other key combination that doesn't involve Ctrl+Shift

I am trying to fix my keyboard not letting me press Ctrl+Shift at the same time, or at least fix autohotkey script since that also didn't work when I tried to assign Right Shift to Ctrl+Shift. When I ...
user avatar
  • 1
0 votes
1 answer
87 views

Can I override a specific key on my keyboard permanently to always enter the @ symbol?

The problem is (and this really sucks) that every so often (without apparent reason) the alternate keys are not working on my keyboard. I really tried EVERYTHING (keyboard layout, keyboard ...
user avatar
  • 301
0 votes
1 answer
94 views

AutoHotKeky: Run a CMD command in the background

I would like to write an AHK script to be able to switch between portrait and landscape mode by a single key. Here is my first attempt not exactly what I am looking for. I am not an expert in the AHK ...
user avatar

1
2 3 4 5
26