Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Switch Case command and argument? [!(command) (argument)]

http://msdn.microsoft.com/en-us/library/ms228388.aspx
(Apr 12, 2014 04:23 PM)OG Gangsta Wrote:  I don't see how that helps, could you explain more?

For example, If I wanted to make a command that resolved IP's via Skype, the user typing to command would have to input a skype name, which can be anything. Like, '!resolve boneritus'. How can I collect this comand with a case (after removing the '!' of course)

There is a whole example on that link on what you need to do.
Think about it, you want to SPLIT up a string into different parts.

Edit: Nevermind, read OP wrong. Just do this: string joined = "Test" + "ing";
(Apr 13, 2014 04:17 AM)OG Gangsta Wrote:  I finally got it. You inspired me to look into splitting the text, and it works fine now. Thanks!

I posted it first! Where is my appreciation?

Spoiler (Click to View)
"I'm able to code an IRC botnet, use sockets & all, but I can't split strings !"
Yeah.
No.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by ImDeepWithWindowsJul 4, 2020 06:19 PM 0 167 Jul 4, 2020 06:19 PM
Last Post: ImDeepWithWindows
[Shell] by friiz1337May 14, 2020 04:09 AM 2 207 May 14, 2020 04:09 AM
Last Post: sed-i
[Shell] by Nulla MisericordiaFeb 14, 2020 02:23 PM 0 163 Feb 14, 2020 02:23 PM
Last Post: Nulla Misericordia