testingtest Posted February 18, 2007 Share Posted February 18, 2007 ok I have looked for a few hours and couldn't find what I am looking for. I need something that can read from say this whole post or just this box and then import or input it into a gui edit box. ===== BOX ===== The reason I need this is to make a automated bot for a chat program as known as a smart bot. heres another quick example CODE#include <GuiConstants.au3> $Test = GuiCreate("My Fake Chat Window", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $Example = GuiCtrlCreateEdit("hello this is my lame example", 50, 30, 290, 230) GuiSetState() While 1 InputBox("Example" , "I Read the Control" , GUICtrlRead($Example)) WEnd Exit Link to comment Share on other sites More sharing options...
testingtest Posted February 19, 2007 Author Share Posted February 19, 2007 bump... wow that went on the second page pretty fast Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 19, 2007 Moderators Share Posted February 19, 2007 No idea what you are asking really... If you want what the InputBox says, you might give it a variable and read the variable. If you want to set the data within the edit, GUICtrlRead() + GUICtrlSetData() If you are reading another application, and want to get the information from that application, you might try ControlGetText(). If none of those are the answer, I truly don't know what you are asking. 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...
testingtest Posted February 19, 2007 Author Share Posted February 19, 2007 No idea what you are asking really... If you want what the InputBox says, you might give it a variable and read the variable.If you want to set the data within the edit, GUICtrlRead() + GUICtrlSetData()If you are reading another application, and want to get the information from that application, you might try ControlGetText().If none of those are the answer, I truly don't know what you are asking.I want to read from another window such as a chat box window. I don't think control get text will work becuase that reads the controls I am guessing. I just want to read text from a certain area unless control get text reads a edit box then I guess it would work ill look into it tomorrow i am a little tired right now. Thanks for posting Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 19, 2007 Moderators Share Posted February 19, 2007 I want to read from another window such as a chat box window. I don't think control get text will work becuase that reads the controls I am guessing. I just want to read text from a certain area unless control get text reads a edit box then I guess it would work ill look into it tomorrow i am a little tired right now. Thanks for postingIs an edit box a control? 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...
rush4hire Posted February 19, 2007 Share Posted February 19, 2007 You better use the Autoit Window Info tool which should have come with your installation of autoit3. If it doesn't give you a control ID for the control you are trying to read, then you might not be able to get the text from the chat client window. You might have to hax the TCP line to the chat client with something like WinPCap or some other packet program.. I started on a similar project awhile back. I wanted to make a bot for the chat room at www.maniatv.com. But I got sick of that chat room since then. Decompilable game code manager for Dark Deeds 6 for Warcraft IIIA web broadcast TiVo like thing.. (this example is for 3abn.org)Finally.. AutoIt Pac-Man Digital Hymn Player Link to comment Share on other sites More sharing options...
testingtest Posted February 19, 2007 Author Share Posted February 19, 2007 (edited) thanks guys i wov you guys [edited] well I tried it and it didn't work I though it was going to work for sure. Ill explain more the script is for www.buzzen.com which is a chatting site. I am making this for my uncle he loves chatting. The control id I got for the edit box was 73496800 and the class name is known as MSNChatRichEdit42 Edited February 19, 2007 by testingtest Link to comment Share on other sites More sharing options...
testingtest Posted February 20, 2007 Author Share Posted February 20, 2007 I am still a bit stumped I tried tellng it to put the text in to my message box but it's as if it can't read the control Link to comment Share on other sites More sharing options...
Bert Posted February 20, 2007 Share Posted February 20, 2007 I suspect the control you are trying to read is a control in a IE window. Look at the IE examples, and that should give you some direction. The Vollatran project  My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
testingtest Posted February 20, 2007 Author Share Posted February 20, 2007 I suspect the control you are trying to read is a control in a IE window. Look at the IE examples, and that should give you some direction.thanks ill look in to that. quick question does internet have controls that can be acessed with autoit or is that only for windows.sorry for being a pain lol Link to comment Share on other sites More sharing options...
Shevilie Posted February 20, 2007 Share Posted February 20, 2007 The controls is for windows.. if your browsing.. look in the IE examples in your helpfile Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
pjotterke Posted February 20, 2007 Share Posted February 20, 2007 try this... Dim $input_1 $input_1 = GUICtrlCreateInput ("B123456Z" , 210, 110 , 190 , 20 , -1 ) Send (""&GuiCtrlRead($input_1)) this have to work you only have to make it in a script. i gues you can do that... 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