• Welcome to Valhalla Legends Archive.
 

Auto Update

Started by ChR0NiC, March 24, 2003, 12:54 AM

Previous topic - Next topic

ChR0NiC

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.

SiMi

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.

haZe

Or he could just use Shell? :-X

SNiFFeR

#3
or inet, to check if an update is needed then, a shell execute

ChR0NiC

ok im gonna use inet, thx for the help.

ChR0NiC

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.

SiMi

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.

SNiFFeR

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

MrRaza

Topic's about INET have been discussed here before, Click Here to find your anwser. It's not as hard as you think...

Banana fanna fo fanna

Or he could have searched in the first place.