Kidney Posted August 1, 2012 Share Posted August 1, 2012 When i try to do Send("{down down}"), the Send("{down up}") does not seem to want to "let go" of the down arrow. any remedy for this?? let me know if you would like code for this question. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 1, 2012 Moderators Share Posted August 1, 2012 I wouldn't mind seeing an example snippet. Why not just Send("{DOWN}"), are you wanting to hold the down arrow for a particular length of time? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Kidney Posted August 1, 2012 Author Share Posted August 1, 2012 (edited) ya. its for work. i need to scroll through documents and the only way is to press the up and down arrows or grab the actual scroll bar and drag. but these documents r pretty large and i would like a slow consistent scroll which i can get with the up and down arrows. so i was gonna do something like this: HotKeySet("{F1}", "Up") HotKeySet("{F2}", "Down") $Down = False $Up = False Func Down() $Down = Not $Down If $Down = True Then Send("{DOWN down}") Else Send("{DOWN up}") EndIf EndFunc EDIT: This is purely because im lazy and would like to just press F1 and have it scroll while i look through it and then press F again to stop scrolling. so if there isnt a way then its no biggy. was just curious since ive neever really messed with send that much Edited August 1, 2012 by Kidney Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 1, 2012 Moderators Share Posted August 1, 2012 What about something simple, like this? HotKeySet("{F1}", "Up") HotKeySet("{F2}", "Down") While 1 Sleep(5000) WEnd Func Up() While 1 Send("{UP}") Sleep(1000) WEnd EndFunc Func Down() While 1 Send("{DOWN}") Sleep(1000) WEnd EndFunc "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Kidney Posted August 2, 2012 Author Share Posted August 2, 2012 What about something simple, like this? HotKeySet("{F1}", "Up") HotKeySet("{F2}", "Down") While 1 Sleep(5000) WEnd Func Up() While 1 Send("{UP}") Sleep(1000) WEnd EndFunc Func Down() While 1 Send("{DOWN}") Sleep(1000) WEnd EndFunc well i guess with some tweaking this could work. is there a reason why the down and up dont work on send tho?? seems to be any key gets stuck in the down position Link to comment Share on other sites More sharing options...
JohnOne Posted August 2, 2012 Share Posted August 2, 2012 (edited) Try this to unstick the key. ControlSend("", "", "", "something", 0) Edited August 2, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Kidney Posted August 2, 2012 Author Share Posted August 2, 2012 I'll try that once I get a chance. Should the something be the letter I have as the send down? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted August 2, 2012 Share Posted August 2, 2012 Something can be anything, I believe. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
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