Sign in to follow this  
Followers 0
sd333221

Send keys to hidden windows?

11 posts in this topic

Can you send keys to hidden

windows, without activating them?

=)

that would revolutionize whole autoit

Share this post


Link to post
Share on other sites



ControlSend()???

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

ControlSend()???

8)

If i use this, the window pops up :-)

Share this post


Link to post
Share on other sites

i didn't think it did... i will check that now

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

nope... it does not

tested with this

Run("Notepad.exe", "", @SW_MAXIMIZE)
WinWait("")

Send("!{TAB}")

sleep(4000)

ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

and?????

did it work for u?????

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Can you send keys to hidden

windows, without activating them?

=)

that would revolutionize whole autoit

nope... it does not

tested with this

Run("Notepad.exe", "", @SW_MAXIMIZE)
WinWait("")

Send("!{TAB}")

sleep(4000)

ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")

8)

You mean this?

Run("Notepad.exe", "", @SW_HIDE)
WinWait("")

Send("!{TAB}")

sleep(4000)

ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")

Sleep(4000)

WinSetState("Untitled - Notepad", "", @SW_SHOW)

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

nope... i wanted him to have to look for the page ControlSend() sent text to

to prove it would NOT be set active/on-top

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Well i guess both examples show it... you're getting a bit furtive lately :lmao::P


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

fur·tive [ fúrtiv ]adjective

Definitions:

1. secretive: done in a way that is intended to escape notice

conspirators exchanging furtive glances

2. shifty: presenting the appearance, or giving the impression, of somebody who has something to hide

i dont think that was it

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

The synonyms of the word was what I was after... something like "artful" ... "cunning"... I used it in the wrong sytax (kind of like my coding :P )


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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