ashley Posted December 9, 2008 Share Posted December 9, 2008 ok, well im making this for a friend.... It needs to use a click that does not use he mouse... so control click should work i thing? here is the script... The cords are right it just dont work #include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () GUICreate("Runescape Nbot", 950, 595) $GUIActiveX = GUICtrlCreateObj($oIE, 5, 5, 820, 590) $userinput = GUICtrlCreateInput("Username", 830, 5, 115, 25) $passinput = GUICtrlCreateInput("Password", 830, 35, 115, 25) $Logginbutton = GUICtrlCreateButton("Login", 830, 65 , 115, 25) GUISetState() ;Show GUI _IENavigate ($oIE, "http://www.runescape.com/game.ws?m=1&j=1") ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $Logginbutton ControlClick("Runecape Nbot", "", $oIE , "left", 1, 337, 399) EndSelect WEnd GUIDelete() Exit Thanks Free icons for your programs Link to comment Share on other sites More sharing options...
Developers Jos Posted December 9, 2008 Developers Share Posted December 9, 2008 How did you come to the conclusion that you need to use the IE session handle as the Control for ControlClick? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
youknowwho4eva Posted December 9, 2008 Share Posted December 9, 2008 (edited) The controlID is _IECreateEmbedded ()? Edit: Jos that's two topics now, you beat me on this one though. Edited December 9, 2008 by youknowwho4eva Giggity Link to comment Share on other sites More sharing options...
ashley Posted December 9, 2008 Author Share Posted December 9, 2008 what?i dont get what u meen Free icons for your programs Link to comment Share on other sites More sharing options...
Developers Jos Posted December 9, 2008 Developers Share Posted December 9, 2008 Edit: Jos that's two topics now, you beat me on this one though.The other one didn't have anything to do with "being faster"... just needed to "make a point" in that one. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
youknowwho4eva Posted December 9, 2008 Share Posted December 9, 2008 (edited) You have ControlClick("Runecape Nbot", "", $oIE , "left", 1, 337, 399) The third element is the controlID you have $oIE = _IECreateEmbedded () Edit: Yes Jos but we did say basically the same thing in a round about way. Edited December 9, 2008 by youknowwho4eva Giggity Link to comment Share on other sites More sharing options...
ashley Posted December 9, 2008 Author Share Posted December 9, 2008 So what should it be? Free icons for your programs Link to comment Share on other sites More sharing options...
Developers Jos Posted December 9, 2008 Developers Share Posted December 9, 2008 (edited) what?i dont get what u meenc'mon ashley... you are not trying at all.You have been around long enough to know you need to do some reseach first before posting questions, but seems to resort to these type of posts over and over again. Edited December 9, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
youknowwho4eva Posted December 9, 2008 Share Posted December 9, 2008 (edited) What ever the controlID of the control your trying to click. Use the autoit window info tool. Edit: yea I thought it was kinda a basic question for having 1,024 posts. Edited December 9, 2008 by youknowwho4eva Giggity Link to comment Share on other sites More sharing options...
ashley Posted December 9, 2008 Author Share Posted December 9, 2008 should it be SunAwtCanvas? Free icons for your programs Link to comment Share on other sites More sharing options...
Developers Jos Posted December 9, 2008 Developers Share Posted December 9, 2008 (edited) should it be SunAwtCanvas?Ashley,Look at all the _IE functions and all its examples.Figure out what to do and play with them.Come back when you have something to show.Jos Edited December 9, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ashley Posted December 9, 2008 Author Share Posted December 9, 2008 this is the help fourm isnt it? Well im stuck and i need help? Free icons for your programs Link to comment Share on other sites More sharing options...
Developers Jos Posted December 9, 2008 Developers Share Posted December 9, 2008 (edited) I have just pointed you in the right direction... the ball is in your court. click Edited December 9, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts