Jump to content

Recommended Posts

Posted

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

Posted

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.

 

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
Posted

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...
Posted

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

Posted

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
Posted

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

  • Moderators
Posted

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.

Posted

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.

Posted

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

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
  • Recently Browsing   0 members

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