Sign in to follow this  
Followers 0
mike1234

Resending mouseup

3 posts in this topic

This is a pretty random question but if I sent the mouseup command (so that I can do a function that the game wont allow me to do with the mouse held down) how do I know when the user actually releases the mouse button? Effectivly I want to make a loop that releases the left mouse button (so that I can do my function) but waits for the user to release it before it exits the loop.

in pseduo code

while mousedown("left")=1
    Mouseup("left") ;the mouse up I need to send to perform my function
    insert function here
Wend

Share this post


Link to post
Share on other sites



#Include <Misc.au3>

While _IsPressed("01")
    MouseUp("left")
    ;insert function here
Wend
Well thats kind of the problem I can't have a loop that waits for the mouse to be up when I send a mouse up command in the loop. Effectivly it only goes thru one iteration. Is there a way of waiting for a 2nd mouse up or is there a way of designating a user's mouse up command versus the program's?

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