Sign in to follow this  
Followers 0
savagenoob

Right Click, Hold, then release after a few seconds

5 posts in this topic

I am trying to create a script that does what my title says, this is what I have:

HotKeySet("{ESC}", "Terminate")

Sleep(4000)

While 1
   MouseDown("right")
      Sleep(1000)
   MouseUp("right")
WEnd

Func Terminate()
    Exit 0
EndFunc

but when i execute it, it holds the right click but it never releases it....any ideas?

Share this post


Link to post
Share on other sites



Try this:
 
Sleep(4000)

MouseDown("right")
Sleep(1000)
MouseUp("right")

What is your goal?


Nothing is so strong as gentleness. Nothing is so gentle as real strength

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

That works for some odd reason, when i do the While 1 loop it doesnt release and doesnt repeat. 

Did I say game? I meant a program for a school project.

Edited by savagenoob

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0