Jump to content

open 4 Programms and change the window


Recommended Posts

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

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.

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

Look up While

hy, i´m sorry but can you help me

i have this:

AutoItSetOption("WinTitleMatchMode", 1)

WinActivate("Unbenannt - Editor", "")

WinWaitActive("Unbenannt - Editor", "")

Sleep(10000)

WinActivate("Microsoft Excel - Mappe1", "")

WinWaitActive("Microsoft Excel - Mappe1", "")

Sleep(10000)

Exit

what must i do?

Thanks a lot

Link to comment
Share on other sites

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