Programming: VB Programming Tutorial #3
Programming: VB Programming Tutorial #3
This one will be more Halo orientated.I will explain how to make a simple program like this.
http://files.halomods.com/viewtopic.php?t=18487
Just got it moved to utilities,people spammed last one.
Im going to again asume you have read the previous tuts.
To start off make a form.Name it frmmain
Change caption to Halo Dedicated Server Program
Make a textbox on the form,and name it txt1.Go down to text and delete it.Go to Multiline,and say True(makes it type on more than 1 line)
Now that you have that,lets create some labels
Drag out a label and place it on screen.Change caption to
Server Name
Make a new label and change caption to Maxplayers
Make a new label and change caption to Maps
Make a new label and change caption to gametypes
And creat a command button called submit
cmdsubmit
Caption=Submit
Now create a txtbox,name it txtname,and delte the text from it.Place it next to the label that says Server Name
Create another textbox and name it txtmaxplayers,and delete all text,And place by label Maxplayers
Create another textbox and name it txtmap,and delete all text,And place by label Map
Create another textbox and name it txtgametype,and delete all text,And place by label Gametype
Now for some coding
type
txt1.text="sv_name "+""""+txtname+""""
'That says,type sv_name then add a space,and put "" around the name the user typed in.
So txt1 will say
sv_name "Test"
go down a line anf type
txt1.text=txt1.text+vbcrlf+"sv_maxplayers "+txtmaxplayers
You dont need the "" around it cause its a number
txt1.text=txt1.text,that means add this to the current txt1(otherwise,it would delete what you said,and qrtie new text)
vbcrlf just makes it go to next line
now go to next line and type
txt1.text=txt1.text+vbcrlf+"sv_mapcycle_add "+txtmap+" "+txtgametype
Longer code there,cause it combines txtmap,and gametype together
Now run and type Name,maxplayers,map,and gametype.
And thats the basics of my program.Youll have to mess around a bit to put in more stuff.
All the dl's for vb trial have disapered and I cant find them.Search google for
Visual Basic 5.0 Control Edition
if you find a link please post it here
Any suggestions for another tut?
http://files.halomods.com/viewtopic.php?t=18487
Just got it moved to utilities,people spammed last one.
Im going to again asume you have read the previous tuts.
To start off make a form.Name it frmmain
Change caption to Halo Dedicated Server Program
Make a textbox on the form,and name it txt1.Go down to text and delete it.Go to Multiline,and say True(makes it type on more than 1 line)
Now that you have that,lets create some labels
Drag out a label and place it on screen.Change caption to
Server Name
Make a new label and change caption to Maxplayers
Make a new label and change caption to Maps
Make a new label and change caption to gametypes
And creat a command button called submit
cmdsubmit
Caption=Submit
Now create a txtbox,name it txtname,and delte the text from it.Place it next to the label that says Server Name
Create another textbox and name it txtmaxplayers,and delete all text,And place by label Maxplayers
Create another textbox and name it txtmap,and delete all text,And place by label Map
Create another textbox and name it txtgametype,and delete all text,And place by label Gametype
Now for some coding
type
txt1.text="sv_name "+""""+txtname+""""
'That says,type sv_name then add a space,and put "" around the name the user typed in.
So txt1 will say
sv_name "Test"
go down a line anf type
txt1.text=txt1.text+vbcrlf+"sv_maxplayers "+txtmaxplayers
You dont need the "" around it cause its a number
txt1.text=txt1.text,that means add this to the current txt1(otherwise,it would delete what you said,and qrtie new text)
vbcrlf just makes it go to next line
now go to next line and type
txt1.text=txt1.text+vbcrlf+"sv_mapcycle_add "+txtmap+" "+txtgametype
Longer code there,cause it combines txtmap,and gametype together
Now run and type Name,maxplayers,map,and gametype.
And thats the basics of my program.Youll have to mess around a bit to put in more stuff.
All the dl's for vb trial have disapered and I cant find them.Search google for
Visual Basic 5.0 Control Edition
if you find a link please post it here
Any suggestions for another tut?
Feel free to send me an instant message if you need anything.
-
- Posts: 773
- Joined: Tue May 04, 2004 7:14 am
- Location: Uranus
No I didn't.
But yes, scanning would be great, but editing is pretty important too. I really just want it to find the <filename> in the xml and give me what's inside it.
Basically, here is what I want the program to do, possibly in different inner windows: I want it to start in the extracted map's folder. Then I want it to load all the xml files' names in that directory and it's sub directories. I want it to list them, and then I want to click on indivindual ones and be able to open them in a different inner window. This window will just list the dependencies mentioned in this xml file, starting with the ID stuff (obje, proj, the yyyy thing). You click one and there'll be an edit box with a browse button. You choose a different xml file and the one you selected is replaced by the new one and the ID stuff is set (predetermined by filename: proj.xml would make it jorpejboyyyy). Maybe even have an open button next to it to change that one's dependencies.
Here's a concept: (blue is double click, red is single click)
It's actually not that complicated. Oh, and if it's easier I might just go with one window, the main window, and it changes into the other ones and a little bottom would put it back at the main window.
But yes, scanning would be great, but editing is pretty important too. I really just want it to find the <filename> in the xml and give me what's inside it.
Basically, here is what I want the program to do, possibly in different inner windows: I want it to start in the extracted map's folder. Then I want it to load all the xml files' names in that directory and it's sub directories. I want it to list them, and then I want to click on indivindual ones and be able to open them in a different inner window. This window will just list the dependencies mentioned in this xml file, starting with the ID stuff (obje, proj, the yyyy thing). You click one and there'll be an edit box with a browse button. You choose a different xml file and the one you selected is replaced by the new one and the ID stuff is set (predetermined by filename: proj.xml would make it jorpejboyyyy). Maybe even have an open button next to it to change that one's dependencies.
Here's a concept: (blue is double click, red is single click)
It's actually not that complicated. Oh, and if it's easier I might just go with one window, the main window, and it changes into the other ones and a little bottom would put it back at the main window.
-
- Posts: 773
- Joined: Tue May 04, 2004 7:14 am
- Location: Uranus
-
- Posts: 94
- Joined: Mon Nov 15, 2004 7:01 pm
- Location: over there
-
- Posts: 199
- Joined: Sat Jun 19, 2004 6:50 pm
-
- Posts: 115
- Joined: Fri Jan 14, 2005 9:26 am
- Location: Why The Fuck Would I Tell You? Indiana...
- Contact:
hey
Hey I moved onto Final Fantasy XI and decided to make a macro maker for people who don't know how to do extended macros, I used this as a base but I made multiple add buttons, I.e. add for head gear neck gear, etc all throughout the inventory but I can't get them to add one by one, can you help me?
- Attachments
-
- beta.JPG (164.57 KiB) Viewed 5767 times
Sig too big!
-
- Posts: 81
- Joined: Fri Oct 19, 2007 6:33 pm