fuga Posted January 6, 2010 Share Posted January 6, 2010 hello. I've just started with autoIt and I've got some problems. I try to make a scripts to install somes programs but nothings work...on seven. When a GUI window is poping up I can't handle anymore this new window, and the strange thing is that this window is ACTIVE and ON TOP so I was wondering if you could help me with a little "magicalgeektouch" here is an example of my script: Run('C:\Storage\progs\wrar380fr.exe') WinWaitActive("WinRAR 3.80","") MouseClick("left",306,8,1) MouseClick("left",448,118,1) WinWaitActive("find folder","") MouseClick("left",35,88,1) MouseClick("left",52,300,1) MouseClick("left",53,88,2) MouseClick("left",23,92,1) MouseClick("left",73,299,1) Send("winrar") MouseClick("left",193,295,1) WinWaitActive("WinRAR 3.80","") MouseClick("left",202,373,1) WinWaitActive("Configuration of WinRAR","") MouseClick("left",230,65,1) MouseClick("left",229,374,1) MouseClick("left",244,370,1) WinWaitActive("WinRAR","") MouseClick("left",786,12,1) Link to comment Share on other sites More sharing options...
dot45 Posted January 6, 2010 Share Posted January 6, 2010 Be sure that your winwaitactives are correct, also it might be better to use controlclicks instead of mouseclicks. Tools I've Created & Shared[/url][url="http://www.autoitscript.com/forum/index.php?showtopic=97177&st=0&p=698665&hl=printer&fromsearch=1&#entry698665"]Printer Migration Tool Link to comment Share on other sites More sharing options...
Zedna Posted January 6, 2010 Share Posted January 6, 2010 (edited) also it might be better to use controlclicks instead of mouseclicks.I fully agree.The source of problems in such MouseClick() scripts can be also on previous systems for example:- user has different theme (with different window's title/frame sizes --> this is probably source of problem on WIN7 here)- user has different screen resolution- user has different position of main Windows' toolbar (for example at top instead of bottom)- ... Edited January 6, 2010 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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