shea851 Posted January 14, 2008 Share Posted January 14, 2008 I'm familiar with using Send, but of course it sends to the focused window. I'm trying to use ControlSend so that it always sends to same window, focused or not. The problem is the window i'm sending text to does not have a control id at all or whatever. I see in the example you can do ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window") I'm trying to do ControlSend("Untitled - Notepad", "", "", "^1") and it's not working. Any suggestions? Link to comment Share on other sites More sharing options...
rcaught Posted January 14, 2008 Share Posted January 14, 2008 I'm familiar with using Send, but of course it sends to the focused window. I'm trying to use ControlSend so that it always sends to same window, focused or not. The problem is the window i'm sending text to does not have a control id at all or whatever. I see in the example you can do ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window") I'm trying to do ControlSend("Untitled - Notepad", "", "", "^1") and it's not working. Any suggestions? Well, if it's still a Notepad window like your code suggests then the control id for inserting text into the main Notepad window is still "Edit1". You seem to be trying to insert "^1", which is like sending "CTRL+1". In Notepad, this will achieve nothing. If you are trying to insert "^1" (these actual characters) then try adding the last parameter to make what is sent raw. ControlSend("Untitled", "", "Edit1", "^1", 1) If none of this is any help then post more about what you are actually trying to do. Link to comment Share on other sites More sharing options...
shea851 Posted January 14, 2008 Author Share Posted January 14, 2008 (edited) No, notepad is not what i'm trying to use it for, it was just an example. Here's something better maybe ControlSend("Everquest", "", "", "1") Won't work, because no control ID within everquest, however with Send it works fine you just always have to have window focused. Any idea how i can use controlsend with something that doesn't have a control id? Edited January 14, 2008 by shea851 Link to comment Share on other sites More sharing options...
sampope Posted January 14, 2008 Share Posted January 14, 2008 No, notepad is not what i'm trying to use it for, it was just an example. Here's something better maybe ControlSend("Everquest", "", "", "1") Won't work, because no control ID within everquest, however with Send it works fine you just always have to have window focused. Any idea how i can use controlsend with something that doesn't have a control id? try this and make sure your window title is everquest ControlSend("Everquest", "", "", "sendwhat?",1) Link to comment Share on other sites More sharing options...
shea851 Posted January 14, 2008 Author Share Posted January 14, 2008 (edited) Nope, that doesn't work either =/ i've tried these 2 ways with no luck, and yes window title is correct ControlSend("Everquest", "", "", "9",1) ControlSend("Everquest", "", "", "9") Edited January 14, 2008 by shea851 Link to comment Share on other sites More sharing options...
shea851 Posted January 21, 2008 Author Share Posted January 21, 2008 Anyone have any idea how to do this? 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