Sign in to follow this  
Followers 0
someone1

Control IDs

16 posts in this topic

Control ID

The Control ID is the internal numeric identifier that windows gives to each control. It is generally the best method of indentifying controls. In addition to the AutoIt Window Info Tool, other applications such as screenreaders for the blind and Microsoft tools/APIs may allow you to get this Control ID.

The AutoIt window info tool says control id is hidden for a game i want to find, how would i be able to find it if it is hidden.

any1 have any info/ideas on this ???

help pls

Share this post


Link to post
Share on other sites



From the help file:

Using the AutoIt Window Info Tool you can move your mouse around the window you are interested in and you will be given information of the control that is currently under your mouse.  Information on controls is given in a number of ways, these are:

Control ID

ClassNameNN

Text

Control Handle (HWND) (Not available in AutoIt Window Info Tool - see below)

Whenever you see a Control...() command expecting a ControlID parameter (most of them) you can use any one of these methods.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

yes u will see it but for this program as i said it says "control hidden"

Share this post


Link to post
Share on other sites

yes u will see it but for this program as i said it says "control hidden"

<{POST_SNAPBACK}>

could you include a screenshot of the autoit window info?

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Posted Image

Control ID:

ClassNameNN: Edit1

Text: EditWindow

(Control is hidden) <---------

that all happens only when i move my mouse over the chatbox

if i keep my mouse anywhere else on screen

Control ID, ClassNameNN, Text all stay blank

i can only use controlsend if i use

ControlSend("Knight OnLine Client", "", "Edit1", "c")

but it only works in chatbox and nowhere else i am trying to make it work other areas but it doesnt

help please.

Edited by someone1

Share this post


Link to post
Share on other sites

Posted Image

Control ID:

ClassNameNN: Edit1

Text:  EditWindow

(Control is hidden)  <---------

that all happens only when i move my mouse over the chatbox

if i keep my mouse anywhere else on screen

Control ID, ClassNameNN, Text all stay blank

i can only use controlsend if i use

ControlSend("Knight OnLine Client", "", "Edit1", "c")

but it only works in chatbox and nowhere else i am trying to make it work other areas but it doesnt

help please.

<{POST_SNAPBACK}>

you could try just sending to the window... ControlSend() is the preferred way to send, but Send() works too... you may have to send an {ENTER} or something to activate the chat window at the beginning of the string to activate the chat box, but other than that you should have no issues...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

i dont want to use it for chatting, but if i send it in the way i sent in the code above to send the button "C" to game to sit down , how would i do it ?

ControlSend("Knight OnLine Client", "", "", "c") doesnt do anything

Share this post


Link to post
Share on other sites

i dont want to use it for chatting, but if i send it in the way i sent in the code above to send the button "C" to game to sit down , how would i do it ?

ControlSend("Knight OnLine Client", "", "", "c") doesnt do anything

<{POST_SNAPBACK}>

try:

if Not WinActive("Knight OnLine Client") then
    WinActivate("Knight OnLine Client")
    WinWaitActive("Knight OnLine Client")
    Send("c")
Else
    Send("c")
EndIf

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

as i said for some reason the window is not accepting sends

control sends works but i can only manage to send it to the chat box

i wanna send it to the game but how owuld i controlsend to the game, the controlid classname etc... are hidden

Share this post


Link to post
Share on other sites

im going for now, if any1 knows pls reply with what u think here

Share this post


Link to post
Share on other sites

Have you tried

ControlShow("Knight OnLine Client", "", "Edit1")
ControlGetFocus("Knight OnLine Client")
ControlSend("Knight OnLine Client", "", "Edit1", "c")

Or

ControlSetText("Knight OnLine Client", "", "Edit1", "c")
Send("{Enter}")

You may just not be able to send to the edit box.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

WinActivate("Knight OnLine Client")
WinWaitActive("Knight OnLine Client")
sleep(1000)
$a = ControlGetFocus("Knight OnLine Client")
MsgBox(0, "Test", $a)

would bring up an empty msg box, it does not want to find the classnamenn for normal window (thats what i want, not the msgbox)

I would be able to make a bot which spams things while im away on merchant mode

but i want to be able to press z*delay*1*delay*z*delay*1*delay*c*delay* and repeat that for example but EVERYthing i have tried does not work.

Share this post


Link to post
Share on other sites

there is no code to attatch .... because "Send" doesnt work and control send only works on the chatbox i wanna know how to unhide the classname/controlid because thats the thing thats stopping it fromm working

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  
Followers 0