Jump to content
Sign in to follow this  
domlike

Is a "silent" process execition possible ?

Recommended Posts

domlike

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

Share this post


Link to post
Share on other sites
BigDaddyO

Look into ControlSend()

Some applications will allow this to work when launching the application with the @SW_HIDE flag


Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.