Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

ControlClick Dosn't Work :)

$
0
0

Hello, I'm back, i want to improve my AutoIT Skill, so i decited to create simple APP.

 

I decided to work with my calc.exe , so.

 

There is small example what i wanted to take.

 

1. ControlSend 2

2. ControlSend +

3. ControlSend 2

4. ControlClick =

 

Bold Works, None Nope.

 

Why ControlClick? thats why i want use a Mouse Click to improve my Control Skill :D , just Control Send would be so easy to me, I'm always looking for hardest way so.

 

There's my script:

 

Opt('WinTitleMatchMode','2') $Title = 'Kalkulator' $process = WinGetHandle(WinGetTitle($Title)) ControlSend($process,'','',"{2}") ControlSend($process,'','',"{+}") ControlSend($process,'','',"{2}") ControlClick($process,'','',"left",1,200,250)

Working fine 1,2,3 but it can't click the button = via mouse left click.

 

x= 200 and y = 250 are possitions i taken from _WinApp_ GetMouse Possitions so I'm sure it's corretly, you can also check in this picture, i also made small red point where should be mouse click.

 

2ErhNlT.png

 

It was placed on top left corner and was minimized.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>