Jump to content

Function in Hidden Window


Recommended Posts

I have an autoit script which open and runs a CD player. I want it to do all operations in hidden mode ie it should open the CD player in background, select the menus etc and just play the movie in foregorund in end.

We can do this in case of a Run comand used for DOS ; _RunDos ($sCommand) which executes the DOS command in hidden window.

But how to execute whole whindow function in backgorund which just pops up final result ??

Link to comment
Share on other sites

Hi desertcolt,

I have an autoit script which open and runs a CD player. I want it to do all operations in hidden mode ie it should open the CD player in background, select the menus etc  and just play the movie in foregorund in end.

We can do this in case of a Run comand used for DOS ; _RunDos ($sCommand) which executes the DOS command in hidden window.

But how to execute whole whindow function in backgorund which just pops up final result ??

<{POST_SNAPBACK}>

What about using the normal "RUN" with the @SW_HIDE flag?

Example:

Run("notepad.exe", "", @SW_HIDE)

The above will run notepad in a hidden window.

You could then use ControlSend () to do the automation stuff for the hidden window.

Finaly you could use WinSetState () to bring up the movie /result window you mentioned.

I hope this helps

commenti

Edit: Changed suggested ControlShow () to WinSetState. cause this seems after rereading the first post this seemed a better solution to your demands.

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