Sign in to follow this  
Followers 0
Marle

Smal Question: Shift + Click at same time

4 posts in this topic

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 :whistle:

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 :lmao:

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

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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 :whistle: but thx for help, i will try on

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

That's odd....are you sure? Maybe try:

Send("{LSHIFT DOWN}")

(With a space)

Edited 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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0