Jump to content

Recommended Posts

Posted

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

Moja

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.

Posted

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.

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
  • Recently Browsing   0 members

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