PtokaX forum

Development Section => Your Developing Problems => Topic started by: ((UKSN))shad_dow on 22 June, 2004, 00:40:55

Title: [How To] make/program a settings gui like the bigger bots have .. plea
Post by: ((UKSN))shad_dow on 22 June, 2004, 00:40:55
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) ?(
Title:
Post by: Corayzon 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
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
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
Title:
Post by: plop 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
Title:
Post by: ((UKSN))shad_dow 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  ;)
Title:
Post by: plop on 23 June, 2004, 00:59:40
QuoteOriginally 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. (http://www.wxwindows.org)
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
Title:
Post by: pHaTTy on 23 June, 2004, 01:11:30
QuoteOriginally 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
Title:
Post by: Corayzon on 23 June, 2004, 02:01:50
QuoteOriginally 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
Title:
Post by: ((UKSN))shad_dow 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)
Title:
Post by: plop on 25 June, 2004, 21:30:51
QuoteOriginally 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
Title:
Post by: ((UKSN))shad_dow on 25 June, 2004, 23:23:09
aww thankx plop
Title:
Post by: kepp on 27 June, 2004, 21:39:21
QuoteThis is standard vb6 script ;), and isnt vb.net an asp all the same syntax?

Almost, .NET is built up of Classes
Title:
Post by: ((UKSN))shad_dow 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
Title:
Post by: kepp 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?
Title:
Post by: ((UKSN))shad_dow 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 :(
Title:
Post by: kepp 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
Title:
Post by: ((UKSN))shad_dow on 27 June, 2004, 23:23:01
cheers Kepp that would be very nice , pm and il send u my email :) .... thx :) :D
Title:
Post by: kepp 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 (http://xdchub.moonfruit.com/)

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
Title:
Post by: ((UKSN))shad_dow on 28 June, 2004, 01:05:32
cheers Kepp

thx m8ty , God i love Lua Forums :)  :D
Title:
Post by: kepp on 28 June, 2004, 03:43:01
damn, i have locked the forum for some reason... i think it is fixed now
Title:
Post by: ((UKSN))shad_dow 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