HankHell Posted January 25, 2018 Posted January 25, 2018 hey guys, I just wrote this script. Don't get me wrong, it works 100% how I want it to. I just had some questions. #include <Misc.au3> Global $State = 0 Global $MOUSE_CLICK_LEFT While 1 If _IsPressed("21") Then $State = 1 ; Page Up If _IsPressed("22") Then $State = 0 ; Page Down If _IsPressed("24") Then ExitLoop ; Home If $State = 1 Then Send("{SHIFTDOWN}") MouseClick($MOUSE_CLICK_LEFT) EndIf If $State = 1 Then Send("{SHIFTUP}") EndIf WEnd
HankHell Posted January 25, 2018 Author Posted January 25, 2018 I was wondering if there is an easier way to write this so that I can keep shiftdown and shiftup in the same clause
HankHell Posted January 25, 2018 Author Posted January 25, 2018 also if it is possible to use a single key as a toggle between state=1 and state=0
HankHell Posted January 25, 2018 Author Posted January 25, 2018 sorry about the tab regions, for some reason copy-paste does that to my code
Earthshine Posted January 25, 2018 Posted January 25, 2018 Use the code tags to post code My resources are limited. You must ask the right questions
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now