WaitWindow

You need help to start using UVK? You have a doubt on a UVK feature? Post here!
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
Charger440
Posts: 1529
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

WaitWindow

Post by Charger440 »

Code: Select all

<Run>
cmd
->WaitWindow(100000, C:\Windows\system32\cmd.exe)
->WinSend(diskpart {enter})
 <Sleep>10
->WinSend(automount enable {enter})
This is the closest I have ever gotten WaitWindow to work. This script works fine up until the second WinSend and it will not send it. I'm not sure why and the script windows usually does not report any errors so I can't really go on anything there.
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Fred
Site Admin
Posts: 2357
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: WaitWindow

Post by Fred »

Hi Jim.

The automation functions must be used inside the <Run> mode. At the line <Sleep>10, the mode is changed to <Sleep>, so ->WinSend(automount enable {enter}) does not work. Also, there is a bug and the Run scripts section is not logging anything, that's why you don't see any errors. It's already fixed, I will upload a new beta today.

This works for me:

Code: Select all

<Run>
%Comspec% /c diskpart
->WaitWindow()
->Sleep(4000)
->WinSend(automount enable {enter})
->Sleep(4000)
->WinSend(exit {enter})
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Post Reply