Jump to content

sequence in a script


oha
 Share

Recommended Posts

Hello,

Could you help me please ?

I make this script, that launch desk.cpl with a theme and apply.

run(@ComSpec & " /c " & 'rundll32.exe shell32.dll,Control_RunDLL desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\u\base.theme"', "", @SW_HIDE)

Send("!A")

Send("{Enter}")

It works fine. But if i put it in a script, sometimes "!A" is send before desk.cpl launched. If i put sleep (5000) between, sometimes it's ok or it's wrong ..("{Enter}") is send too late, and it's apply in the following application !

thanks you

Olivier (france)

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...