Sign in to follow this  
Followers 0
Frit

Click Condition

7 posts in this topic

There's a way to define a condition like "If Left Mouse Button is Clicked Then...."?

If you didn't understand my point, post.

Share this post


Link to post
Share on other sites



There's a way to define a condition like "If Left Mouse Button is Clicked Then...."?

If you didn't understand my point, post.

Look up "_ispressed" in the help file. It applies to mouse clicks as well as keyboard events... :D

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post


Link to post
Share on other sites

There's a way to define a condition like "If Left Mouse Button is Clicked Then...."?

If you didn't understand my point, post.

could try using the _Ispressed function in Beta

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
    Sleep ( 100 )
    If _IsPressed("01", $dll) Then
        MsgBox(0,"_IsPressed", "Left Mouse Button Was Pressed")
        ExitLoop
    EndIf
WEnd
DllClose($dll)
Exit

Note: was ripped straight from the Beta version of the helpfile and just changed to a left click. Would be pretty easy to point it to ur own function after the mouse was clicked

Share this post


Link to post
Share on other sites

Autoit help doesn't find "_ispressed".

Are you sure that exists?

Share this post


Link to post
Share on other sites

Autoit help doesn't find "_ispressed".

Be sure to download the beta version of AutoIT3 here.

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Autoit help doesn't find "_ispressed".

Are you sure that exists?

Once you have that you can get to the Beta helpfile through SciTE by pressing Alt-F1 or by going Start --> All Programs --> AutoIt v3 --> beta --> Help file.

Edited by exodius

Share this post


Link to post
Share on other sites

Autoit help doesn't find "_ispressed".

Are you sure that exists?

Are you using the latest beta version from http://www.autoitscript.com/autoit3/files/beta/autoit/ ??

Im using the 'autoit-v3.1.1.126-beta-Setup.exe' version along with the latest SCITE editor. Once installed (it goes over the top of the stable version) in your start menu there will be a shortcut @ Start > Programs > AutoIt v3 > beta > AutoIt Help File (beta)

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