Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 09:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Script Error

Discussion on Script Error within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
.S1mpl3*'s Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 192
Received Thanks: 46
Post Script Error

Hey Com sry falls ich euch störe aber ich komme einfach nicht weiter ._.
Ich möchte einen Bot schreiben der chatten und laufen beinhaltet.Ich habe es so gemacht dass man die Koordinaten in eine InputBox schreibt,und diese ausgelesen wird. Wenn ich den Bot starte,funktioniert einfach nichts.. Hier der Code:
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$OnlineBot = GUICreate("Automatic Online-Bot by .S1mpl3*", 629, 232, 192, 114)
$btn_credits = GUICtrlCreateButton("Credits", 24, 192, 129, 25, $WS_GROUP)
GUICtrlSetFont(-1, 18, 400, 0, "JasmineUPC")
GUICtrlSetBkColor(-1, 0x3A6EA5)
GUICtrlSetCursor (-1, 0)
$g_walk = GUICtrlCreateGroup("Walk", 16, 8, 297, 145)
GUICtrlSetFont(-1, 18, 400, 0, "JasmineUPC")
$co_x = GUICtrlCreateInput("", 32, 56, 121, 33)
GUICtrlSetCursor (-1, 5)
$lb_x = GUICtrlCreateLabel("X", 88, 24, 16, 32)
GUICtrlSetFont(-1, 20, 400, 0, "JasmineUPC")
$lb_y = GUICtrlCreateLabel("Y", 232, 24, 14, 29)
$co_y = GUICtrlCreateInput("", 176, 56, 121, 33)
GUICtrlSetCursor (-1, 5)
$co_x1 = GUICtrlCreateInput("", 32, 103, 121, 33)
GUICtrlSetCursor (-1, 5)
$co_y1 = GUICtrlCreateInput("", 180, 101, 121, 33)
GUICtrlSetCursor (-1, 5)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$g_chat = GUICtrlCreateGroup("Chat", 362, 6, 257, 177)
GUICtrlSetFont(-1, 18, 400, 0, "JasmineUPC")
$co_bar_x = GUICtrlCreateInput("", 418, 38, 185, 33)
GUICtrlSetCursor (-1, 5)
$lb_bar_x = GUICtrlCreateLabel("X:", 386, 38, 21, 32)
GUICtrlSetFont(-1, 20, 400, 0, "JasmineUPC")
$lb_bar_y = GUICtrlCreateLabel("Y:", 384, 96, 19, 29)
$co_bar_y = GUICtrlCreateInput("", 420, 90, 185, 33)
GUICtrlSetCursor (-1, 5)
$lb_text = GUICtrlCreateLabel("Text:", 376, 136, 37, 29)
$text = GUICtrlCreateInput("", 418, 131, 193, 33)
GUICtrlSetCursor (-1, 5)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$btn_start = GUICtrlCreateButton("Start Bot", 300, 193, 177, 25, $WS_GROUP)
GUICtrlSetFont(-1, 18, 400, 0, "JasmineUPC")
GUICtrlSetBkColor(-1, 0x3A6EA5)
GUICtrlSetCursor (-1, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		 Case $btn_credits
			MsgBox(0, "Credits", "All Credits to .S1mpl3*")
		 Case $btn_start
			_bot()
	EndSwitch
WEnd

Func _bot()
   While True
	  Sleep(4000)
	  _walk()
	  Sleep(30000)
	  _walk1()
	  Sleep(30000)
	  _chat()
	  Sleep(26000)
   WEnd
EndFunc

Func _walk()
   MouseMove($co_x, $co_y)
   MouseClick("left")
EndFunc

Func _walk1()
   MouseMove($co_x1, $co_y1)
   MouseClick("left")
EndFunc

Func _chat()
   MouseMove($co_bar, $co_bar1)
   MouseClick("left")
   Send($text)
   Send("{Enter}")
EndFunc
.S1mpl3* is offline  
Old 11/30/2013, 15:09   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
GUICtrlRead()
KDeluxe is offline  
Thanks
1 User
Old 11/30/2013, 15:11   #3

 
.S1mpl3*'s Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 192
Received Thanks: 46
Quote:
Originally Posted by KDeluxe View Post
GUICtrlRead()
Hab ich beim nachgucken auch gemerkt^^
.S1mpl3* is offline  
Old 12/01/2013, 09:20   #4

 
xcyancali's Avatar
 
elite*gold: 155
The Black Market: 1057/0/0
Join Date: Jul 2012
Posts: 24,491
Received Thanks: 2,568
Quote:
Originally Posted by .S1mpl3* View Post
Hab ich beim nachgucken auch gemerkt^^
Du oder ich ?
xcyancali is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Script Error[Ger]
07/07/2013 - S4 League - 5 Replies
Hallo Com, also ich habe einen Trainer versucht zu programmieren,doch als ich die Exe dann ausführen wollte, kam ein Error. http://www.fotos-hochladen.net/view/errorvu82dj17 ze.png Die Datei ist im Anhang sowie der Script. Bitte helft mir.
What the error for script ?
09/08/2012 - AutoIt - 2 Replies
Sorry , so good , thanks :)
hen script error
11/30/2011 - Metin2 Private Server - 0 Replies
delete plz.
Impulse script error
09/16/2011 - Dekaron - 4 Replies
I am trying to make some scripts with Impulse Resurgence (Kabbot) and keep getting errors. The script works for a few minutes then stops, getting the error about the bot cannot run, an error would cause the bot to crash... The script is this: u, iscol;<color code>;<x-coordinate>;<y-coordinate> , 1,2,3,4,5,6,7, endis;l, the same one from the TUT. for some reason it stops working.
I need help with this PHP script error
10/02/2010 - Dekaron Private Server - 10 Replies
this is the error im getting can neone point me in the right direction?? Warning: include(deadfront.php) : failed to open stream: No such file or directory in /dekaron/index.php on line 329 Warning: include(deadfront.php) : failed to open stream: No such file or directory in /dekaron/index.php on line 329 Warning: include() : Failed opening 'deadfront.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /dekaron/index.php on line 329



All times are GMT +1. The time now is 09:53.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.