Jump to content
Sign in to follow this  

Recommended Posts

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...