RussMuss Posted December 20, 2006 Posted December 20, 2006 Hi I have a small script to automatically click 2 dialog boxes that appear when we print drawings. I works fine (thanks to 'thatsgreat2345') However now another dialog box pops up called "popup launcher" The message that appears says "popup launcher has encountered a problem and needs to close" It also has a button to debug. Why does this appear? how can I make it disappear? Thanks Russ below is my script : While 1 If WinExists("Equitrac Office") Then ControlClick("Equitrac Office","","Button3") Endif If WinExists("Cost Preview") Then ControlClick("Cost Preview","","Button2") Endif sleep(100) Wend
Thatsgreat2345 Posted December 20, 2006 Posted December 20, 2006 Are you sure that you got the proper buttons just asking? by the way no need for the endifs either do an elseif or While 1 If WinExists("Equitrac Office") Then ControlClick("Equitrac Office","","Button3") If WinExists("Cost Preview") Then ControlClick("Cost Preview","","Button2") sleep(100) Wend
RussMuss Posted December 20, 2006 Author Posted December 20, 2006 Hi the script works fine but a third dialog box pops up and I don't why and what it does. See attached Russ[
Thatsgreat2345 Posted December 20, 2006 Posted December 20, 2006 what happens when you click close does the thing u were doing still print or whatever?
RussMuss Posted December 21, 2006 Author Posted December 21, 2006 Perhaps I need to add a pause into the script to slow it down? Is this a possibility?
RussMuss Posted December 21, 2006 Author Posted December 21, 2006 Yes it does. However this dialog box does not always appear. This is why I think it might be a time problem. On the smaller sized prints it doesn't seem to happen, but it does happen on the larger file size prints.
Thatsgreat2345 Posted December 21, 2006 Posted December 21, 2006 just do another if the window exists click close
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