Jump to content

ControlSend help


shea851
 Share

Recommended Posts

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

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

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
Link to comment
Share on other sites

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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...