Jump to content
Sign in to follow this  
mijaysen

Help me with autoit

Recommended Posts

mijaysen

Hi all ...

I just want to make a simple scipt that clicks on the green play button ... I have tried this with this code : Controlclick ( "Qemu Manager 7.0", "", 1771530 [, left [, 1 [, 70 [, 10 ]]]] )

I have used the ID for ControlID and ControlClick Coords for X and Y but it dosent work ? Whats wrong ?

Posted Image

Share this post


Link to post
Share on other sites
Realm

Try without the optional brackets

Controlclick ( "Qemu Manager 7.0", "", 1771530 , left , 1 , 70 , 10 )

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

Share this post


Link to post
Share on other sites
mijaysen

Try without the optional brackets

Controlclick ( "Qemu Manager 7.0", "", 1771530 , left , 1 , 70 , 10 )

No that dossent work either, i get the same error ...

I get this error:

Posted Image

Edited by mijaysen

Share this post


Link to post
Share on other sites
mijaysen

"Left"

with the quotes

Still same error ... Hmmm... This is getting really annoying ...

Heres the error when i run with " on left:

Posted Image

Edited by mijaysen

Share this post


Link to post
Share on other sites
saywell

Do you need a "Winactivate" to put the Quemu window into focus before clicking it?

William

Share this post


Link to post
Share on other sites
Tvern

Why did you remove the brackets for Controlclick()?

Share this post


Link to post
Share on other sites
mijaysen

I played a litle around with the script and now i have: Controlclick "Qemu Manager 7.0", "", [CLASS:TToolBar; INSTANCE:1] , "left" , 1 , 70 , 10

Now i get this ERROR:

Posted Image

Uploaded with ImageShack.us

Share this post


Link to post
Share on other sites
Jos

What about you open the Helpfile and check the proper syntax in stead of this trial and error approach? :blink:

.. and what are these coordinates on the function supposed to represent? the position on the screen, window or Control?

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
FuryCell

I have QEMU Manager 6 on my system and this appears to work.

#RequireAdmin
ControlClick("Qemu Manager","","TToolBar1","Left",1,63,18)

The #RequireAdmin is needed because QEMU Manager runs as administrator and a non admin script can not execute clicks on admin app.


HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites
mijaysen

I have QEMU Manager 6 on my system and this appears to work.

#RequireAdmin
ControlClick("Qemu Manager","","TToolBar1","Left",1,63,18)

The #RequireAdmin is needed because QEMU Manager runs as administrator and a non admin script can not execute clicks on admin app.

U are a GOD ... That worked perfectly ... Thanks mann ...

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  

×