Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; the '*' is Wildcard: Fire the hotkey even if extra modifiers are being held down.
- *F10:: ; Hotkey will toggle status, F-11 key
- Confine := !Confine
- ClipCursor( Confine, 13, 13, A_screenwidth-12, A_screenheight-12)
- Return
- 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" )
- }
- ;This function turns the special key cluster above the arrows into a 10key.
- ;This will be toggled with the option key to help migrate over from a full size key board.
- waffles:=0
- ; waffles:=!waffles .... This assigns waffles to the value of NOT waffles. so lets say waffles starts out TRUE (1).
- ;you then turn waffles to NOT TRUE. which is FALSE (0). so now waffles is set to FALSE. and then lets say you toggle it again.
- ;you set waffles to NOT FALSE, which is TRUE. waffles is now set to TRUE. .... 1 is true, 0 is false. ! is NOT.
- AppsKey::
- waffles:=1
- SetScrollLockState, AlwaysOn ; Scrlock is turned on when the script is first run
- return
- ; If you stack hotkeys like this, they all trigger the same code underneath
- ~F12::
- waffles := 0
- SetScrollLockState, off ; Scrlock is turned off showing that it is off.
- return
- #if (waffles=1)
- PrintScreen::7
- ScrollLock::8
- Pause:: 9
- Ins::4
- Home::5
- PgUp::6
- Del::1
- End::2
- PgDn::3
- SC11D::0 ; this is RCtrl but for my keyboard it registers as unknown. if yours registers a RCtrl use that instead.
- #if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement