mijaysen Posted August 8, 2010 Share Posted August 8, 2010 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 ? Link to comment Share on other sites More sharing options...
Realm Posted August 8, 2010 Share Posted August 8, 2010 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. Link to comment Share on other sites More sharing options...
mijaysen Posted August 8, 2010 Author Share Posted August 8, 2010 (edited) 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: Edited August 8, 2010 by mijaysen Link to comment Share on other sites More sharing options...
JohnOne Posted August 8, 2010 Share Posted August 8, 2010 (edited) "Left" with the quotes Edited August 8, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
mijaysen Posted August 9, 2010 Author Share Posted August 9, 2010 (edited) "Left"with the quotesStill same error ... Hmmm... This is getting really annoying ...Heres the error when i run with " on left: Edited August 9, 2010 by mijaysen Link to comment Share on other sites More sharing options...
saywell Posted August 9, 2010 Share Posted August 9, 2010 Do you need a "Winactivate" to put the Quemu window into focus before clicking it? William Link to comment Share on other sites More sharing options...
Tvern Posted August 9, 2010 Share Posted August 9, 2010 Why did you remove the brackets for Controlclick()? Link to comment Share on other sites More sharing options...
mijaysen Posted August 9, 2010 Author Share Posted August 9, 2010 I played a litle around with the script and now i have: Controlclick "Qemu Manager 7.0", "", [CLASS:TToolBar; INSTANCE:1] , "left" , 1 , 70 , 10Now i get this ERROR:Uploaded with ImageShack.us Link to comment Share on other sites More sharing options...
Developers Jos Posted August 9, 2010 Developers Share Posted August 9, 2010 (edited) What about you open the Helpfile and check the proper syntax in stead of this trial and error approach? .. and what are these coordinates on the function supposed to represent? the position on the screen, window or Control? Edited August 9, 2010 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
FuryCell Posted August 9, 2010 Share Posted August 9, 2010 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. Link to comment Share on other sites More sharing options...
mijaysen Posted August 9, 2010 Author Share Posted August 9, 2010 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 ... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now