Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ChR0NiC on March 24, 2003, 12:54 AM

Title: Auto Update
Post by: ChR0NiC on March 24, 2003, 12:54 AM
I am trying to make a bot that auto updates like Shadow Bot and I have no idea how to do that  :P so if anyone could possibly help me, that would be great.
Title: Re:Auto Update
Post by: SiMi on March 24, 2003, 09:37 AM
its not to hard chr0nic, you can use something like inet to connect and see if there is a download and then use winsocks, or you can use winsocks on both ways.if you want to open the exe after dling it, i suggesr you learn api calls.
Title: Re:Auto Update
Post by: haZe on March 24, 2003, 02:21 PM
Or he could just use Shell? :-X
Title: Re:Auto Update
Post by: SNiFFeR on March 24, 2003, 03:27 PM
or inet, to check if an update is needed then, a shell execute
Title: Re:Auto Update
Post by: ChR0NiC on March 24, 2003, 07:29 PM
ok im gonna use inet, thx for the help.
Title: Re:Auto Update
Post by: ChR0NiC on March 24, 2003, 07:31 PM
ok um i didnt get it working, but you could really help me instead of insulting me SiMi. Everyone starts out as a newb in bots at sometime, well except Cuphead.
Title: Re:Auto Update
Post by: SiMi on March 24, 2003, 07:55 PM
i insulted you? hrm i thought i was helping you, if you think that was a insult then there must be something wrong with you.
Title: Re:Auto Update
Post by: SNiFFeR on March 25, 2003, 12:12 PM
Alright, I'll help you.
(This is for the auto update)
First, Declare what shellexecute is going to do

Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Next, you would tell it do go to a location, on the web. If you want it to auto update you must link it directly to where the .zip is. For example -

ShellExecute Me.hWnd, "open", "http://www.innerz.com/bot.zip", "", "", 5
Title: Re:Auto Update
Post by: MrRaza on March 25, 2003, 02:17 PM
Topic's about INET have been discussed here before, Click Here (http://forum.valhallalegends.com/phpbbs/index.php?board=17;action=search) to find your anwser. It's not as hard as you think...
Title: Re:Auto Update
Post by: Banana fanna fo fanna on March 25, 2003, 06:21 PM
Or he could have searched in the first place.