Sign in to follow this  
Followers 0
Moja

Mouse2 > Enter

6 posts in this topic

Re, how would I do a program to automatically press enter everytime the mouse (MOUSE2 or left click) was pressed, ta

Moja

Share this post


Link to post
Share on other sites



Indeed i am :)

Share this post


Link to post
Share on other sites

would require the beta "unstable" version... interested?

LAr.

<{POST_SNAPBACK}>

I feel another DLLCall rich script is about to see daylight ... :)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

btw Larry i get more reliable results and no more noticeable CPU this way:

While 1
  While 1
     $ret = DllCall("user32.dll", "int","GetAsyncKeyState", "int", 0x1)
     If $ret[0] = -32767 Then ExitLoop
     Sleep(1)
  WEnd
  Sleep(1)
  Send("{ENTER}")
Wend

50ms doesn't seem slow but...

oh yea, I know rightbutton is 0x2, what is middle mouse?

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Thanks, Funny thing is I figured it was 04. I tested it but not sure why it didn't work.

Oh, and my right button acts funny as well on this, I did notice that it works if I am right clicking a scrollbar. Weird.

Nice chart in your au3 file btw. ..files it away in a safe place...


AutoIt3, the MACGYVER Pocket Knife for computers.

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