Marle Posted July 11, 2007 Share Posted July 11, 2007 Hello everybody. i am new to auto it and maked several smal cripts like : Func so() sleep(10) send("P") mousemove(410, 226, 1) sleep(1) mouseclick("left") sleep(1) mousemove(414, 264, 1) sleep(1) mouseclick("left") sleep(1) mousemove(448, 228, 1) endfunc and so on. Some small helps now i got a question, cause i dont find the solution self. How can i press "Shift" and "Leftclick" at one, without leaving these buttons. I mean, holding shift an klick all the time, for about 30 sec. something like : send("Shift"), mouseclick("left"), press dunno can anyone help me? my goal is following script: i pree 1 button, and shift + klick hold since i press an other one. Thx a lot Link to comment Share on other sites More sharing options...
mikehunt114 Posted July 11, 2007 Share Posted July 11, 2007 Did you check out the Send key list in the helpfile? MouseDown/MouseUp are also there. Send("{SHIFTDOWN}") MouseDown("Left") Sleep(30000) MouseUp("Left") Send("{SHIFTUP}") IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
Marle Posted July 11, 2007 Author Share Posted July 11, 2007 Did you check out the Send key list in the helpfile? MouseDown/MouseUp are also there. Send("{SHIFTDOWN}") MouseDown("Left") Sleep(30000) MouseUp("Left") Send("{SHIFTUP}") ty for help. When i use ure func, he press die left mouse button for 30000. Buf Shift only one second. Dunno why but thx for help, i will try on Link to comment Share on other sites More sharing options...
mikehunt114 Posted July 11, 2007 Share Posted July 11, 2007 (edited) That's odd....are you sure? Maybe try: Send("{LSHIFT DOWN}") (With a space) Edited July 11, 2007 by mikehunt114 IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] 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