stonebr1ck
New Member
Hi guys,
can u help me with ahk script?
I need script, what will after use keyboard "numpad0" mouse left click on source turn on/off square. If it will be picture - abc.gif source, I will play or stop gif by key.
Its not everytime active window and I have 2 monitors for streaming.
I tried it with this my own script:
Numpad0::
If WinExist("ahk_class OBSWindowClass")
{
MouseGetPos, CoordXRec, CoordYRec
SetDefaultMouseSpeed, 0 ; Move the mouse instantly.
setmousedelay -1
Click 437, 580 ahk_class OBSWindowClass"
MouseMove, %CoordXRec%, %CoordYRec%
return
}
but I am beginner in ahk scripts (english too) and the problem with this script is that if window is not active, mouse click in other active window.
Thx for help everyone
can u help me with ahk script?
I need script, what will after use keyboard "numpad0" mouse left click on source turn on/off square. If it will be picture - abc.gif source, I will play or stop gif by key.

Its not everytime active window and I have 2 monitors for streaming.
I tried it with this my own script:
Numpad0::
If WinExist("ahk_class OBSWindowClass")
{
MouseGetPos, CoordXRec, CoordYRec
SetDefaultMouseSpeed, 0 ; Move the mouse instantly.
setmousedelay -1
Click 437, 580 ahk_class OBSWindowClass"
MouseMove, %CoordXRec%, %CoordYRec%
return
}
but I am beginner in ahk scripts (english too) and the problem with this script is that if window is not active, mouse click in other active window.
Thx for help everyone