Sign in to follow this  
Followers 0
desertcolt

Function in Hidden Window

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Thanks , it helped and I am able to fix the code.

Share this post


Link to post
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
Sign in to follow this  
Followers 0