BryanSavon Posted September 25, 2009 Share Posted September 25, 2009 Hi,I want to send text to a minimized notepad window.Why? Because I want to send debug info to it.I have already spent a huge amount of time looking through these forums so I already know some options:activate the window then use the send command to 'send' text to it and then deactivate the windowwrite to a flat file insteadmake a new GUI / list for this purposeHowever dumping the messages into notepad to be much more convenient.NoteI cannot really activate the notepad window to push text to it ... some of my applications would notice this and react to it I have tried the _sendmessage function and have not been able to get it to work :DIf someone who has done this before ... could they be very kind, to a someone who is frustrated, and post a very simple example (e.g. send a single character of text)Thanks in advanceBryan Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 25, 2009 Share Posted September 25, 2009 Didn't bother trying ControlSend() instead of Send()...? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
BryanSavon Posted September 25, 2009 Author Share Posted September 25, 2009 OK - think I have got the first bit if the answer already ... Sending text to the notepad window is meaningless ... I need to send text to the control within the notepad window (i.e. Edit1)??? Am I right? In which case - how do I find the Edit1 control handle? Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 25, 2009 Share Posted September 25, 2009 OK - think I have got the first bit if the answer already ... Sending text to the notepad window is meaningless ... I need to send text to the control within the notepad window (i.e. Edit1)??? Am I right? In which case - how do I find the Edit1 control handle? You can get the handle with ControlGetHandle(), but you could just pass the ClassNameNN "Edit1": ControlSend("My Notepad Window Title", "", "Edit1", "Some text...") Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
USama Posted October 21, 2009 Share Posted October 21, 2009 Thank You .. Really You Helped Me Sooo Much ... i love Autoit And His Users... Link to comment Share on other sites More sharing options...
gte Posted October 21, 2009 Share Posted October 21, 2009 Here is what I did to overcome that, because notepad seems to be one of the few things that accepts keystrokes if the window is minimizedhttp://www.autoitscript.com/forum/index.php?showtopic=103163&st=0&p=731203&fromsearch=1&#entry731203Hi,I want to send text to a minimized notepad window.Why? Because I want to send debug info to it.I have already spent a huge amount of time looking through these forums so I already know some options:activate the window then use the send command to 'send' text to it and then deactivate the windowwrite to a flat file insteadmake a new GUI / list for this purposeHowever dumping the messages into notepad to be much more convenient.NoteI cannot really activate the notepad window to push text to it ... some of my applications would notice this and react to it I have tried the _sendmessage function and have not been able to get it to work If someone who has done this before ... could they be very kind, to a someone who is frustrated, and post a very simple example (e.g. send a single character of text)Thanks in advanceBryan HP OpenView ServiceCenter keep alive scriptRemote Desktop Login Script 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