Bot Updaten

04/08/2009 21:51 Zabrus#1
hey,

wollt meine bots für ebay rdy machen ^^

jetz frag ich mich wie das mit dem updaten geht...
04/08/2009 22:07 kknb#2
oha die armen ebay käufer...
lad dir ne txt datei auf nen webserver wo ne revisionsnummer drinsteht, lass die von deinem bot vergleichen, wenn die nummer <> der nummer ist die im bot angegeben wurde ist nen update verfügbar.
04/08/2009 22:21 Syc0n#3
verlesen, oder meinst du, wie man die Update.ini immer wieder erneuert?

Quote:
Originally Posted by Zabrus View Post
müsste dieses "MoveTo" im scribt farbig sein ? bei mir isse nämlich normal schwarz
Mu HAHA
04/08/2009 22:58 cab_killer#4
Quote:
Originally Posted by Zabrus View Post
hey,

wollt meine bots für ebay rdy machen ^^

jetz frag ich mich wie das mit dem updaten geht...
Ist das dein ernst ?
Du hast jetzt gerade mal ein Bot mit not zusammen gewürfelt und willst sie gleich bei ebay verkaufen ?
Meinst du das ist so richtig ?

------------

Ich habe dazu aber auch mal eine Frage.
Ich habe meine Update.ini auf meinen server geladen und bla bla bla
Naja wenn ich bei mir auf Update klicke läd er sie zwar runter aber wenn ich mir die mal angucke sieht das nicht mehr Original aus sonder es ist alles in 3 Zeilen geschrieben und nicht mehr ordentlich Strukturiert.
Wo liegt mein Fehler ?

MFG
04/09/2009 00:19 Frutex#5
Quote:
Originally Posted by Zabrus View Post
hey,

wollt meine bots für ebay rdy machen ^^

jetz frag ich mich wie das mit dem updaten geht...
Also, ja mein Post muss sein :o
Ich verstehe nicht ganz ich meine wir alle haben ja deine Source,
und wie ich sehe hast du nicht mal ein GUI?!
Nun ja an deiner Stelle würde ich noch Mind 2 Monate warten bis deine Bots eBay ready sind, weil das was du da hast ist nicht das wahre..
Nun ja ich hoffe du wirst sie nicht auf eBay stellen nun ja ... schau dir erstmal an wie ein GUI geht...
04/09/2009 00:26 blauwiggle#6
Quote:
Originally Posted by Zabrus View Post
hey,

wollt meine bots für ebay rdy machen ^^

jetz frag ich mich wie das mit dem updaten geht...
Den da?
[Only registered and activated users can see links. Click Here To Register...]

Wie willste denn den in Umlauf bringen :confused: Jedem 10€ zahlen, damit er benutzt wird :confused: :rolleyes:

BTT: Textdatei von einer festen Quelle laden und den Inhalt überprüfen.
04/09/2009 09:29 Zabrus#7
ne quatsch xDDD

natürlich verkauf ich den ned so ^^

hatte vor diesen bot erstmal perfekt zum laufen zu bringen :-p

mit min. 1 monat arbeit hab ich da schon noch gerechnet

und ein GUI hab ich auchschon gemacht ...was ich aber noch lernen muss iss den gui in den bot einzubaun
04/09/2009 09:45 Specter cason#8
Quote:
Originally Posted by Zabrus View Post
ne quatsch xDDD

natürlich verkauf ich den ned so ^^

hatte vor diesen bot erstmal perfekt zum laufen zu bringen :-p

mit min. 1 monat arbeit hab ich da schon noch gerechnet

und ein GUI hab ich auchschon gemacht ...was ich aber noch lernen muss iss den gui in den bot einzubaun
programier erstmal nen bot der richtig läuft und probier des mit ebay und update erst gaaaaaaaaaaaaaaaaaaaaaaaaaanz viel später...

BTT: gibts ne möglichkeit ne exe von nem FTP herunterzuladen? also über ne updatefunktion?
04/09/2009 10:52 xSharkoonX#9
also wenn du dir einfach mal den source vom arctic bot angeguckt hättest , wüsstest wie sowas geht aber man fragt erstmal... du hättest dir also den thread sparen können wenn du dich im forum umgeguckt hättest

