oha Posted April 11, 2007 Share Posted April 11, 2007 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 More sharing options...
mrbond007 Posted April 11, 2007 Share Posted April 11, 2007 put WinWaitActive before Send("!A") Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now