Sign in to follow this  
Followers 0
d4rkcell

Please Wait Screen

5 posts in this topic

hello i have the below script, very simple. this is my first autoit script so please bear with me.

Dim $process

$process="outlook.exe"

If ProcessExists($process) Then
    ProcessClose($process)
EndIf

BlockInput(1)

ShellExecute("outlook")

runwait(@comspec & " /c xcopy /s/e/i \\path\CRM c:\temp\CRM")
sleep(20000)
;if outlook is running close it
If ProcessExists($process) Then
        ProcessClose($process)
EndIf

runwait(@comspec & " /c C:\temp\CRM\Config.cmd")

sleep(20000)

ShellExecute("outlook")
Sleep(10000)

WinActivate("Inbox - Microsoft Outlook")

Sleep(20000)
Send("!{M}")
Send("{ENTER}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{ENTER}")

I want there to be a form or splash screen of some kind visible at all times while the script goes and does its thing, can anyone help me on getting this to run? I need my tab keys etc to ignore this splash screen and operate on the screens behind it, I dont mind the please wait screen being behind the windows as long as it is on the screen and the person running the script can see it.

I have seen a few examples on these forums but nothing that I can work into the above existing script. Any help here would be much appreciated.

Thanks

Share this post


Link to post
Share on other sites



Check out SplashImageOn() and/or SplashTextOn() from the help file.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

You could use tooltips.

Off the topic, did you find the Outlook UDF? This lets you interact directly with Outlook, rather than simulating keypresses etc.

Regards,

William

Share this post


Link to post
Share on other sites

You could use tooltips.

Off the topic, did you find the Outlook UDF? This lets you interact directly with Outlook, rather than simulating keypresses etc.

Regards,

William

Hi I didn't no... like i said I am pretty new to autoit... this is just to automate some configuration of MS Dynamics CRM 4 for outlook 2007 i will certainly check out anything that can help. UEZ thanks for the pointer i will check out the functions you mentioned!

d4rkcell.

Share this post


Link to post
Share on other sites

for anyone reading in future i managed this by doing something like

Dim $i
$i=1
While $i=1
       ToolTip("CRM Configuration is taking place, please wait", 0,0, "STS CRM Configurator",1,1)
       ;MY CODE HERE
       $i=0
Wend

This might not be the best way to do this but it seems to work ok on the limited tests i have done at home, the true test will come tomorrow when i integrate it with the main script.

Thanks for the help guys!

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  
Followers 0