Author Topic: [How To] make/program a settings gui like the bigger bots have .. plea  (Read 5383 times)

0 Members and 1 Guest are viewing this topic.

Offline ((UKSN))shad_dow

  • Triple Ace
  • **
  • Posts: 213
  • Karma: +2/-0
greets to plop,phatty,Nightlinch,Kepp and reast of the fourm

hope u can help with some sort of hot to build a settings gui like the bigger bots have , source or clues would be best ,so i can at least refresh my VB skills

at mo can make gui but cant save it to settings.ini file for my bot , that im making using my lua skills ive learn from the best scripters on the best forum there is :)

(on knees begging .. plz plz plz plz plz) ?(
creator of Therapy-X? bot

PtokaX forum


Offline Corayzon

  • Lord
  • ***
  • Posts: 464
  • Karma: +1/-0
(No subject)
« Reply #1 on: 22 June, 2004, 01:23:44 »
if your using vb here is some methods for opening a file for input and output aswell as reading and writing...

Open and Input length of file
Code: [Select]
Open For Input As #
sLine = Input$(iFileNo, iStringLength) 'These arguments may be backwards
Close #1

eg.

Dim sLine As String
Open "C:\file.txt" For Input As #1
sLine = Input$(1, 500)
Close #1

theres a few tricks to using the Input$ method but i havnt touched vb in so loooooong. one is using something like using fileLen(iFileNo) to read a entire file.

Open and print to the file
Code: [Select]
Open For Output As #
Print #,
Close #

eg.

Open "C:\File.txt" For Output As #1
Print #1, "hello!"
Close #1

hope this helps ya on ya way =]

noza
« Last Edit: 22 June, 2004, 02:10:02 by Corayzon »

Offline plop

  • Forum God
  • ****
  • Posts: 2 464
  • Karma: +37/-0
(No subject)
« Reply #2 on: 22 June, 2004, 04:20:23 »
i don't know any vbs so can't help you with that.

nightlitch and me are using lua 2 do this.
wxlua 2 be precise, just it's in a kinda early stage of development.
there are nearly no docs, and if they are around they are mostly for c++.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Offline ((UKSN))shad_dow

  • Triple Ace
  • **
  • Posts: 213
  • Karma: +2/-0
(No subject)
« Reply #3 on: 22 June, 2004, 21:19:13 »
cheers Corayzon , i try that this week (still busy with family etc , god need a freze time gaget , lol) , does that code work in VB6 or do i need to install VB.Net ???



and Plop if u got links for makeing GUI under c++ , would help too m8 , mmmm must give Borland C++ a try again , oh and using LUA to build a GUI sounds very intressting too

keep up good work u 2 , more info u give , more i can learn , mmm might even post my bots Hub Rule Kick/ban as a stand alone script ... mmmm  ;)
creator of Therapy-X? bot

Offline plop

  • Forum God
  • ****
  • Posts: 2 464
  • Karma: +37/-0
(No subject)
« Reply #4 on: 23 June, 2004, 00:59:40 »
Quote
Originally posted by ((UKSN))shad_dow
and Plop if u got links for makeing GUI under c++ , would help too m8 , mmmm must give Borland C++ a try again , oh and using LUA to build a GUI sounds very intressting too

keep up good work u 2 , more info u give , more i can learn , mmm might even post my bots Hub Rule Kick/ban as a stand alone script ... mmmm  ;)
check the wx windows website.
lua is the language i know the most about so for me it was the best option.
+ the fact that it's just like lua, wx windows is cross platform.

do post your own scripts, doesn't mather if there are allready loads around which do the same.
ppl do things differently which makes it all more fun.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Offline pHaTTy

  • Forum Legend
  • ***
  • Posts: 1 916
  • Karma: +5/-1
(No subject)
« Reply #5 on: 23 June, 2004, 01:11:30 »
Quote
Originally posted by ((UKSN))shad_dow
cheers Corayzon , i try that this week (still busy with family etc , god need a freze time gaget , lol) , does that code work in VB6 or do i need to install VB.Net ???



and Plop if u got links for makeing GUI under c++ , would help too m8 , mmmm must give Borland C++ a try again , oh and using LUA to build a GUI sounds very intressting too

keep up good work u 2 , more info u give , more i can learn , mmm might even post my bots Hub Rule Kick/ban as a stand alone script ... mmmm  ;)

hmmm heres a hub to check, programming hub -> teamelite.mine.nu
Resistance is futile!

Offline Corayzon

  • Lord
  • ***
  • Posts: 464
  • Karma: +1/-0
(No subject)
« Reply #6 on: 23 June, 2004, 02:01:50 »
Quote
Originally posted by ((UKSN))shad_dow
cheers Corayzon , i try that this week (still busy with family etc , god need a freze time gaget , lol) , does that code work in VB6 or do i need to install VB.Net ???

This is standard vb6 script ;), and isnt vb.net an asp all the same syntax?

neways...npz ((UKSN))shad_dow =]

noza

Offline ((UKSN))shad_dow

  • Triple Ace
  • **
  • Posts: 213
  • Karma: +2/-0
(No subject)
« Reply #7 on: 25 June, 2004, 20:51:07 »
cheers all for the info and links :)

and plop just adding my bots Rulekicker as a stand alone bot , lol hope its up to all ya scripting stands  8)
creator of Therapy-X? bot

