Jump to content

Working with IIS 7.5


dushkin
 Share

Recommended Posts

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!

Edited by dushkin
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...