idaH Posted July 13, 2011 Share Posted July 13, 2011 Hello ,, The controlclick not work for me When i open the sicrpt it say there is a error expandcollapse popupglobal $Paused global $cnt = 1 global $z = 0 HotKeySet("{F9}", "Terminate") HotKeySet("{F7}", "TogglePause") $timeInput = InputBox("Timer Settings", "How many second delay?", "3") $time = $timeInput*1000 Opt("CaretCoordMode", 2) Opt("MouseCoordMode", 2) Sleep(3000) MouseClick("",1271,387,1,0) Sleep(5000) While 1 ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,253,191) Sleep(1000) ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346) Sleep(5000) ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346) Sleep(5000) ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346) Sleep(5000) ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346) Sleep(5000) ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346) Sleep(5000) ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346) Sleep(5000) ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346) Sleep(5000) ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,464,156) Sleep(1000) ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,358,117) Sleep(1000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55) Sleep(5000) ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,88,118) Sleep(1000) WEnd Func TogglePause() ; the pause function $Paused = NOT $Paused While $Paused ToolTip('Please press "F8" to resume!',600,200,"",1,2) sleep(1000) WEnd ToolTip("") EndFunc Func Terminate() ; the exit function Exit 0 EndFunc thats my sicrpt , and when i open it it said is there a error . Link to comment Share on other sites More sharing options...
monoscout999 Posted July 13, 2011 Share Posted July 13, 2011 (edited) ???? ???? ????? - ????????What did you expect from that? This is the syntax error problem ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,88,118) Left must have "" ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","","Left",1,88,118) Check the examples first, and look when SciTe Tells you that is some error usualy shows you this way G:\Agustin\autoit\test.au3(23,74) : ERROR: syntax error ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^" this mean that the error is in the character above "^" EDITED some misspelled Edited July 13, 2011 by monoscout999 Link to comment Share on other sites More sharing options...
idaH Posted July 13, 2011 Author Share Posted July 13, 2011 Thats is a language SCiTE not know it ,, (not enlgish ) see thats from the Autoit Info expandcollapse popup>>>> Window <<<< Title: Øياة قاتل مأجور - الجرائم - Mozilla Firefox Class: MozillaUIWindowClass Position: -8, -8 Size: 1296, 1010 Style: 0x15CF0000 ExStyle: 0x00000100 Handle: 0x00B60230 >>>> Control <<<< Class: MozillaWindowClass Instance: 2 ClassnameNN: MozillaWindowClass2 Name: Advanced (Class): [CLASS:MozillaWindowClass; INSTANCE:2] ID: Text: Position: 0, 109 Size: 1280, 841 ControlClick Coords: 447, 669 Style: 0x56000000 ExStyle: 0x00000000 Handle: 0x0037029C >>>> Mouse <<<< Position: 447, 800 Cursor ID: 0 Color: 0x000000 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<< IDM DwnlPanelCtrl Window Link to comment Share on other sites More sharing options...
idaH Posted July 13, 2011 Author Share Posted July 13, 2011 up up ... ! Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 13, 2011 Share Posted July 13, 2011 Øياة قاتل مأجور - الجرائمThe life of a hitman - CrimesForum Rules - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
idaH Posted July 13, 2011 Author Share Posted July 13, 2011 so i'm translate it to english ?? --- i'm read the rules yesterday , is there any wrong in my topic ? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 13, 2011 Share Posted July 13, 2011 Well you shouldn't bump your own threads within 24 hours, you shouldn't discuss anything in a new thread because another thread about the same thing has been closed, and you should learn how to play a damn game yourself. - Bruce /*somdcomputerguy */Â If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
idaH Posted July 13, 2011 Author Share Posted July 13, 2011 error .. AutoIt Error Line11 (File "C:\Users\Frohar\Desktop\Autoit\idaH.au3"): ControlClick("The life of a hitman - Crimes - Mozilla Firefox","","",Left,1,1271,387) ControlClick("The life of hitman - Crimes - Mozilla Firefox","","",Left^ERROR Error: Missing separator character after keyword. Link to comment Share on other sites More sharing options...
monoscout999 Posted July 13, 2011 Share Posted July 13, 2011 Is not in the forum rules, but is in the wiki FAQ Link to wiki FAQUse the class instead the windows name.. this wayControlClick("CLASS:MozillaUIWindowClass","","","Left",1,536,346)You also can store the window handle and use it later many times... this other way.global $MozzilaHNDL = WinGetHandle("CLASS:MozillaUIWindowClass")...Then you write this insteadControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Link to comment Share on other sites More sharing options...
monoscout999 Posted July 13, 2011 Share Posted July 13, 2011 (edited) Two Things....1 Automating game BOTs is forbiden in this forum.2 i already told you that the Left word inside the function must have quotes and you didn`t read it.... see????? "Left" Edited July 13, 2011 by monoscout999 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 13, 2011 Share Posted July 13, 2011 monoscout999 already gave you an answer, so I guess you should learn how to read as well.In case you're really daft, here you go again,Left must have "" - Bruce /*somdcomputerguy */Â If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
idaH Posted July 13, 2011 Author Share Posted July 13, 2011 Two Things....1 Automating game BOTs is forbiden in this forum.2 i already told you that the Left word inside the function must have quotes and you didn`t read it.... see????? "Left"sorry am not see your post .. i'll try now and tell you whats happendthanks .. monoscout999 already gave you an answer, so I guess you should learn how to read as well.In case you're really daft, here you go again,i'll try .. Link to comment Share on other sites More sharing options...
idaH Posted July 13, 2011 Author Share Posted July 13, 2011 am not recive any error , but not work .. ! Link to comment Share on other sites More sharing options...
monoscout999 Posted July 13, 2011 Share Posted July 13, 2011 because ??????????? try my another answer.... i fell bad when the users dont read the whole answers that we gave him Link to comment Share on other sites More sharing options...
idaH Posted July 13, 2011 Author Share Posted July 13, 2011 because ??????????? try my another answer.... i fell bad when the users dont read the whole answers that we gave him i'm trying your 2 answers ! see expandcollapse popupglobal $Paused global $cnt = 1 global $z = 0 HotKeySet("{F9}", "Terminate") HotKeySet("{F7}", "TogglePause") $timeInput = InputBox("Timer Settings", "How many second delay?", "3") $time = $timeInput*1000 global $MozzilaHNDL = WinGetHandle("CLASS:MozillaUIWindowClass") Sleep(3000) ControlClick("CLASS:MozillaUIWindowClass","","","Left",1,1271,387) Sleep(5000) While 1 ControlClick($MozzilaHNDL,"","","Left",1,253,191) Sleep(1000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,536,346) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,464,156) Sleep(1000) ControlClick($MozzilaHNDL,"","","Left",1,358,117) Sleep(1000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,98,55) Sleep(5000) ControlClick($MozzilaHNDL,"","","Left",1,88,118) Sleep(1000) WEnd Func TogglePause() ; the pause function $Paused = NOT $Paused While $Paused ToolTip('Please press "F8" to resume!',600,200,"",1,2) sleep(1000) WEnd ToolTip("") EndFunc Func Terminate() ; the exit function Exit 0 EndFunc Link to comment Share on other sites More sharing options...
monoscout999 Posted July 13, 2011 Share Posted July 13, 2011 sorry my error is this way.global $MozzilaHNDL = WinGetHandle("[CLASS:MozillaUIWindowClass]")with brackets "[]" Link to comment Share on other sites More sharing options...
idaH Posted July 14, 2011 Author Share Posted July 14, 2011 thanks worked !! but if there a to click on a button i choose it , and i can to open another thing ,, and the bot working ( open firefox and game ) .. Link to comment Share on other sites More sharing options...
idaH Posted July 14, 2011 Author Share Posted July 14, 2011 up up >>> Link to comment Share on other sites More sharing options...
monoscout999 Posted July 14, 2011 Share Posted July 14, 2011 (edited) up up >>> Read the forum rules. The best game BOT ever and forever(it works for every game you want)And up up >>> read this again... -.- you don`t like to read, don`t you?Link to wiki FAQUse proper English.Next time i will report you... you don`t read anything that others post to you, also you don`t make any effort to make you self understeable. Edited July 14, 2011 by monoscout999 Link to comment Share on other sites More sharing options...
idaH Posted July 14, 2011 Author Share Posted July 14, 2011 ok man thanks for that but if there a way or no ? Link to comment Share on other sites More sharing options...
Recommended Posts