Register for your free account! | Forgot your password?

You last visited: Today at 19:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Gui!! Experts

Discussion on Gui!! Experts within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
Gui!! Experts

Welcome members

i made my server load From GUI Well, and i delete the Consol But There Were Some Commands that you can write it in Consol !! Work

When i made GUI The Commands OF Course Not Work!! there is a line in Program

which it

CommandsAI(consol.ReadLine());

when i write doesn't work so i need to convert it to my Gui

So What is The Solve
|xabi| is offline  
Old 10/28/2011, 21:03   #2
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
"Console" is misspelled. I don't know what you're asking though, honestly.
Lateralus is offline  
Old 10/28/2011, 21:26   #3
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
that when i write a word see it's command or not so consol.readline

this read the line which i wrote

so when i changed the system to GUI

so now no consol so all depend on GUI!!

now when i write a word in text box need to check it command or not!!

so !!did you understand me!!
|xabi| is offline  
Old 10/28/2011, 21:38   #4
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
Yeah. Then you'd just... take the value in the textbox and pass it to the "check if command" method.
Lateralus is offline  
Old 10/28/2011, 21:40   #5
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
man man if i write a @save and press enter need my GUI Save the server

i already made the command but my Gui in text box not read it
|xabi| is offline  
Old 10/28/2011, 21:47   #6
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
Make an accessor to return the textbox value so that you can access it from a different class besides form if you need to and pass it to whatever your command method is named - in your example, CommandsAI.

I mean, that's literally it. I can't code it for you because I don't know how your stuff is laid out. Just do what I said.
Lateralus is offline  
Thanks
1 User
Old 10/28/2011, 22:05   #7
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
ok man U didn't understand me

any way thanks for contact with me i get idea

#request close
|xabi| is offline  
Old 10/29/2011, 02:04   #8
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Create a textbox and a button, On button click just do
Code:
CommandsAI(textbox1.Text);
simples.
_DreadNought_ is offline  
Thanks
1 User
Old 10/29/2011, 04:05   #9
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,190
You should really have it so the GUI has a menu. I think I covered that in my GUI tutorial (search my threads from my profile). If you have a menu, you can directly access commands. I think I did an example with an "Exit" command. Check it out.
Spirited is offline  
Thanks
1 User
Old 10/29/2011, 10:18   #10
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
Already covered in this thread... but if you want to write TO the gui... Do a multi line textbox with a simple accessor using something like WriteLine(string) where it removes entries from the end of the collection and adds to the start (if over a specified amount of lines obviously)


reading FROM console just do a little line for console command and a "execute' type button.

On button activation just pass the field.Text to your command handler and clear the text inside of it.

Simple stuff really.
pro4never is offline  
Thanks
1 User
Old 10/29/2011, 12:22   #11
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
thanks of all you

#request close
|xabi| is offline  
Reply


Similar Threads Similar Threads
[PK2] asking the >EXPERTS<
04/22/2015 - Silkroad Online - 5 Replies
i need to change zerk body color, can anyone tell me name of the file which contains BODY color not the flames color
Need your help experts! :D
07/01/2011 - Silkroad Online - 6 Replies
To lvl 105 I will have to spend some time be4 I reach it, but I've searched rev6 for quests that are unlimited, and found this: Becoming a Deity (1) View NPC Chat message (Click Here) Lv Requirement:100, Available: Can be repeat Egyptian Soldier Turian Eliminate 300 Unegs. Reward: 14043 Gold, 2801540xp, 250sp ? Mission Eliminate 300 Unegs.
All GC PH Experts
05/28/2009 - Grand Chase Philippines - 4 Replies
pag bukas ko po ng MLE1312 ito ang lumalabas---->ITo ang nakalagay: It is recommended to run the systemretriver since the kernel1data.dat you have is outdated and will not be used. Of course, if this is the system retriever, ignore this message anu gawin ko pwede sa mga experts pa post dito ng updated MLE then kung panu gamitin kasi napaka newbie ko talga hindi ko po ma gets THANKS IN ADVANCE guys!
Experts<<look here
05/14/2009 - SRO Private Server - 8 Replies
Hey,im just started play silkroad online private servers and im want to know what is the best hybrid build??



All times are GMT +1. The time now is 19:29.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.