Sign in to follow this  
Followers 0
Zisly

Send commands to a window?

9 posts in this topic

Is it possible to make so the program will send commands to a window/program even if it is minimized? so I can do other stuff while running the program?

Thankfull for answers :D

Share this post


Link to post
Share on other sites



Yes you can do that. Check out the Control functions in the helpfile


While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Yes you can do that. Check out the Control functions in the helpfile

Will do,thanks for the fast response :D

Edit: I didn't find it :S

Could someone tell me what I should search for in the helpfile to get it? or what the function is called?

Edited by Zisly

Share this post


Link to post
Share on other sites

Will do,thanks for the fast response :D

Edit: I didn't find it :S

Could someone tell me what I should search for in the helpfile to get it? or what the function is called?

Look for functions that start with "Control", e.g., ControlClick()

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I think i found it, is it this one?

ControlCommand

Sends a command to a control.

?

If I use that will I be able to do other things while the programs ex send messages in another window?

Edited by Zisly

Share this post


Link to post
Share on other sites

Only found "GUI control styles" :S

Go to the Index tab, and scroll down until you get to all the "Control..." functions.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Thanks !! works like a dream xD :D

Now I dont have to have the window opened all the time :D

Edited by Zisly

Share this post


Link to post
Share on other sites

hey

im also new to autoit (writing programms/scripts) and i would like to know how to get a windows pid (process id) which i need to send commands to a window even when its hidden

thx in advance

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