Jump to content

au3info information


Recommended Posts

I use the following script fragment to launch Component Services to take a look at some of the services.

- - - - - - - - - - -- - - - - --

Send("{RWINDOWN}r{RWINUP}")

WinWait("Run","Type the name of a p")

If Not WinActive("Run","Type the name of a p") Then

WinActivate("Run","Type the name of a p")

EndIf

WinWaitActive("Run","Type the name of a p")

Send("c{SHIFTDOWN};{SHIFTUP}\windows\system32\com\comexp.msc{ENTER}")

WinWait("Component Services","Console Root")

If Not WinActive("Component Services","Console Root") Then

WinActivate("Component Services","Console Root")

EndIf

WinWaitActive("Component Services","Console Root")

Send("s")

WinWait("Component Services","Console Root\Service")

If Not WinActive("Component Services","Console Root\Service") Then WinActivate("Component Services","Console Root\Service")

WinWaitActive("Component Services","Console Root\Service")

- - - - - - - - - - - - -

Au3Info.exe does not show the services - even though the text for the names of the services displays in the info window.

Can anyone tell me: Why does Au3info.exe NOT see the text?

Link to comment
Share on other sites

Welcome to the forums.

This code:

Send("{RWINDOWN}r{RWINUP}")

WinWait("Run","Type the name of a p")

If Not WinActive("Run","Type the name of a p") Then

WinActivate("Run","Type the name of a p")

EndIf

WinWaitActive("Run","Type the name of a p")

Send("c{SHIFTDOWN};{SHIFTUP}\windows\system32\com\comexp.msc{ENTER}")

could be this:

ShellExecute("c:\windows\system32\com\comexp.msc")
...but before we go too much further - what do you mean by "to take a look at some of the services"? Do you just want to know if a particular service is running/paused/stopped/...?

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Welcome to the forums.

This code:

Send("{RWINDOWN}r{RWINUP}")

WinWait("Run","Type the name of a p")

If Not WinActive("Run","Type the name of a p") Then

WinActivate("Run","Type the name of a p")

EndIf

WinWaitActive("Run","Type the name of a p")

Send("c{SHIFTDOWN};{SHIFTUP}\windows\system32\com\comexp.msc{ENTER}")

could be this:

ShellExecute("c:\windows\system32\com\comexp.msc")
...but before we go too much further - what do you mean by "to take a look at some of the services"? Do you just want to know if a particular service is running/paused/stopped/...?
This is the precursor to a little gizmo to do the following:

1. Check to see if certain services that should auto-start are running.

2. If they are not running, to stop/start them.

3. If stop/start fails due to logon failure, reset the passwords and stop/start again.

Which is all a nice idea, but if I can't see the services, then I can't do anything else with them.

Link to comment
Share on other sites

This is the precursor to a little gizmo to do the following:

1. Check to see if certain services that should auto-start are running.

2. If they are not running, to stop/start them.

3. If stop/start fails due to logon failure, reset the passwords and stop/start again.

Which is all a nice idea, but if I can't see the services, then I can't do anything else with them.

Look at my NET SEND GUI

There is simple code for test whether is Messnger service running and start him.

Link to comment
Share on other sites

This is good info, which I really appreciate - THANKS!

But.... the question remains - Why won't Au3Info.EXE find the text in some windows/ applications - even though the text is perfectly visible to the naked eye?

All that I know is from the help file:

Under Window Titles and Text (Basic)

The window text consists of all the text that AutoIt can "see". This will usually be things like the contents of edit controls (as above with "This is a line of text") but will also include other text like:

Button text like &Yes, &No, &Next (the & indicates an underlined letter)

Dialog text like "Are you sure you wish to continue?"

Control text

Misc text - sometimes you don't know what it is

The info that you want AutoIt to see is not in an " edit control"

...much like the info inside of IE.

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

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