Jump to content
Sign in to follow this  
shea851

ControlSend help

Recommended Posts

shea851

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?

Share this post


Link to post
Share on other sites
rcaught

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.

Share this post


Link to post
Share on other sites
shea851

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 by shea851

Share this post


Link to post
Share on other sites
sampope

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)

Share this post


Link to post
Share on other sites
shea851

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 by shea851

Share this post


Link to post
Share on other sites
shea851

Anyone have any idea how to do this?

Share this post


Link to post
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
Sign in to follow this  

×