Hi.
I have a frustrating problem:
Read this script:
*******************************************************
IISMultipleApps.au3
*******************************************************
Const $_MATCH_TITLE_FROM_START = 1
Const $_MATCH_TITLE_SUBSTR = 2
Const $_MATCH_CLASSNM = 4
Const $IIS7_TITLE = "iis - [internet Information Services (IIS) Manager]"
Const $NOTEPAD_TITLE = "Untitled - Notepad"
Opt("WinTitleMatchMode", $_MATCH_TITLE_SUBSTR)
OpenApp($IIS7_TITLE)
;OpenApp($NOTEPAD_TITLE)
Sleep (2000)
ConsoleWrite("Maximize IIS app" & @CRLF)
WinSetState($IIS7_TITLE, "" , @SW_MAXIMIZE)
ConsoleWrite("MouseClick" & @CRLF)
MouseClick("left",193,204,1) ; Click IIS the tree root
Func OpenApp($app)
MouseClick("left",30,990,1) ; Click Start menu button
Sleep(500)
Send ("{TAB}")
Sleep(500)
Send ("{UP 2}")
Sleep(500)
Send ("{ENTER}") ;open Run Command line on Start menu
Sleep(500)
If $app = $IIS7_TITLE Then
Send ("mmc %systemroot%\system32\inetsrv\iis.msc")
Else
Send ("notepad")
EndIf
Sleep(500)
Send ("{ENTER}")
EndFunc
*******************************************************
The phenomena is like this:
The IIS is launched as expected.
BUT, since then, the mouse functions do not execute and also functions like WinSetState also do not do their job.
But, if I perform the script on notepad - every thing is OK (on the notepad!).
I also tried to launch the two applications together: When Notepad was active the mouse and WinSetState (on notepad!) worked.
But when I minimized notepad, the mouse functions paused from working and so is the WinSetState.
I am working on Win7 32Bit.
Thanks!