BALA Posted January 15, 2007 Share Posted January 15, 2007 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 More sharing options...
seandisanti Posted January 15, 2007 Share Posted January 15, 2007 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. Link to comment Share on other sites More sharing options...
BALA Posted January 15, 2007 Author Share Posted January 15, 2007 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 More sharing options...
Moderators SmOke_N Posted January 15, 2007 Moderators Share Posted January 15, 2007 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 More sharing options...
BALA Posted January 15, 2007 Author Share Posted January 15, 2007 (edited) Oh yeah, thanks. If it's empty in the Info window, do I just leave it blank in the command? Edited January 15, 2007 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 More sharing options...
seandisanti Posted January 15, 2007 Share Posted January 15, 2007 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? Link to comment Share on other sites More sharing options...
BALA Posted January 15, 2007 Author Share Posted January 15, 2007 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 More sharing options...
seandisanti Posted January 15, 2007 Share Posted January 15, 2007 No, it's just blank on the info window.doesn't sound like ControlSend is going to be an option for you then. Sorry. Link to comment Share on other sites More sharing options...
BALA Posted January 15, 2007 Author Share Posted January 15, 2007 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 More sharing options...
Moderators SmOke_N Posted January 15, 2007 Moderators Share Posted January 15, 2007 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 More sharing options...
BALA Posted January 15, 2007 Author Share Posted January 15, 2007 It works! [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 More sharing options...
seandisanti Posted January 15, 2007 Share Posted January 15, 2007 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? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 15, 2007 Moderators Share Posted January 15, 2007 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 More sharing options...
BALA Posted January 15, 2007 Author Share Posted January 15, 2007 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 More sharing options...
Moderators SmOke_N Posted January 15, 2007 Moderators Share Posted January 15, 2007 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. Link to comment Share on other sites More sharing options...
BALA Posted January 15, 2007 Author Share Posted January 15, 2007 (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 January 15, 2007 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 More sharing options...
Moderators SmOke_N Posted January 15, 2007 Moderators Share Posted January 15, 2007 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 More sharing options...
BALA Posted January 15, 2007 Author Share Posted January 15, 2007 (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 scriptEDIT EDIT: Oh I get it now, you were talking about running the script, I'm not good with shortcuts Edited January 15, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now