Jump to content

Using Send on a Hidden window


BALA
 Share

Recommended Posts

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
Link to comment
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
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

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

[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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...