guck dir die source an da gibt es net update() func ganz am anfang glaub sogar
04/09/2009 11:29 bingbongman#10
InetGet()
04/09/2009 12:11 buFFy!#11
Code:
;===============================================================================
;
; Function Name:    _FTPOpen()
; Description:      Opens an FTP session.
; Parameter(s):     $s_Agent      	- Random name. ( like "myftp" )
;                   $l_AccessType 	- I dont got a clue what this does.
;                   $s_ProxyName  	- ProxyName.
;                   $s_ProxyBypass	- ProxyByPasses's.
;                   $l_Flags       	- Special flags.
; Requirement(s):   DllCall, wininet.dll
; Return Value(s):  On Success - Returns an indentifier.
;                   On Failure - 0  and sets @ERROR
; Author(s):        Wouter van Kesteren.
;
;===============================================================================

Func _FTPOpen($s_Agent, $l_AccessType = 1, $s_ProxyName = '', $s_ProxyBypass = '', $l_Flags = 0)
	
	Local $ai_InternetOpen = DllCall('wininet.dll', 'long', 'InternetOpen', 'str', $s_Agent, 'long', $l_AccessType, 'str', $s_ProxyName, 'str', $s_ProxyBypass, 'long', $l_Flags)
	If @error OR $ai_InternetOpen[0] = 0 Then
		SetError(-1)
		Return 0
	EndIf
		
	Return $ai_InternetOpen[0]
	
EndFunc ;==> _FTPOpen()

;===============================================================================
;
; Function Name:    _FTPConnect()
; Description:      Connects to an FTP server.
; Parameter(s):     $l_InternetSession	- The Long from _FTPOpen()
;                   $s_ServerName 		- Server name/ip.
;                   $s_Username  		- Username.
;                   $s_Password			- Password.
;                   $i_ServerPort  		- Server port ( 0 is default (21) )
;					$l_Service			- I dont got a clue what this does.
;					$l_Flags			- Special flags.
;					$l_Context			- I dont got a clue what this does.
; Requirement(s):   DllCall, wininet.dll
; Return Value(s):  On Success - Returns an indentifier.
;                   On Failure - 0  and sets @ERROR
; Author(s):        Wouter van Kesteren
;
;===============================================================================

Func _FTPConnect($l_InternetSession, $s_ServerName, $s_Username, $s_Password, $i_ServerPort = 0, $l_Service = 1, $l_Flags = 0, $l_Context = 0)
	
	Local $ai_InternetConnect = DllCall('wininet.dll', 'long', 'InternetConnect', 'long', $l_InternetSession, 'str', $s_ServerName, 'int', $i_ServerPort, 'str', $s_Username, 'str', $s_Password, 'long', $l_Service, 'long', $l_Flags, 'long', $l_Context)
	If @error OR $ai_InternetConnect[0] = 0 Then
		SetError(-1)
		Return 0
	EndIf
			
	Return $ai_InternetConnect[0]
	
EndFunc ;==> _FTPConnect()

;===============================================================================
;
; Function Name:    _FTPPutFile()
; Description:      Puts an file on an FTP server.
; Parameter(s):     $l_FTPSession	- The Long from _FTPConnect()
;                   $s_LocalFile 	- The local file.
;                   $s_RemoteFile  	- The remote Location for the file.
;                   $l_Flags		- Special flags.
;                   $l_Context  	- I dont got a clue what this does.
; Requirement(s):   DllCall, wininet.dll
; Return Value(s):  On Success - 1
;                   On Failure - 0
; Author(s):        Wouter van Kesteren
;
;===============================================================================

Func _FTPPutFile($l_FTPSession, $s_LocalFile, $s_RemoteFile, $l_Flags = 0, $l_Context = 0)

	Local $ai_FTPPutFile = DllCall('wininet.dll', 'int', 'FtpPutFile', 'long', $l_FTPSession, 'str', $s_LocalFile, 'str', $s_RemoteFile, 'long', $l_Flags, 'long', $l_Context)
	If @error OR $ai_FTPPutFile[0] = 0 Then
		SetError(-1)
		Return 0
	EndIf
	
	Return $ai_FTPPutFile[0]
	
