Jump to content
Sign in to follow this  
BALA

Using Send on a Hidden window

Recommended Posts

BALA

I hid a window using @SW_HIDE. Now I want to use Send() on it, but I don't want it to show up. Any idea how this could be done?


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites
seandisanti

I hid a window using @SW_HIDE. Now I want to use Send() on it, but I don't want it to show up. Any idea how this could be done?

if you're sending to standard controls, use ControlSend, otherwise you're going to have to use dll calls etc.

Share this post


Link to post
Share on other sites
BALA

I see how ControlSend can be used to send characters to a NotePad window fro example:

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

But how do I find the Control ID? Where did they get "Edit1?"


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites
SmOke_N

I see how ControlSend can be used to send characters to a NotePad window fro example:

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

But how do I find the Control ID? Where did they get "Edit1?"

With the AutoInfo.exe tool provided to you by AutoIt upon download?

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
BALA

Oh yeah, thanks.

If it's empty in the Info window, do I just leave it blank in the command?

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites
seandisanti

Oh yeah, thanks.

If it's empty in the Info window, do I just leave it blank in the command?

does it have a control type, or numeric control id?

Share this post


Link to post
Share on other sites
seandisanti

No, it's just blank on the info window.

doesn't sound like ControlSend is going to be an option for you then. Sorry.

Share this post


Link to post
Share on other sites
BALA

doesn't sound like ControlSend is going to be an option for you then. Sorry.

You have to have the Control Id?


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites
SmOke_N

doesn't sound like ControlSend is going to be an option for you then. Sorry.

Try it with blank Parameters and see what happens.

ControlSend('Window Name', '', '', 'Testing')

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
seandisanti

Try it with blank Parameters and see what happens.

ControlSend('Window Name', '', '', 'Testing')
I remember back in the beginning of '05 everyone was suggesting that, until someone actually tested it and it didn't work... did they change something to make it work?

Share this post


Link to post
Share on other sites
SmOke_N

I remember back in the beginning of '05 everyone was suggesting that, until someone actually tested it and it didn't work... did they change something to make it work?

I don't know, I know Larry had talked about it a bit... But I can't remember what the thread name was, or what the out come was. I just know, I've done it a few times myself. You'd think they would make it an optional parameter, but the way it is set up parameter wise, you know why they can't.

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
BALA

I don't know, I know Larry had talked about it a bit... But I can't remember what the thread name was, or what the out come was. I just know, I've done it a few times myself. You'd think they would make it an optional parameter, but the way it is set up parameter wise, you know why they can't.

So how does it work with me?


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites
SmOke_N

So how does it work with me?

You hit F5?

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
BALA

You hit F5?

No, I just ran the script.

EDIT: wait, I did have the text of the window, if that makes a difference

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites
SmOke_N

No, I just ran the script.

At the risk of sounding like an asshole ... oh who am I kidding...

What do you think happens when you press F5?


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
BALA

At the risk of sounding like an asshole ... oh who am I kidding...

What do you think happens when you press F5?

press F5 while script is running, or in editor?

EDIT: In editor it runs script

EDIT EDIT: Oh I get it now, you were talking about running the script, I'm not good with shortcuts :)

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

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.