i use this script in a game:
Code: Select all
q::
MouseGetPos, , , win
maxWindow("ahk_id " win)
return
maxWindow(title) {
WinMove, % title, , 0, 0, % A_ScreenWidth, % A_ScreenHeight
WinActivate, % title
WinSet, Style, -0xC00000, % title
WinSet, Style, -0x40000, % title
WinSet, AlwaysOnTop, Off, % title
}
c::
Send {RButton Down}
Send {LButton Down}
Sleep, 60
Send {LButton Up}
Send {RButton Up}
v::
Send {RButton Down}
Send {MButton Down}
Sleep, 60
Send {MButton Up}
Send {RButton Up}
ExitApp
how can i make the q key to toggle its script on/off, and also how to make a key to kill\exit the all script?
thanks:)