Jump to content
Sign in to follow this  

sequence in a script

Recommended Posts



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)



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)

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.