Sign in to follow this  
Followers 0
User9999

Clicks not working in active window

3 posts in this topic

Hello guys,

I am really new to it, so here comes a newbie problem.

My script does not work in a specific program ("x").

I tryed activating it on the script, but the mouse doesn`t move and the clicks doesn`t work at this aplication, but if I alt+tab back to the SciTE screen, it will start clicking

What could be happening?

$count = 0

do

WinActivate("X")

MouseClick("left",1100, 695,2) ;

MouseClick("left",451, 492,6) ;

MouseClick("left",186, 651,2) ;

MouseClick("left",878, 682, 2) ;

MouseClick("left",44, 279,2) ;

MouseClick("left",622, 403,2) ;

$count = $count + 1

Until($count>10)

Share this post


Link to post
Share on other sites



Make sure 'X' is the exact, full title of the program you're automating, or set the WinTitleMatchMode option.

Opt("WinTitleMatchMode",  1)      ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to  -4=Nocase

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Make sure 'X' is the exact, full title of the program you're automating, or set the WinTitleMatchMode option.

Opt("WinTitleMatchMode",  1)      ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to  -4=Nocase

It was not that, but thanks!!

It had something to do with administrator permissions, I removed some security things on computer which always made to ask permission when performing changes to the aplication, and now it worked.

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