How to get mouse position then copy the position into clipboard. In AutoHotKey V2
f4:: { MouseGetPos (&MouseX, &MouseY) pos:= &MouseX , &MouseY ;I want to add tooltip showing the pos, but don’t know how to A_Clipboard := “” A_Clipboard := pos Send “^c” ClipWait 2, 1 MsgBox “Copied position” } I feel like the answer is very simple, but I’ve searched around and found nothing. autohotkey New contributor […]
Getting mouse position and copying position into clipboard. In AutoHotKey V2
f4::
{
MouseGetPos (&MouseX, &MouseY)
pos:= &MouseX , &MouseY
;I want to add tooltip showing the pos, but don’t know how to
A_Clipboard := “”
A_Clipboard := pos
Send “^c”
ClipWait 2, 1
MsgBox “Copied position”
}
How to set key(tab key) to nothing using Autohotkey
Basically my tab key for some reason keeps spamming, I went to a repair shop and they couldn’t figure it out. We tried removing the key to try to fix the problem to check if maybe a crumb got left or something. I used to have the same problem with the k key. Now neither key works when I press them, they have mind of their own.
Always showing a window above standard ‘on top’ windows
I have two windows that I always need to be unobscured, even against windows that have alwaysOnTop
.
After the first time, How to skip over a expensive calculation and just operate on the result with each subsequent wheelscroll?
I have a function that I need to use on a number of scroll wheel hotkeys, the function increases or decreases a value on controls found on a inactive window, the following is a use case example:
71 hotkeys have been received in the last X ms?
my keyboard trigger so i use the scrpit:
detect if ahk (autohotkey) script is running
SetTitleMatchMode, 2 DetectHiddenWindows, On UH_Yourself: if WinExist(“1UH_Yourself.ahk”) { Menu, Curar_Menu, Color, 800000 Process, Close, 1UH_Yourself.ahk Process, Close, 1UH_Yourself.ahk } else { Run, C:UsersfabriOneDriveDesktopMacrosMacros1Cura1UH_Yourself.ahk Menu, Curar_Menu, Color, 008000 } Return How do I make the script identify ahk? autohotkey New contributor Fabricio Moura Ramalho is a new contributor to this site. Take care in asking for […]
How to define an action if any typing key is pressed?
How to define an action if any typing key is pressed?
By typing key I mean letters, numbers, special characters like quotes, #, $, % etc…?
I want to use #Hot syntax to catch only these characters.
Thanks
AHK script loop is not working after using hotkey or replace
using this code:
Is it possible to create this kind of data in AutoHoktey?
I need to create a function that will take a window and resize it or restore its initial size. I am stuck on the part of recording the windows initial position and size, so I can restore its initial position later on.