Offline plop

  • Forum God
  • ****
  • Posts: 2 464
  • Karma: +37/-0
(No subject)
« Reply #8 on: 25 June, 2004, 21:30:51 »
Quote
Originally posted by ((UKSN))shad_dow
cheers all for the info and links :)

and plop just adding my bots Rulekicker as a stand alone bot , lol hope its up to all ya scripting stands  8)
yw, and i'll reserve a space for your scripts on my website.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Offline ((UKSN))shad_dow

  • Triple Ace
  • **
  • Posts: 213
  • Karma: +2/-0
(No subject)
« Reply #9 on: 25 June, 2004, 23:23:09 »
aww thankx plop
creator of Therapy-X? bot

Offline kepp

  • Scripter
  • King
  • ******
  • Posts: 790
  • Karma: +2/-0
(No subject)
« Reply #10 on: 27 June, 2004, 21:39:21 »
Quote
This is standard vb6 script ;), and isnt vb.net an asp all the same syntax?

Almost, .NET is built up of Classes
« Last Edit: 27 June, 2004, 21:39:35 by kepp »
Guarding    

Offline ((UKSN))shad_dow

  • Triple Ace
  • **
  • Posts: 213
  • Karma: +2/-0
(No subject)
« Reply #11 on: 27 June, 2004, 21:49:16 »
lo all , yep Kepp ur right there plus if u try and open a VB6 progject in VB.Net it has to change the code as alot of functions are donr diffent , which mean u have to check the vb6 code first or it will get screwed when .NET makes the code usable , VB6 is alot diffent to VB7 aka .Net

ps . thats why i got VB6 on 1 comp and Visual Stuido 2003 on other comp

PPS .. take it no bodys got a sample script of there bots GUI i can play with  if possible
« Last Edit: 27 June, 2004, 21:52:46 by ((UKSN))shad_dow »
creator of Therapy-X? bot

Offline kepp

  • Scripter
  • King
  • ******
  • Posts: 790
  • Karma: +2/-0
(No subject)
« Reply #12 on: 27 June, 2004, 22:00:04 »
Shadow, yea, But i have no problem with any of them on the same comp, VB 6.0 / .NET, C++

hmm, didn't i give you source one's? or am i tottaly lost?
Guarding    

Offline ((UKSN))shad_dow

  • Triple Ace
  • **
  • Posts: 213
  • Karma: +2/-0
(No subject)
« Reply #13 on: 27 June, 2004, 22:08:39 »
nope Kepp aint given me any source , if u had i wouldent start a therad asking PMFSL

mmm as i got Borland C++ Enterpise Builder and VB.net , VB6 cusae my big comp to crash when istalled with those too so i had to install on my p166 :(
« Last Edit: 27 June, 2004, 22:08:58 by ((UKSN))shad_dow »
creator of Therapy-X? bot

Offline kepp

  • Scripter
  • King
  • ******
  • Posts: 790
  • Karma: +2/-0
(No subject)
« Reply #14 on: 27 June, 2004, 22:25:23 »
I could make some sort of a tutorial and send you a *.zip

How to write, to and from an *.txt / *.ini

will take me a couple of hours
Guarding    

Offline ((UKSN))shad_dow

  • Triple Ace
  • **
  • Posts: 213
  • Karma: +2/-0
(No subject)
« Reply #15 on: 27 June, 2004, 23:23:01 »
cheers Kepp that would be very nice , pm and il send u my email :) .... thx :) :D
« Last Edit: 27 June, 2004, 23:23:19 by ((UKSN))shad_dow »
creator of Therapy-X? bot

Offline kepp

  • Scripter
  • King
  • ******
  • Posts: 790
  • Karma: +2/-0
(No subject)
« Reply #16 on: 27 June, 2004, 23:35:32 »
Ok, as i personally don't think it's hard to do i've written it on a forum of mine, A quik reference that will probably ligth a sparkle!

Writing and reading variables from a file is ( I can't explain how easy it is ), The thing is, Creating all objects take time..

You can visit My Page

Browse to forums and go into the right Section, VB, you will with no doubt find the topic there ;)

Also, if you want to download xDC you may doso, as i am reading plain data from *.ini in that source aswell
Guarding    

Offline ((UKSN))shad_dow

  • Triple Ace
  • **
  • Posts: 213
  • Karma: +2/-0
(No subject)
« Reply #17 on: 28 June, 2004, 01:05:32 »
cheers Kepp

thx m8ty , God i love Lua Forums :)  :D
creator of Therapy-X? bot

Offline kepp

  • Scripter
  • King
  • ******
  • Posts: 790
  • Karma: +2/-0
(No subject)
« Reply #18 on: 28 June, 2004, 03:43:01 »
damn, i have locked the forum for some reason... i think it is fixed now
Guarding    

Offline ((UKSN))shad_dow

  • Triple Ace
  • **
  • Posts: 213
  • Karma: +2/-0
(No subject)
« Reply #19 on: 28 June, 2004, 03:59:38 »
lo Kepp nice site , and u have to reg to see VB forum on ur site m8 :)

yours shad
creator of Therapy-X? bot

PtokaX forum

(No subject)
« Reply #19 on: 28 June, 2004, 03:59:38 »