Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f1:: ;on
- WinGetPos, VarX, VarY, Width, Height, A
- VarX2 := VarX + Width
- VarY2 := VarY + Height
- ClipCursor( True, VarX+80, VarY, VarX2-80, VarY2)
- Return
- f2::ClipCursor( False,0,0,0,0) ;off
- ClipCursor( Confine=True, x1=0 , y1=0, x2=1, y2=1 ) {
- VarSetCapacity(R,16,0), NumPut(x1,&R+0),NumPut(y1,&R+4),NumPut(x2,&R+8),NumPut(y2,&R+12)
- Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor" )
- }
- #f1::
- {
- Send {f1 down}
- return
- }
- ^f1::
- {
- Send {f1 up}
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement