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

Using Multiscreen blank with autohotkeys

I am finding a lot of forms saying to use autohotkeys in order to use multiscreen blank but there is no explanation for someone who does not know how to use autohotkeys. I want to be able to toggle my ...
TaxC's user avatar
  • 1
0 votes
1 answer
273 views

Is there any command line to open an existing image with Snip & Sketch?

Is there any command line to open an existing image with Snip & Sketch? Or better if you could open Snip & Sketch and paste an image from clipboard to Snip & Sketch.
hana's user avatar
  • 101
0 votes
2 answers
132 views

What are these Windows filename transformations?

i use Windows 7 x64. If i right-click on folder called C:\Longer than (3) and click "Send to" and send it to an .ahk file that simply shows the arguments it received, it shows C:\LONGER~3. ...
Avtem's user avatar
  • 3
1 vote
2 answers
76 views

Autohotkey Direction For Microsoft Photo Navigation With Keys In Zoom Mode

Microsoft Photos does not allow navigating through pictures if you are zoomed in into one, only when you are at default zoom level. This is a bit confusing, so I decided to create a Authotkey ...
Cyman's user avatar
  • 395
0 votes
0 answers
141 views

Completely disable some keys on a keyboard in windows

With AutoHotKey or with the PowerToys keyboard filter I disable lets say LCtrl. Copy & paste etc won't work, but LCtrl+Alt+Del will still bring up the screen that offers the task manager and ...
alparius's user avatar
  • 189
0 votes
0 answers
338 views

Someone help my script auto-hotkey with discord?

I have a script with auto-hotkey which works like like this: Every other minute, it will auto-type a message. The next minute, it will delete the auto-typed message automatically. The script I am ...
Grabbee's user avatar
  • 11
-1 votes
1 answer
73 views

Find multiple matches and place all at multiple location instance

so I have this comma delimited file that I need to import but I need to do some replacements first. A sample is as shown below; item A,<u>1 a1</u> red<u>2 a2</u> etc,content,,,,...
Gideon's user avatar
  • 181
1 vote
1 answer
157 views

How to check for NumPad status?

I would like to use my numeric pad for some actions when it is disabled (AutoHotKey V2) This is easy for the inner keys that have different names depending on the state of NumLock: NumpadRight:: ...
WoJ's user avatar
  • 2,844
0 votes
3 answers
637 views

Is it possible to change the cursor indicator color depending on the input language?

on windows 10 there is an option to change the cursor indicator color (Win+I -> Ease of Access -> Text Cursor). I would love (even pay if there was an app for it) to change the text cursor color ...
xpanta's user avatar
  • 147
1 vote
1 answer
197 views

How to match both partial ahk_class and whole ahk_exe at the same time

What I want to achieve is this: SetTitleMatchMode, 2 #ifwinactive ahk_class BCGPMiniFrame: ahk_exe FOXITPDFEDITOR.EXE ahk_class BCGPMiniFrame: part is only a partial match of ahk_class BCGPMiniFrame:...
David H. J.'s user avatar
0 votes
1 answer
565 views

Set a Specific Window Size Relatively to the Screen Resolution via AutoHotKey

I created a script that automatically sets the window size for certain apps. I put it in Startup so it works independetly. I needed this because I have a laptop with 2560x1600 screen resolution and I ...
scharyu's user avatar
1 vote
0 answers
506 views

Map left backslash key only in US ISO keyboard

I am used to working with the US ANSI keyboard but right now, I am stuck with the US ISO keyboard since ANSI is unavailable for my new laptop. It has two backslash keys and the left shift key is split ...
CodePanda's user avatar
  • 143
0 votes
2 answers
480 views

Shortcut for Windows Explorer to jump to the last folder in the folder-file-list? Autohotkey

I am searching for a shortcut to jump to the last folder in Windows Explorer (ignoring the files following). Example: Here I want to jump to folder 2022-09 without typing in "2022-09". I am ...
Avatar's user avatar
  • 2,563
