Case talker - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Forum: Plug-Ins (/forumdisplay.php?fid=28) +------ Thread: Case talker (/showthread.php?tid=31680) Case talker by Grinder911 on 09-18-2004 at 08:36 PM
How simple would it be to make a talker that converts uppercase characters to lowercase? RE: Case talker by Grinder911 on 09-18-2004 at 08:50 PM Thanx. I think I've almost got it figured out. RE: Case talker by Martijn. on 09-18-2004 at 09:54 PM
I've made this some time ago, when I needed it myself. RE: Case talker by Grinder911 on 09-18-2004 at 10:47 PM
I altered the talker.alternating.vbs and came up with this: RE: Case talker by Grinder911 on 09-19-2004 at 12:10 AM
I was able to figure out the simple version but I wanted to add the option of using a capital letter by typing a lowercase one. RE: Case talker by CookieRevised on 09-19-2004 at 01:35 AM
Similar in VBScript: RE: Case talker by Mike on 09-19-2004 at 06:10 AM
Uhhhh try this: code:Copy and paste this into notepad then save it with the name talker.lowercase.vbs in your stuff-plug. quote:Note!: This will declare the variables as variant! They should be like this: Dim i as integer, Str As string, Char As string But i dont know much vbscript... RE: Case talker by CookieRevised on 09-19-2004 at 10:32 AM
quote:Do NOT... This will NOT work. 1) IF it worked, then the only thing that will do is lower casing the whole string but ONLY if the whole string was uppercased. If he pressed Shift for the first letter (and thus he has something like "hOW ARE YOU") then the function will return just the same... 2) "talker = talker" ? You can't do that (in any language). quote:No... wrong. 1) If you don't use Dim then the variables are declared as variants anyway! But omitting the Dim statement in your projects is a bad habit. 2) Furthermore, variables in VBScript are always of the variant type 3) declaring a variable "dim x as y" is invalid in VBScript because of this and will produce an error... quote: RE: Case talker by CookieRevised on 09-19-2004 at 12:23 PM
quote:That argument isn't crap at all and is 100% correct. 1) not declaring variables in the beginning of a project is a bad habit. 2) thus I declared them. 3) of course they are variants, because vbscript only knows variant types in this case. 4) the first point was a general programming point (for vb(script)) . This has nothing todo with me trying to talk out of something because I don't need to talk me out of something in the first place! Instead of flaming me and calling me uncalled-for names, proof me 1 thing in that post that is wrong. And fyi, I DO know my shit I try to help with... unlike you who only seems to know how to bitch on people, flame them, call them n00bs, etc.., unless they woreship you like a god. (so look up what "arrogant" exactly means before you use that word) |