Local $hDLL = DllOpen("user32.dll")
#include <Misc.au3>
#include <AutoItConstants.au3>
HotKeySet("{F1}","Terminate")
MsgBox(64, "Cheeky Breeki Quick Peeki", "IMPORTANT: Make sure to run this as program as Admin. Also, Set [ as Lean left And ] as Lean right in control options for this to work. Make sure Q and E keys are NOT set for the lean keys, This program still uses Q and E to lean though. Press F1 to Terminate the Script.")
While 1
LeanL()
LeanR()
WEnd
Func LeanL()
While _IsPressed("51", $hDLL)
Send("[")
Sleep(165)
MouseDown($MOUSE_CLICK_LEFT)
Sleep(60)
MouseUp($MOUSE_CLICK_LEFT)
Send("[")
Sleep(120)
WEnd
EndFunc
Func LeanR()
While _IsPressed("45", $hDLL)
Send("]")
Sleep(165)
MouseDown($MOUSE_CLICK_LEFT)
Sleep(60)
MouseUp($MOUSE_CLICK_LEFT)
Send("]")
Sleep(120)
WEnd
EndFunc
Func Terminate()
Exit 1
EndFunc