0 votes
0 answers
150 views

Autocomplete text

Here's a doubt, there is a tool that has the autocomplete function (such as https://www.autohotkey.com/board/topic/60998-autocomplete-12/) with the addition that if I start to write another word and I ...
Elermain's user avatar
0 votes
0 answers
148 views

Programmatically accept all cookies in a Windows browser

How can I get Windows to confirm / OK all cookies in all sites in a Windows browser? I don't mind if the language is PowerShell or AutoHotkey or similar, and I don't mind if the browser is Edge or ...
YorSubs's user avatar
  • 699
0 votes
1 answer
253 views

Is it possible for Windows to only change focus to another window upon releasing the mouse click?

I would like to know if it is possible for Windows to only change focus upon releasing the mouse click? For example. I have Chrome full screen, and I download a file. Then I open Windows Explorer and ...
John Stoneman's user avatar
0 votes
1 answer
321 views

How can we center align a window to the right or left of the screen in Windows 10?

I found these scripts from Anaksunaman that center and move windows around on the screen. Centering Windows - StackExchange Any help on how to center a window the the far left or right of the screen? ...
myfeeko's user avatar
0 votes
3 answers
2k views

Change Outlook calendar default option when editing meeting requests

I use Outlook from Office 365 to manage meetings with other people. Sometimes, after a meeting is set on our Outlook calendars, I want to edit notes associated with the meeting — but I don't want the ...
user697473's user avatar
1 vote
3 answers
37 views

Indicate more clearly on screen which keyboard I'm currently using (Linux / W10)

I am currently learning Greek ... I have installed the Greek Polytonic keyboard and set up a hotkey to toggle between my normal keyboard and it. But the problem is that I am constantly having to ...
mike rodent's user avatar
0 votes
0 answers
506 views

PC, Multi-Monitor, AutoHotKey, Creating a Toggle hotkey that can switch from PC Screen to Extend

Would someone be able to write me a auto hotkey script so I can use Win+alt+a to toggle the project screen function from PC Screen Only to Extend. I have seen the auto hotkey scripts for an individual ...
Charlie Cameron's user avatar
0 votes
1 answer
42 views

Why is replaced text erasure inconsistent?

