Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    Drone_Master's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    I got this error

    Code:
    >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Defcon5\Downloads\wot\Wot_Bot.au3"
    C:\Users\Defcon5\Downloads\wot\Wot_Bot.au3 (10) : ==> Error in expression.:
    Until Not
    Until ^ ERROR
    >Exit code: 1    Time: 1.305
    While i just copiëd the code from your post and editted only the file location further nothing.
    What just went wrong?

    The code
    Code:
    HotKeySet("{f12}", "finished")
    
    Run("F:\-- Games --\World_of_Tanks\WOTLauncher", "F:\-- Games --\World_of_Tanks") ;Runs the program, edit to your computer's path
    $k = 0
    $i = 0
    Do
    	$i = $i + 1
    	Sleep(1000)
    	PixelSearch(1250, 830, 1280, 850, 0x770002)
    Until Not 
     @error
     Or $i = 120
    Sleep(500)
    MouseClick("Left", 1266, 837,10) ; Press Start or Play from the launcher
    Sleep(5000)
    MouseClick("Left", 1266, 837,10)
    
    $i = 0
    Do
    	$i = $i + 1
    	WinActivate("W.o.T. Client")
    	Sleep(1000)
    	PixelSearch(947, 738, 967, 758, 0x42120B); Logs you in
    Until Not 
     @error
     Or $i = 120
    WinMove("W.o.T. Client", "", 0, 0) ; Sets coordinates to 0,0 so mouse points are now universal aka no need to change any more coordinates
    Sleep(1000)
    MouseClick("Left", 512, 569, 10)
    Sleep(5000)
    MouseClick("Left", 512, 569, 10)
    While 1
    	$k = $k + 1
    	if ($k > 1) Then
    		restart()
    	EndIf
    	$i = 0
    	Do
    		$i = $i + 1
    		Sleep(1000);sss;sssssss
    		PixelSearch(504, 54, 524, 74, 0xC11E1F)
    	Until Not 
     @error
     Or $i = 180
    	Sleep(1000)
    	MouseClick("Left", 502, 75,10)
    	Sleep(5000)
    	MouseClick("Left", 502, 75,10)
    
    	$i = 0
    	Do
    		$i = $i + 1
    		Sleep(1000)
    		PixelSearch(504, 54, 524, 74, 0xC11E1F)
    	Until 
     @error
     Or $i = 180
    	Sleep(1000)
    	MouseClick("Left", 502, 75,10)
    	Sleep(5000)
    	MouseClick("Left", 502, 75,10)
    	Do
    		$random = Random(1,20,1)
    		if ($random = 1 or $random = 5) Then
    			Send("{s down}")
    		EndIf
    		if ($random = 2) Then
    			Send("{d down}")
    		EndIf
    		if ($random = 3 or $random = 6) Then
    			Send("{w down}")
    		EndIf
    		if ($random = 4) Then
    			Send("{a down}")
    		EndIf
    		$i = $i + 1
    		sleep(100)
    		Send("{esc}")
    		sleep(100)
    		Send("{ENTER}")
    		Sleep(800)
    		Send("{a up}")
    		Send("{w up}")
    		Send("{d up}")
    		Send("{s up}")
    		PixelSearch(504, 54, 524, 74, 0xC11E1F)
    	Until Not 
     @error
     Or $i = 1260
    
    WEnd
    
    
    Func finished()
    	ProcessClose("WOTLauncher.exe")
    	ProcessClose("WorldOfTanks.exe")
    	Exit
    EndFunc   ;==>finished
    
    Func restart()
    	ProcessClose("WOTLauncher.exe")
    	ProcessClose("WorldOfTanks.exe")
    	Sleep(10000)
    	Run("F:\-- Games --\World_of_Tanks\WOTLauncher", "F:\-- Games --\World_of_Tanks")
    
    	$i = 0
    	Do
    		$i = $i + 1;sssssssssssssss
    		Sleep(1000)
    		PixelSearch(1250, 830, 1280, 850, 0x770002)
    	Until Not 
     @error
     Or $i = 120
    	Sleep(500)
    	MouseClick("Left", 1266, 837,10)
    	Sleep(5000)
    	MouseClick("Left", 1266, 837,10)
    	$i = 0
    	Do
    		$i = $i + 1
    		WinActivate("W.o.T. Client")
    		Sleep(1000)
    		PixelSearch(947, 738, 967, 758, 0x42120B)
    	Until Not 
     @error
     Or $i = 120
    	WinMove("W.o.T. Client", "", 0, 0)
    	Sleep(1000)
    	MouseClick("Left", 512, 569, 10)
    	Sleep(5000)
    	MouseClick("Left", 512, 569, 10)
    	Return
    EndFunc   ;==>restart
    Code:
    >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Defcon5\Downloads\wot\Wot_Bot.au3"
    C:\Users\Defcon5\Downloads\wot\Wot_Bot.au3 (10) : ==> Error in expression.:
    Until Not
    Until ^ ERROR
    >Exit code: 1    Time: 1.305

  2. #17
    set-svk's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    5
    My Mood
    Relaxed
    Hard to say Drone_Master.
    The code is quite old, anything could go wrong

  3. #18
    BelovedMan's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    i will try this out maybe it may work for me.

  4. #19
    peenueViolueP's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    Trynidad i Tobago
    Posts
    0
    Reputation
    10
    Thanks
    0

    gatunek sredniego, koczowniczego korzenia hydrologicznego

    Sylwetka
    Cechy typu hotujf

  5. #20
    Maxmanus96's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    how to use this code (source code) plz help ????

  6. #21
    Maxmanus96's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    plz help, tutorial video etc. help

  7. #22
    Maxmanus96's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    plz help how to use ?(i know thats for c++)

  8. #23
    jamesst20's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    We shouldn't really botter with Autoit because I real good hack for Wot cannot be done in Autoit even thought Autoit is a stronger language then everyone would think

  9. #24
    alex3991's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    hpoe it still works

  10. #25
    bjkd's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    5
    My Mood
    Hungover
    I need help running this code, could someone pm me and help
    Thank you

  11. #26
    YeeD's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Thanks!,worksss!

  12. #27
    jacekk5's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Thank You !!

Page 2 of 2 FirstFirst 12