EndFunc ;==> _FTPPutFile()

;===============================================================================
;
; Function Name:    _FTPDelFile()
; Description:      Delete an file from an FTP server.
; Parameter(s):     $l_FTPSession	- The Long from _FTPConnect()
;                   $s_RemoteFile  	- The remote Location for the file.
; Requirement(s):   DllCall, wininet.dll
; Return Value(s):  On Success - 1
;                   On Failure - 0
; Author(s):        Wouter van Kesteren
;
;===============================================================================

Func _FTPDelFile($l_FTPSession, $s_RemoteFile)
	
	Local $ai_FTPPutFile = DllCall('wininet.dll', 'int', 'FtpDeleteFile', 'long', $l_FTPSession, 'str', $s_RemoteFile)
	If @error OR $ai_FTPPutFile[0] = 0 Then
		SetError(-1)
		Return 0
	EndIf
	
	Return $ai_FTPPutFile[0]
	
EndFunc ;==> _FTPDelFile()

;===============================================================================
;
; Function Name:    _FTPRenameFile()
; Description:      Renames an file on an FTP server.
; Parameter(s):     $l_FTPSession	- The Long from _FTPConnect()
;                   $s_Existing 	- The old file name.
;                   $s_New  		- The new file name.
; Requirement(s):   DllCall, wininet.dll
; Return Value(s):  On Success - 1
;                   On Failure - 0
; Author(s):        Wouter van Kesteren
;
;===============================================================================

Func _FTPRenameFile($l_FTPSession, $s_Existing, $s_New)
	
	Local $ai_FTPRenameFile = DllCall('wininet.dll', 'int', 'FtpRenameFile', 'long', $l_FTPSession, 'str', $s_Existing, 'str', $s_New)
	If @error OR $ai_FTPRenameFile[0] = 0 Then
		SetError(-1)
		Return 0
	EndIf
	
	Return $ai_FTPRenameFile[0]
	
EndFunc ;==> _FTPRenameFile()

;===============================================================================
;
; Function Name:    _FTPMakeDir()
; Description:      Makes an Directory on an FTP server.
; Parameter(s):     $l_FTPSession	- The Long from _FTPConnect()
;                   $s_Remote 		- The file name to be deleted.
; Requirement(s):   DllCall, wininet.dll
; Return Value(s):  On Success - 1
;                   On Failure - 0
; Author(s):        Wouter van Kesteren
;
;===============================================================================

Func _FTPMakeDir($l_FTPSession, $s_Remote)
	
	Local $ai_FTPMakeDir = DllCall('wininet.dll', 'int', 'FtpCreateDirectory', 'long', $l_FTPSession, 'str', $s_Remote)
	If @error OR $ai_FTPMakeDir[0] = 0 Then
		SetError(-1)
		Return 0
	EndIf
	
	Return $ai_FTPMakeDir[0]
	
EndFunc ;==> _FTPMakeDir()

;===============================================================================
;
; Function Name:    _FTPDelDir()
; Description:      Delete's an Directory on an FTP server.
; Parameter(s):     $l_FTPSession	- The Long from _FTPConnect()
;                   $s_Remote 		- The Directory to be deleted.
; Requirement(s):   DllCall, wininet.dll
; Return Value(s):  On Success - 1
;                   On Failure - 0
; Author(s):        Wouter van Kesteren
;
;===============================================================================

Func _FTPDelDir($l_FTPSession, $s_Remote)
	
	Local $ai_FTPDelDir = DllCall('wininet.dll', 'int', 'FtpRemoveDirectory', 'long', $l_FTPSession, 'str', $s_Remote)
	If @error OR $ai_FTPDelDir[0] = 0 Then
		SetError(-1)
		Return 0
	EndIf
		
	Return $ai_FTPDelDir[0]
	
EndFunc ;==> _FTPDelDir()

