Visual Basic

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
Paul_Don
Posts: 146
Joined: 2003-01-29 06:41
Location: uk
Contact:

Visual Basic

Post by Paul_Don » 2003-02-13 22:17

right i dunno if i should be posting here but can u vb gods in here tell where the hell i can find a DECENT tuorial on vb as i cannot find one that isnt jsut a step by step guid to makiin a calender and shit i wanna learn not be told how to do it like html i jsut used trial and error which worked out bloody great kinda i started gettin there a little with vb but then just lose it then i have to hassle ade to help me which i dont want to do too much hehe

any help much appreciated

Paul_Don
Posts: 146
Joined: 2003-01-29 06:41
Location: uk
Contact:

Post by Paul_Don » 2003-02-13 22:31

And another thing anyone know how to register ya bots with a desciption and say a classisfied conenction like in evilbot ??


like anything u can do with this string?

frmHub.RegisterBotName(sBotName)

Sardonis
Posts: 7
Joined: 2003-02-04 15:18
Contact:

Post by Sardonis » 2003-02-14 00:04

Do you have Visual Basic? if not, try hitting Alt+F11 in any MS Office ap, you'll have a small environment you can try to learn in. It's not exactly like true VB or VBscript, but it at least helps you find some errors and makes it a little easier. Other than that I suggest just messing around, I took a class in high school, so I had to do a TON of small projects with specific purposes...other than that, I don't know what your skill lvl/understanding of programming is so I'd need more info about you

Paul_Don
Posts: 146
Joined: 2003-01-29 06:41
Location: uk
Contact:

Post by Paul_Don » 2003-02-14 00:12

yeah i dun some shit step by step build ya own calender note pad and timer none of it sunk in cause it was a step by step ive probably learnt more in these 2 weeks from trial and error than i did when i was buggerin round with those crap tutorials on the net

TasMan
Posts: 196
Joined: 2003-01-03 08:31
Location: Canada
Contact:

Post by TasMan » 2003-02-14 05:41

Trial and error is the best way to learn I think :P

Rather than a "general" tutorial, it's far easy to find something on specifics (i.e Winsock control, reading/writing files)...as you write more code, it will get easier.

And to answer your other question...

Code: Select all

'Get a description for a bot!
'This has NOT been tested but it should work

Dim sMyINFO, sName, sDesc, sConn, sEmail, sShare
Dim iNameLength

Sub Main()
  sName = "Bot"
  sDesc = "Nahhhhh - I'm too stupid"
  sConn = "VERY Fast"
  sEmail = "[email protected]"
  sShare = "1024"

  iNameLength = Len(sName)

  sMyINFO = "$MyINFO $ALL " & CStr(sName) & " " & CStr(sDesc) & "$ $" & CStr(sConn) & Chr(1) & "$" & CStr(sEmail) & "$" & CStr(sShare) & "$|"

  frmHub.RegisterBotName(CStr(sName))
End Sub

Sub DataArival(curUser, sCurData)

  If Left(sCurData, CInt(iNameLength) + 9) = "$GetINFO " & CStr(sName) Then curUser.SendData CStr(sMyINFO)

End Sub

TasMan
Posts: 196
Joined: 2003-01-03 08:31
Location: Canada
Contact:

Post by TasMan » 2003-02-14 05:58

Oh and a few links I use....

www.developerfusion.com
www.vbip.com
www.google.ca

I found the first helped me a lot in the beginning, and it has a good link section / forum....vbip was good for internet programming (what gave me that idea...?)...google I use constantly!

HaArD
Posts: 147
Joined: 2003-01-04 02:20
Location: Canada http://hub-link.sf.net
Contact:

Post by HaArD » 2003-02-14 07:48


Atomic Jo
Posts: 62
Joined: 2003-01-04 03:50
Location: Québec, Canada
Contact:

Post by Atomic Jo » 2003-02-14 11:48


Paul_Don
Posts: 146
Joined: 2003-01-29 06:41
Location: uk
Contact:

Post by Paul_Don » 2003-02-15 10:18

niceone peeps :)

Paul_Don
Posts: 146
Joined: 2003-01-29 06:41
Location: uk
Contact:

Post by Paul_Don » 2003-02-15 10:28

and the script works fine, thanx again

bobaxos
Posts: 10
Joined: 2003-02-13 18:19

also

Post by bobaxos » 2003-02-18 19:37

if you are looking for a book you can get O'Reilly Visual Basic books, they cover VB, VBA, .Net and VBScript. I use the VBScript daily along with some other O'Reilly books, i highly recommend them.

Paul_Don
Posts: 146
Joined: 2003-01-29 06:41
Location: uk
Contact:

Post by Paul_Don » 2003-02-18 20:17

no prob im on it

another hting gadget genral bot v.24 doesnt do pm in new window it jsut says private message in the hub main chat anyone knows what line i have to change to make pm come in a new window??
with all my vb knowledge i cant figure it out :P

Gadget
Posts: 62
Joined: 2003-01-11 06:24
Location: Finland
Contact:

Post by Gadget » 2003-02-18 20:32

If you want answer as private message in separate window, just send question privately to generalbot.

If you want to change that feature, edit the line 1045:

Code: Select all

      If Left(sCurData,1)="<" Or iSecurity=2 Then
to

Code: Select all

      If Left(sCurData,1)="<" Then

Gadget
Posts: 62
Joined: 2003-01-11 06:24
Location: Finland
Contact:

Post by Gadget » 2003-02-18 20:37

Whoops, wrong fixup, this shoud do it, line 1045:

Code: Select all

      If Left(sCurData,1)="<" Or iSecurity=2 Then
to

Code: Select all

      If Left(sCurData,1)="<" And iSecurity=0 Then

Paul_Don
Posts: 146
Joined: 2003-01-29 06:41
Location: uk
Contact:

Post by Paul_Don » 2003-02-18 20:43

cheerz gadget

Paul_Don
Posts: 146
Joined: 2003-01-29 06:41
Location: uk
Contact:

Post by Paul_Don » 2003-02-18 21:00

yeah gadget i tryed that now the script dont work lol no commands work :S

Paul_Don
Posts: 146
Joined: 2003-01-29 06:41
Location: uk
Contact:

Post by Paul_Don » 2003-02-20 12:14

ok now it only wants to go private when it feels like it

smitty
Posts: 53
Joined: 2003-03-01 14:45

Post by smitty » 2003-03-06 00:19


Marvin
Posts: 147
Joined: 2003-03-06 06:56
Location: France
Contact:

Post by Marvin » 2003-03-08 16:15

If you want VBScript ref, it's in VBSCRIPT?.CHM if some MS soft using vbscript is installed on your system.

bobaxos
Posts: 10
Joined: 2003-02-13 18:19

Post by bobaxos » 2003-03-08 16:49

Marvin wrote:If you want VBScript ref, it's in VBSCRIPT?.CHM if some MS soft using vbscript is installed on your system.
Your right its on the Win2k Pro Install CD (i know for sure) and i beleive its located under the "support" folder. The MSDN is also a good place to look for definitions on different commands and for some snippets of example code.

smitty
Posts: 53
Joined: 2003-03-01 14:45

Post by smitty » 2003-03-08 19:23

http://www.devguru.com/Technologies/vbs ... intro.html is a very good site for VBScript reference too

Locked