[How To] make/program a settings gui like the bigger bots have .. plea
 

[How To] make/program a settings gui like the bigger bots have .. plea

Started by ((UKSN))shad_dow, 22 June, 2004, 00:40:55

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

((UKSN))shad_dow

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

Corayzon

#1
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

plop

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 <----<<

((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  ;)
creator of Therapy-X? bot

plop

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.
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 <----<<

pHaTTy

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
Resistance is futile!

Corayzon

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

((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)
creator of Therapy-X? bot

plop

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
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 <----<<

((UKSN))shad_dow

creator of Therapy-X? bot

kepp

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

Almost, .NET is built up of Classes
Guarding    

((UKSN))shad_dow

#11
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
creator of Therapy-X? bot

kepp

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    

((UKSN))shad_dow

#13
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 :(
creator of Therapy-X? bot

kepp

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    

((UKSN))shad_dow

#15
cheers Kepp that would be very nice , pm and il send u my email :) .... thx :) :D
creator of Therapy-X? bot

kepp

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    

((UKSN))shad_dow

cheers Kepp

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

kepp

damn, i have locked the forum for some reason... i think it is fixed now
Guarding    

((UKSN))shad_dow

lo Kepp nice site , and u have to reg to see VB forum on ur site m8 :)

yours shad
creator of Therapy-X? bot

SMF spam blocked by CleanTalk