Jump to content

Smal Question: Shift + Click at same time


Recommended Posts

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

Link to comment
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]
Link to comment
Share on other sites

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]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...