4,718 questions
-2
votes
0
answers
37
views
Script for automated mining in Minecraft [closed]
I'm completely new to Minecraft automation and need help from scratch.
Task: Excavate a 25×25×25 block area in Minecraft.
What I have:
Minecraft 1.8
AutoHotkey
Python OpenCV
Anything you can offer
...
1
vote
1
answer
28
views
Autohotkey hotstrings with beginning overlap
How can I map hotstrings :*?C:iiq::1 and :*?C:iq::2 at the same time? There shouldn't be any ambiguity since there is no conflict until the full string is typed, but I can't find a way to specify.
...
1
vote
2
answers
12k
views
How do I change Ctrl to Spacebar for these three commands?
I want to change the use of Ctrl to Spacebar for three commands in a game but not for everything because then I can't use Spacebar to communicate. The normal commands are Ctrl+Q, Ctrl+W, Ctrl+E, Ctrl+...
3
votes
1
answer
74
views
cygpath not found in PATH launching Git GUI from Windows run dialog
I use Autohotkey to launch Git Gui and gitk and tile them side by side:
:*:gth::
{
GitToolsHere(A_Clipboard)
}
GitToolsHere(path)
{
GitGuiHere(path)
GitkHere(path)
}
; Open GitGUI at ...
0
votes
2
answers
66
views
AutoHotkey script problems
i have a Hotkeyscript for german umlaute. This Script has been working for years, since this morning it doesn't. i use ALt and ALT SHIFT combinations with several letters and now the windows shortcuts ...
0
votes
1
answer
108
views
Add hotkeys to function in AutoHotKey(AHK)
I'm using this code as an alternative for Alt Tab menu:
^q:: AltTabMenu()
; AltTabMenu-replacement for Windows 8:
AltTabMenu(){
list := ""
Menu, windows, Add
Menu, windows, ...
27
votes
10
answers
14k
views
How to start Windows Store apps in AutoHotKey?
Window Store apps are not like the classic Windows apps. The latter usually are installed at clear paths under C:\Program Files. So, AutoHotKey (AHK) scripts can simply run a classic app by "Run" with ...
0
votes
1
answer
224
views
ControlSend [Strg]+[Win]+[Numpad3] to OBS Studio
I try to send Strg+Win+Numpad3 to OBS Studio to pause recording via an Autohotkey script.
My current approach is the following one because I want to avoid that other applications react on this ...
2
votes
0
answers
42
views
How to call Chrome.ahk in autohotkey script file correctly?
Calling chrome.ahk outputs error and script file is not executing.
I tried using Chrome.ahk library by calling #Include Chrome.ahk in the following way. However upon running the script , get the error ...
1
vote
1
answer
73
views
How to not chain a hotkey's output to another hotkey?
I'm currently trying to map some shortcuts to better match my windows keyboard shortcuts to those similar of a mac.
Windows Powertoys is an option, but I'd really like to understand how to get this ...
2
votes
1
answer
615
views
Running A Bookmarklet With Autohotkey
I have this neat little bookmarklet that refreshes the stylesheet on whatever webpage you are looking at without reloading the page:
javascript:(function(){var h,a,f;a=document.getElementsByTagName('...
23
votes
6
answers
41k
views
How to get the active window's title with AutoHotKey?
I wrote this short test code, but it didn't work. What am I doing wrong?
F12::
WinGetTitle, Title, A;
MsgBox, "%Title%"
The displayed result was ""
5
votes
2
answers
12k
views
How do I set a window to always on top?
I need to make the active window always on top. How can I do this with AutoHotkey v2?
1
vote
3
answers
105
views
Win + mouse wheel keeps showing/hiding start menu
I wanted to add volume control to my mouse with the following scripts
#WheelUp::
Send {Volume_Up}
Return
#WheelDown::
Send {Volume_Down}
Return
However, when I use it, the start menu keeps appearing/...
0
votes
2
answers
70
views
WinGetTitle returns empty string in script, even though Window Spy Visible Text field has value
Here's what Window Spy looks like, after i manually hit Alt+n:
Here's my script.
#IfWinActive <Redacted title> ;Private info so don't want to post, but it works
^j::
Send, !n
WinGetActiveTitle,...
11
votes
5
answers
14k
views
Capture CMD output with AutoHotkey
I'm trying to read Windows CMD's stdout with AutoHotkey. For example, I'd like to have the output of the setconsole command inside AHK stored in a variable. I already achieved it a while ago, which ...
0
votes
1
answer
139
views
Prevent <modifier> & <key> hotkey from firing if the <key> is already held down?
I have this issue I have been unable to solve elegantly. I provided the below code as a reproducible sample
If I trigger shift + f23, then release shift but still holding down f23, if I press control, ...
0
votes
1
answer
103
views
How can I bridge AHK hotkeys to a Chrome extension using a Python native host (named pipe attempt)?
Goal
I'm trying to build a minimal working system where pressing a key in AutoHotkey (AHK) sends a message to a Chrome Extension, via a Python native messaging host.
The architecture is:
AHK → Named ...
2
votes
5
answers
580
views
Navigate Shell command not working when the path includes an hash
I'm having problem using the Navigate Shell command when the path include an # sign.
; this will create 2 folders at the root of your C: drive
myPath1 := "C:\delete_me\"
myPath2 := "C:\delete#me\"
if ...
0
votes
0
answers
53
views
AHK - how to do it for multiple files
the below code works and it is for a single file. How could the code be modified to work for an array or multiple files? The code basically triggers a backup job with its status shown on a progress ...
3
votes
3
answers
3k
views
An abbreviations list for AutoHotKey [closed]
The wonderful AutoHotKey allows you to auto-expand abbreviations as you type them.
So you could have an .ahk script with many abbreviations like this:
::btw::by the way
::iirc::if I remember ...
0
votes
2
answers
755
views
How do I bind a key to open a folder in Visual Studio Code?
I want to open a folder in Visual Studio Code when I press a button. Can I bind this with AutoHotkey v1?
0
votes
1
answer
80
views
Make AutoHotKey produce uppercase text in timestamp
I am using the following AutoHotKey script on the CTRL-ALT-D keyboard shortcut.
^!d::
FormatTime, CurrentDateTime,, ddd dd MMM yyyy @HH:mm
SendInput, %CurrentDateTime%
return
This one ...
6
votes
5
answers
13k
views
Run a powershell command through AutoHotKey script
I want to be able to run a following PowerShell command through AutoHotKey script:
new-item -path c:\ -name logfiles -itemtype directory
I am unable to find a way to achieve this task. Please help.
0
votes
1
answer
421
views
How can I get the width and height of a GUI window in AHK?
I'm trying to make a GUI window with an Edit control inside that will automatically resize to fit the GUI. How can I get the current dimensions of the GUI window?
Here's my code:
#Requires AutoHotkey ...