viper1010at Posted October 2, 2007 Share Posted October 2, 2007 Hy, i hope someone can help me - i have to start 4 Programms and then the front window should change after 10 sec. to the next window and then start the first window Thanks viper Link to comment Share on other sites More sharing options...
martin Posted October 2, 2007 Share Posted October 2, 2007 Hy,i hope someone can help me - i have to start 4 Programms and then the front window should change after 10 sec. to the next window and then start the first windowThanksviperWelcome to the forums.You need to look in the help file for ShellExecute and Run for ways of starting a program. Then to bring a window (program?) to the front look up WinActivate.For delays look up Sleep. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
viper1010at Posted October 2, 2007 Author Share Posted October 2, 2007 Welcome to the forums.You need to look in the help file for ShellExecute and Run for ways of starting a program. Then to bring a window (program?) to the front look up WinActivate.For delays look up Sleep.thanks but how i make a loop with no end? Link to comment Share on other sites More sharing options...
Tasmania Posted October 2, 2007 Share Posted October 2, 2007 Look up While Link to comment Share on other sites More sharing options...
viper1010at Posted October 2, 2007 Author Share Posted October 2, 2007 Look up Whilehy, i´m sorry but can you help mei have this:AutoItSetOption("WinTitleMatchMode", 1)WinActivate("Unbenannt - Editor", "")WinWaitActive("Unbenannt - Editor", "")Sleep(10000)WinActivate("Microsoft Excel - Mappe1", "")WinWaitActive("Microsoft Excel - Mappe1", "")Sleep(10000)Exitwhat must i do?Thanks a lot Link to comment Share on other sites More sharing options...
Tasmania Posted October 2, 2007 Share Posted October 2, 2007 (edited) An instance of a while loop, in an application like yours, would be like this... AutoItSetOption("WinTitleMatchMode", 2) HotKeySet("{ESC}", "quit") Func quit() Exit EndFunc Run("Notepad.exe") ShellExecute("Wordpad.exe") While 1 WinActivate("Notepad") Sleep(10000) WinActivate("WordPad") Sleep(10000) WEnd Edit: Badly formatted code - I didn't test it beforehand, this one works. Edited October 2, 2007 by Tasmania 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