Sign in to follow this  
Followers 0
CyberFunk Productions

Hidden Window

6 posts in this topic

is there any way to send keys to a hidden window???

Share this post


Link to post
Share on other sites



ControlSend will send to hidden windows.

From the help file:

ControlSend ( "title", "text", "classnameNN", "string" [, flag] )


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

ControlSend

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

Sends a string of characters to a control.

This works with most windows, and most of the send keys.

It is one of the best ways to use send. Use autoitspy to find the control (usually Edit1, or something, or you can try it blank.

ControlSend("WindowName","","","Hi I am text")

Best to use the control if possible, it is more acurate.

Also make sure to use the option:

Opt("WinDetectHiddenText", 1) ;0=don't detect, 1=do detect

It will save a few headaches.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

what about the class name of a comand prompt, i can't seem to find the classname of that

Share this post


Link to post
Share on other sites

umm, i think you could use the window spy thing


-Brett

Share this post


Link to post
Share on other sites

If you use a dos window, leave the classnameNN blank.

controlsend(@comspec,"","","Text to send")


AutoIt3, the MACGYVER Pocket Knife for computers.

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