;===============================================================================
;
; Function Name:    _FTPClose()
; Description:      Closes the _FTPOpen session.
; Parameter(s):     $l_InternetSession	- The Long from _FTPOpen()
; Requirement(s):   DllCall, wininet.dll
; Return Value(s):  On Success - 1
;                   On Failure - 0
; Author(s):        Wouter van Kesteren
;
;===============================================================================

Func _FTPClose($l_InternetSession)
	
	Local $ai_InternetCloseHandle = DllCall('wininet.dll', 'int', 'InternetCloseHandle', 'long', $l_InternetSession)
	If @error OR $ai_InternetCloseHandle[0] = 0 Then
		SetError(-1)
		Return 0
	EndIf
	
	Return $ai_InternetCloseHandle[0]
	
EndFunc ;==> _FTPClose()
04/09/2009 12:31 Specter cason#12
Quote:
Originally Posted by xSharkoonX View Post
also wenn du dir einfach mal den source vom arctic bot angeguckt hättest , wüsstest wie sowas geht aber man fragt erstmal... du hättest dir also den thread sparen können wenn du dich im forum umgeguckt hättest

guck dir die source an da gibt es net update() func ganz am anfang glaub sogar
danke dir geht perfekt
04/10/2009 09:16 NBA#13
ef_hacks, ist das eine NoMadFTP.au3? :D

Naja, mit InetGet() + Bplaced-FTP oder aehnlich geht das ganz gut...
04/10/2009 09:55 buFFy!#14
Eigentlich eine 'nur'_Ftp.au3 ^^

Btw. hier mal ne 'nice' Update Funktion.

Code:
Func Update()
	#Region ### START Koda GUI section ### Form=
	$Form1 = GUICreate("Update", 202, 134, 0, 0)
	$Group1 = GUICtrlCreateGroup("Please Choose", 8, 8, 185, 81)
	$Radio_Update2 = GUICtrlCreateRadio("Methode 2", 40, 56, 113, 17)
	$Radio_Update1 = GUICtrlCreateRadio("Methode 1", 40, 32, 113, 17)
	GUICtrlSetState(-1, $GUI_CHECKED)
	GUICtrlCreateGroup("", -99, -99, 1, 1)
	$HelpUpdate = GUICtrlCreateButton("???", 8, 96, 75, 25, 0)
	$UpdateGo = GUICtrlCreateButton("Go", 120, 96, 75, 25, 0)
	GUISetState(@SW_SHOW)
	#EndRegion ### END Koda GUI section ###

	While 1
		$nMsg = GUIGetMsg()
		Switch $nMsg
			Case $GUI_EVENT_CLOSE
				GUIDelete($Form1)
				ExitLoop
			Case $UpdateGo
				If GUICtrlRead($Radio_Update1) = $GUI_CHECKED Then
					MsgBox(0x40, "_Message", "Bitte nach 'Großer Tempel des Balthasar'stellen!")
					$update_check = MsgBox(52, "_Message", "Stehen sie im 'Großen Tempel des Balthasar'?")
					If $update_check = 6 Then
						FileDelete("update.ini")
						Run("update.exe")
						If (@error) Then MsgBox(0x10, "_Error", "update.exe not found <>")
					ElseIf $update_check = 7 Then
						MsgBox(0x10, "_Error", "Bitte nach 'Großer Tempel des Balthasar'stellen!")
					EndIf
				ElseIf GUICtrlRead($Radio_Update2) = $GUI_CHECKED Then
					$Update = InetGet("http://nbarena.bplaced.net/tools/Tools%20von%20Dunham/update.ini", @ScriptDir & "/data/update.ini")

					While @InetGetActive
						TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
						Sleep(250)
					WEnd
					MsgBox(0, "Heruntergeladen:", @InetGetBytesRead & " Bytes")
					If $Update = Not 0 Then
						MsgBox(0, "Update", "Update erfolgreich durchgeführt")
					Else
						MsgBox(0x40, "Update - Error", "File Not Found.. Please try again later.")
					EndIf
				EndIf
			Case $HelpUpdate
				Run("_Help.exe")
		EndSwitch
	WEnd
EndFunc   ;==>Update