I wrote a simple sequence to output, when typing somewhere the string mdcode, a Markdown code block template such as ```python ``` The code to create the above works most of the time: ::mdcode:: { ...
WoJ's user avatar
  • 2,844
0 votes
2 answers
192 views

Running a keyboard shortcut at startup (FN + WIN) automatically

I have a Redragon K580 keyboard with an option to lock the Windows key with a shortcut (FN + Win). The problem is that it doesn't stay locked permanently and I have to do it after each reboot and most ...
Waail's user avatar
  • 25
1 vote
1 answer
87 views

Windows: Remapping 'Shift + AltGr' to a single key? Easier access to '4th level' characters on international keyboards

By holding Shift + AltGr, the 4th level characters can be accessed on international layout on most operating systems: C → c (lowercase — first level) ⇧ Shift+C → C (uppercase — second level) AltGr+C →...
Chendy's user avatar
  • 111
0 votes
1 answer
2k views

How to pause an AHK or Autohotkey script with one key, but use a different key to unpause it

I need to pause my AHK or Autohotkey script with the space key, but unpause it with the y key. I've been searching for a while without any success. I've tried different combinations, but I never get ...
rx65m's user avatar
  • 1
1 vote
1 answer
186 views

Remapping keyboard

My italian keyboard - Rog Zepyhrus G14 A401IIMy keyboard is missing the numbpad, I'm tryng to change my keys j,k,l to 1,2,3 and so on... does anyone know how to do it ? I create a NumLock with #b:: ...
Simone's user avatar
  • 13
0 votes
1 answer
487 views

Windows 10 Batch "Show this window on all desktops"

I have an issue with HWiNFO where the widgets do not show on all desktop even if I right click and select the option to show apps from the window on all desktops: https://www.hwinfo.com/forum/threads/...
Ahmed's user avatar
  • 363
1 vote
1 answer
163 views

Maximize All Windows on Every Virtual Desktop Windows 10

+F10:: WinGet, MyCount, Count GroupAdd, AllWindows Loop, %MyCount% { WinMaximize ahk_group AllWindows } This works to maximize all windows on the active virtual desktop, however it does not ...
newbiew8572's user avatar
2 votes
1 answer
136 views

How to prevent Vivaldi from randomly focusing the URL field instead of the autofocus text input after AutoHotKey-opening it?

I have this AutoHotKey hotkey: F2:: Run, "http://127.0.0.1/test/" KeyWait, F2 return Thus, when I press the F2 button on my keyboard, it opens the URL http://127.0.0.1/test/ in my Web ...
Ike's user avatar
  • 21
2 votes
3 answers
285 views

How to make AutoHotKey ignore a hotstring when it is preceded by a period?

I have an AutoHotKey script that expands abbreviations into full words or phrases, but I ran into a problem today. I wanted to add org as a hotstring for "organization", but realized that ...
techturtle's user avatar
  • 9,086
1 vote
1 answer
588 views

Disable horizontal (left/right) mouse input during specific key press (toggle) or key hold

In Windows 10, I am looking for a way to disable any input from my mouse's movement in the horizontal or left/right direction while still allowing the input in the vertical or up/down direction to be ...
Bobby S's user avatar
  • 413
1 vote
1 answer
191 views

Add characters on multiple lines

AHK newbie here, My problem is simple, I want to make a script that transforms a text with a hotkey. Default text : AAA : aaa BBB : bbb CCC : ccc Transformed text : <br><br> <u>...
Adeval's user avatar
  • 57
0 votes
1 answer
33 views

moving a control inside an application [closed]

I wanted to know if there is any tool that can allow me to move UI elements inside an application using script? The details: My father has glaucoma and his field of sight is very limited towards its ...
epeleg's user avatar
  • 559
1 vote
1 answer
1k views

How do I assign "Switch to Virtual Desktop 1 (2/3/4)" to F1 (F2/F3/F4) in Windows 11?

My fastest way of working is not to have 4 monitors (swiveling or rotating the head takes at least half a second) but to have fixed Virtual Desktops for specific tasks. So I know "Webbrowser: 3rd ...
towi's user avatar
  • 383
1 vote
2 answers
609 views

AHK: Open folder or activate it if already opened

I'm using autohotkey and try to do this: Open download folder (Q:\Down in my case) or activate it if already opened (subfolders don't count, for example still open Q:\Down if I opened Q:\Down\...
Byzod's user avatar
  • 265
0 votes
1 answer
104 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 ...
hellen_dorandt89's user avatar
0 votes
1 answer
170 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 ...
Bartosz Migacz's user avatar
0 votes
2 answers
149 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] ...
user3474300's user avatar
0 votes
1 answer
486 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 ...
Gaston Gilbert's user avatar
3 votes
1 answer
611 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 ...
user1681312's user avatar
1 vote
2 answers
2k 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 ...
João Pimentel Ferreira's user avatar
0 votes
0 answers
56 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 ...
yejin's user avatar
  • 1
0 votes
1 answer
33 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") ...
Vanity Slug - codidact.com's user avatar
1 vote
0 answers
40 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}{...
vdegenne's user avatar
  • 133
1 vote
1 answer
409 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 ...
TickleMeTimbers's user avatar
1 vote
1 answer
1k 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 ...
usa alb's user avatar
  • 11
0 votes
1 answer
593 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 ...
David.P's user avatar
  • 489
1 vote
1 answer
399 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.
William's user avatar
  • 1,348
1 vote
1 answer
316 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 ...
xdhmoore's user avatar
  • 625
1 vote
1 answer
2k 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 ...
Masoud's user avatar
  • 145
0 votes
2 answers
212 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 ...
emreya's user avatar
  • 43

1
2
3 4 5
27