Jump to content

Using the Hide Windows Command


MikeS
 Share

Recommended Posts

Hello,

I have a project, that will use WinAudit.exe and I cannot have any windows shown to the user, because of a union issues. So I thought I could use Autoit, to help me with this task.

The problem that I have is the WinAudit windows show up even with the @SW_HIDE command.

Here is my code:

Run("c:\Winaudit.exe")

Sleep(1000)

;WinWaitActive("WinAudit Freeware v2.16")

WinSetState("WinAudit Freeware v2.16","",@SW_HIDE)

Send("!F")

Send("a")

So how can I hide the WinAudit window and still send commands to it, if that can be done?

Because right now, it works as far a WinAudit, but shows WinAudit Freeware v2.16 window, till I send Alt commands to it. so basically I would like to have this run sliently to the user.

Any ideas, would be great, you can download WinAudit Here

http://www.pxserver.com/WinAudit.htm

Thanks,

Mike

Link to comment
Share on other sites

Run("c:\Winaudit.exe", "", @SW_HIDE)
Sleep(1000)
WinActivate("WinAudit")
WinWaitActive("WinAudit")
Send("!F")
Send("a")
WinSetState("WinAudit Freeware v2.16","",@SW_SHOW)

This does the trick - nearly, you still have to kill the splash which class is PXSWindowClass

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Link to comment
Share on other sites

Run("c:\Winaudit.exe", "", @SW_HIDE)
Sleep(1000)
WinActivate("WinAudit")
WinWaitActive("WinAudit")
Send("!F")
Send("a")
WinSetState("WinAudit Freeware v2.16","",@SW_SHOW)

This does the trick - nearly, you still have to kill the splash which class is PXSWindowClass

What do these command do?

WinActivate("WinAudit")

WinWaitActive("WinAudit")

As I try it but it did not work, But I did use the code:

Run("c:\Winaudit.exe", "", @SW_HIDE)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

So how can I get the spash screen to not show, using the PXSWindowClass?

If I can get that to work I would be set.

Thanks for all of your help.

Mike

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