Site Tools


autoit:codes:mousehotkey

Mouseclick hotkey

I use this little script to start and stop the records when I play Xbox on the same screen as my pc. Since I dont want to keep the mouse on the record button this script automatically clicks on the button location when I hit “x” like “x”box ;)

HotKeySet("{x}", "rec")
Hotkeyset("{END}", "close")
 
Func rec()
MouseClick("left",730,770)
Sleep(50)
EndFunc
 
 
Func close ()
	Exit 0
EndFunc
 
Sleep(1)
 
While 1
   Sleep (10)
WEnd



autoit/codes/mousehotkey.txt · Last modified: 2018/12/20 17:43 by lunetikk