Jump to content
Sign in to follow this  
sd333221

Send keys to hidden windows?

Recommended Posts

sd333221

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
sd333221

ControlSend()???

8)

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

Share this post


Link to post
Share on other sites
Valuater

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

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Valuater

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
SmOke_N

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)

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.

Share this post


Link to post
Share on other sites
Valuater

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
SmOke_N

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


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.

Share this post


Link to post
Share on other sites
Valuater

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
SmOke_N

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 )


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.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.