Teddy Posted July 15, 2004 Report Share Posted July 15, 2004 I want to read all text in a certain window, and if I get a match on a defined text (the filter might include wildcards like *?) i want to react on it. Quote Link to comment Share on other sites More sharing options...
joe Posted July 16, 2004 Report Share Posted July 16, 2004 Hello Teddy! Can the text in the window be copied and pasted to the clipboard? If so, then you can create a string variable from the clipboard and do your tests on it. Quote Link to comment Share on other sites More sharing options...
Teddy Posted July 16, 2004 Author Report Share Posted July 16, 2004 Yes it can be copied to the clipboard, as it is an ordinary chat window. I want this to be more automated than that. I figured I could use a scheduled macro that runs quite often, and answers to a specific text all by itself. I already have a macro for posting this answer manually, that is not the issue Quote Link to comment Share on other sites More sharing options...
floyd Posted July 17, 2004 Report Share Posted July 17, 2004 Yes, a scheduled macro would work. However, you still need a way to capture the text to read, parse, and react to it. That is why you would use clipboard commands within the scheduled macro. Quote Link to comment Share on other sites More sharing options...
Teddy Posted July 18, 2004 Author Report Share Posted July 18, 2004 I was hoping this could be done with the program, but I know it might be a bit out of bounds for the concept of it. Anyone got an idea how i can get the text auto-pasted to the clipboard? Quote Link to comment Share on other sites More sharing options...
Linda Posted July 19, 2004 Report Share Posted July 19, 2004 Teddy- You can use "Get Control" or "Capture Control" to set the focus to the window that you want to copy text from, and then use "Clipboard Copy" to copy the text to the clipboard. Pull it into a variable in your program using the option within "Variable Set String" to "Set Value from Clipboard". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.