Sign in to follow this  
Followers 0
BALA

Using Send on a Hidden window

18 posts in this topic

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



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.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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

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?

[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

#5 ·  Posted (edited)

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

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?

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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

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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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')

[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

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?

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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.

[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

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

So how does it work with me?

You hit F5?

[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

#16 ·  Posted (edited)

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

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?


[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

#18 ·  Posted (edited)

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  
Followers 0