domlike Posted April 17, 2007 Share Posted April 17, 2007 (edited) Hello, First of all, sorry for this stupid question but I looked in help file without success :"> Here is the question : I build a very simple script (see below). Is there a way to avoid that the user see all these windows open/close, the send keys, etc... during the scipt execution ? It might be a silly question but I really don't know. Thanks in advance my code : BlockInput(1) WinWaitActive("PDF") Send("^p") Send("!s") Send("p") Send("{ENTER}") Send("{ENTER}") WinWaitActive("PDFCreator") $filename = ControlGetText("PDFCreator", "", 12) ControlCommand("PDFCreator", "", 9, "UnCheck", "") ControlClick("PDFCreator", "", 13) WinWaitActive("Enregistrer sous") $temppath = EnvGet("TEMP") Send($temppath & "\" & $filename & ".pdf") Send("!e") WinWaitActive("Enregistrer sous","",2) ControlClick("Enregistrer sous", "", 6) AutoItSetOption("WinTitleMatchMode", 2) WinWaitActive("Lotus Notes") Send("{ESC}") Send("!ccm") WinWaitActive("Nouveau","",2) Send("{TAB}") Send("{TAB}") Send("{TAB}") Send($filename) Send("{TAB}") Send("!fr") WinWaitActive("Création de rattachements") Send($temppath & "\" & $filename & ".pdf") Send("!e") BlockInput(0) Edited April 17, 2007 by domlike Link to comment Share on other sites More sharing options...
BigDaddyO Posted April 17, 2007 Share Posted April 17, 2007 Look into ControlSend() Some applications will allow this to work when launching the application with the @SW_HIDE flag 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