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
...
0
votes
1
answer
54
views
Autohotkey Script for starting Windows 11 Media Player in Mini Mode
I use the following script, but unfortunately it doesn't lead to the desired outcome:
#If WinExist("ahk_exe Microsoft.Media.Player.exe")
Send ^m
1
vote
1
answer
78
views
MouseMove is not moving the mouse cursor
I'm creating a program where everything works fine, except for the MouseMove instruction. i got the x,y coordinates from using GetMousePos then saving it to the clipboard
Why is MouseMove not actually ...
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, ...
0
votes
1
answer
100
views
How to block right mouse button and convert it to middle mouse button without delay (like AutoHotkey)?
I’m trying to remap the right mouse button to act as the middle mouse button in C++ on Windows.
What I did
I wrote code using Raw Input (see below).
My code successfully sends a middle click when I ...
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 ...
1
vote
1
answer
95
views
Script interrupted by CTRL key press
My AutoHotkey script sends the F4 key to a Ragnarok Online game window through its PID whether it's in the background or not. It works until the CTRL or ALT key is pressed and held (the expected ...
1
vote
1
answer
76
views
Why is AHK ignoring previous keys for sensitive spacebar?
I have a gaming keyboard where the keys trigger at the start of the press instead of at the end like with normal keyboards. For almost all of the keys this is absolutely fine, but the spacebar is ...
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, ...
1
vote
1
answer
103
views
Triggering simultaneous key press and hold in AutoHotKey
how do i get WASD to mirror the exact same actions that the arrow keys do?
Say if I hold the Up arrow key for a few seconds I'm trying to get W to mirror the same.
This is what I've tried so far
Up:...
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 ...
0
votes
2
answers
171
views
AutoHotkey (AHK): map some types of mouse clicks
In Windows, with AutoHotkey (AHK), how do I substitute each middle-click to be shift-click?
Also is it possible to map middle-drag to be Ctrl + drag?
Here is why: I am one-handed, and I cannot use the ...
0
votes
0
answers
31
views
How to make key presses stick from one command to the next?
I am on Windows 11 and have swapped the Alt and Ctrl keys to emulate keypresses on a MacBook.
Consider the following sequence of keypresses to cut everything and paste, which works:
Alt (Ctrl) + A =&...
0
votes
1
answer
120
views
The class name of the control is different in different PC
I want to jump to the corresponding input box by the class name of the control, and then enter the data in the CSV. This code works on my PC, but I found that the class name of the control is ...
0
votes
1
answer
161
views
Using AutoHotKey to paste an image already in the clipboard
I often copy an image into the clipboard from within an application (using its own method rather than a screenshot) and I want to setup a keyboard shortcut to open IrfanView and paste the image from ...
0
votes
0
answers
21
views
Context specification when linking functions in instances in AHK
Good day, I'm trying to improve my OOP competence and trying to create a code to generate a single window(gui) which hold n checkboxes based on the files the code finds in a specific folder. The idea ...
0
votes
0
answers
50
views
Found a script bot not working. AutoHotKey script for muting the mic. Works everywhere but in game
F1:: ;
SoundSet, +1, MASTER, mute,3 ;
SoundGet, master_mute, , mute, 3
ToolTip, Mute %master_mute% ;
SetTimer, RemoveToolTip, 1000
return
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return
It ...
0
votes
1
answer
141
views
is there a way to determine if a window is a 'conventional' window, rather than a say control?
Recently I was asking around how to detect when a new window is created, and a user on Reddit (plankoe) gave me a solution I was very happy with. I have been using their solution for a few days now, ...
0
votes
2
answers
460
views
I am trying to move my windows but WinMove doesn't work
I am trying to swap windows on my screen. The MsgBoxes work but WinMove doesn't:
{
...
; Move from Monitor 1 to Monitor 2
if (WinX >= Monitor1X && WinX < Monitor1EndX) {
...
0
votes
1
answer
121
views
with the 'hotkey' command, how can I enable/disable a lot of hotkeys at once?
I have been trying to learn more about the hotkey command, I am stuck on a aspect of it. Lets say my script starts with a series of hotkeys enabled, initialised with the double colon, but at some ...
0
votes
1
answer
35
views
How do I setup a function call to end a hotkey?
I want to use breakout(var) instead of typing that if statement a million times. How do I make that work? Return returns from the function but I want to end the hotkey.
f::{
send "a"
...
-2
votes
1
answer
92
views
How do I use a variable to define key up/down?
test(key){
send "{key down}" ;no
; send "{%key% down}" ;no
sleep 500
send "{key up}"
}
test("w") ;test(w) doesnt work either as per the manual
%...
0
votes
0
answers
89
views
Why does my script only open Notepad while I want it to also make key presses?
My AutoHotkey v1 code:
Run, notepad
Send hello world
Send ^s
It only opens Notepad but I want it to also type "hello world" and make it press Crtl+S.
0
votes
0
answers
40
views
Why does "Browser_Back" not get reengaged when I release space?
I am trying to if I hold down "Browser_Back" and press F or J move left or right, conversely while holding "Browser_Back" and then hold down space and press F or J I can select one ...