Jump to content

Is a "silent" process execition possible ?


Recommended Posts

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 by domlike
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...