someone1 Posted September 15, 2005 Share Posted September 15, 2005 Control IDThe 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted September 15, 2005 Share Posted September 15, 2005 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. Link to comment Share on other sites More sharing options...
someone1 Posted September 15, 2005 Author Share Posted September 15, 2005 yes u will see it but for this program as i said it says "control hidden" Link to comment Share on other sites More sharing options...
seandisanti Posted September 15, 2005 Share Posted September 15, 2005 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? Link to comment Share on other sites More sharing options...
someone1 Posted September 15, 2005 Author Share Posted September 15, 2005 (edited) Control ID: ClassNameNN: Edit1Text: EditWindow(Control is hidden) <--------- that all happens only when i move my mouse over the chatboxif 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 doesnthelp please. Edited September 15, 2005 by someone1 Link to comment Share on other sites More sharing options...
seandisanti Posted September 15, 2005 Share Posted September 15, 2005 Control ID: ClassNameNN: Edit1Text: EditWindow(Control is hidden) <--------- that all happens only when i move my mouse over the chatboxif 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 doesnthelp 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... Link to comment Share on other sites More sharing options...
someone1 Posted September 15, 2005 Author Share Posted September 15, 2005 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 Link to comment Share on other sites More sharing options...
seandisanti Posted September 15, 2005 Share Posted September 15, 2005 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 Link to comment Share on other sites More sharing options...
someone1 Posted September 15, 2005 Author Share Posted September 15, 2005 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 Link to comment Share on other sites More sharing options...
someone1 Posted September 15, 2005 Author Share Posted September 15, 2005 im going for now, if any1 knows pls reply with what u think here Link to comment Share on other sites More sharing options...
someone1 Posted September 16, 2005 Author Share Posted September 16, 2005 BUMP Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 16, 2005 Moderators Share Posted September 16, 2005 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. Link to comment Share on other sites More sharing options...
someone1 Posted September 16, 2005 Author Share Posted September 16, 2005 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. Link to comment Share on other sites More sharing options...
someone1 Posted September 16, 2005 Author Share Posted September 16, 2005 bump Link to comment Share on other sites More sharing options...
GaryFrost Posted September 16, 2005 Share Posted September 16, 2005 Try attaching your code, might get more help that way. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
someone1 Posted September 17, 2005 Author Share Posted September 17, 2005 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 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