All Questions
Tagged with autohotkey script
94
questions
0
votes
0
answers
15
views
Is there a way to automatically switch between two windows of the same app in Windows 10 [duplicate]
I have two windows of the same program that i am constantly switching over manually, (each window needs the whole screen). Is there a way to automate the process of switching between them for let's ...
0
votes
1
answer
113
views
Prevent sending a specific key if I'm pressing other 2 or more keys
I have this mouse with additional forward and back buttons at the side and here's an AHK script that I use with it, It's main purpose is:
If middle mouse button is scrolled up while holding down ...
0
votes
1
answer
110
views
AHK keywait for multiple keys (missing (SC) (VK))?
I got this function from here :
https://www.reddit.com/r/AutoHotkey/comments/1arcp8q/comment/kr1km61/?context=3
It waits for one or multiple keys to be pressed, But It doesn't accept scan code (SC) or ...
0
votes
1
answer
658
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/...
0
votes
0
answers
66
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 ...
0
votes
1
answer
603
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 ...
1
vote
0
answers
250
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 ...
0
votes
1
answer
990
views
How to reassign the "Sign out" shortcut on Windows?
I often find myself mistyping the "Sleep" shortcut as "Sign out". So I want to disable the shortcut for it, i.e. Win+XUI:
And reassign it to Win+XUO, how to achieve this using ...
0
votes
1
answer
603
views
AutoHotKey - switch statement with a series of InStr functions
I have created an AutoHotKey script with a bunch of if functions that rely on InStr, similarly as in the example below, and it already does what I want. Is it possible, though, to convert it to a ...
2
votes
1
answer
1k
views
Do I have to put `SetTitleMatchMode` on top of the script?
Sample script:
#NoEnv
#Warn
#SingleInstance Force
#IfWinActive Foo ahk_exe foo.exe
!A::Send Foo
SetTitleMatchMode Regex
#IfWinActive Bar$ ahk_exe bar.exe
!A::Send Bar
When running it, it ...
0
votes
1
answer
619
views
How to resolve a hotkey conflict?
I bound Alt+Space to an action, for example:
!Space::Send, Foo
Now how to trigger the original Alt+Space's action (as shown in the image below) through code?
1
vote
1
answer
2k
views
How to trigger an action if there's only one key being pressed?
Here's my current script:
Shift::Send ^{Space}
It doesn't only trigger ^{Space} on pressing Shift alone, it also triggers on Alt+Shift (just these two keys) and Ctrl+Shift (just these two keys) if ...
0
votes
1
answer
223
views
Run .cmd file every x minutes when app is being used?
I'm trying to find a way to incrementally back-up a folder every 15 minutes, but only if VS Code has been used/in focus since the last time it was backed up.
Does anyone have an idea for how I could ...
0
votes
1
answer
32
views
Best strategy to block concurrent button presses. Block spacebar while holding CTRL
So a few weeks ago I modified my mechanical keyboard to lube the switches, I broke the Left-ctrl key's contacts on the pcb making it a dummy switch. I have since ran jumpers from the left-ctrl to the ...
0
votes
1
answer
731
views
Run script on startup in W10 - version "20H2"
Uh-oh. I have an Autohotkey script which has always run on startup, for years. I have just updated my W10 OS from 1607 to "the latest", which appears to be called "20H2".
Neither ...