Shoutbox

My working plugin! Colourer! - 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: My working plugin! Colourer! (/showthread.php?tid=20212)

My working plugin! Colourer! by Mike on 01-07-2004 at 06:54 PM

Finally!I made my first plugin!
It shows a form and then it lets you choose colours instead of pressing Ctrl+K to change colour.Then you click the send button and voila:grin:
Tell me if you find any bugs or have any suggetions...*-)


RE: My working plugin! Colourer! by bach_m on 01-07-2004 at 07:43 PM

when i type my message in teh little box, and select a color, it gos to the begining of the line


RE: My working plugin! Colourer! by Stigmata on 01-07-2004 at 07:45 PM

hmmmmm

* Stigmata was making one just like it..........


RE: My working plugin! Colourer! by bach_m on 01-07-2004 at 07:47 PM

altho i dont understand the point, really. Ctrl+k is easier, i think


RE: RE: My working plugin! Colourer! by Mike on 01-07-2004 at 07:48 PM

quote:
Originally posted by bach_m
when i type my message in teh little box, and select a color, it gos to the begining of the line


Yeah i know...I might attemp to fix that.

quote:
Originally posted by jackass_wanabe
hmmmmm

* jackass_wanabe was making one just like it..........


Uhhh....Sorry for "stealing" your idea....

quote:
Originally posted by bach_m
altho i dont understand the point, really. Ctrl+k is easier, i think



Bah when i fix the bug u'll see the its easier to use the plugin!

quote:
Originally posted by bach_m
"attempt"??? i think its a flaw that needs to be fixed


Yeah because im not sure how I can do this...
RE: My working plugin! Colourer! by bach_m on 01-07-2004 at 07:51 PM

"attempt"??? i think its a flaw that needs to be fixed


RE: My working plugin! Colourer! by Mike on 01-07-2004 at 08:03 PM

Geez I was quoting & editing my posts to anwser your questions!Well do you have any suggetions before I attemp to fix the major bug?


RE: My working plugin! Colourer! by Stigmata on 01-07-2004 at 08:10 PM

quote:
Originally posted by Avon
Uhhh....Sorry for "stealing" your idea....


lol, it doesnt mata, yours would properly be better anyway


idea, try to use backgrounds to
RE: RE: My working plugin! Colourer! by Mike on 01-07-2004 at 08:33 PM

quote:
Originally posted by jackass_wanabe
quote:
Originally posted by Avon
Uhhh....Sorry for "stealing" your idea....


lol, it doesnt mata, yours would properly be better anyway
quote:

Thanks:)

quote:
Originally posted by jackass_wanabe
idea, try to use backgrounds to


To do what?


RE: My working plugin! Colourer! by Jutx on 01-07-2004 at 08:42 PM

If your using VB this will solve your beginning of line problem (change text1 to name of your control)

Text1.Setfocus
Sendkeys "{End}"


RE: My working plugin! Colourer! by LeCastor2001 on 01-07-2004 at 09:58 PM

I was told the 'sendkeys' function is dangerous...


RE: My working plugin! Colourer! by Jutx on 01-07-2004 at 10:09 PM

It is not recommended, meaning avoid it where possible, but it isn't dangerous if it is doing something simple like positioning a cursor. (also the VB example forms (like the login dialog and about dialog) use this to position the cursor at the end of a text box so we can assume it is OK)


RE: My working plugin! Colourer! by Mike on 01-07-2004 at 10:13 PM

Version 1.1 is out!
Fixed the textbox bug(thanks to Jutx)
Added /xcolourerabout for about.

Also I dont think that sendkeys is dangerous...


RE: My working plugin! Colourer! by CookieRevised on 01-07-2004 at 10:33 PM

quote:
Originally posted by Jutx
Text1.Setfocus
Sendkeys "{End}"
You should use the proper way to do that. Try to avoid sendkeys.
.SelText
.SelStart
.SelLength

=>
Text1.SelStart = Len(Text1.value)
Text1.SelLength = 0
RE: My working plugin! Colourer! by Jutx on 01-08-2004 at 12:15 AM

if it gets the job done... who cares!:refuck:

Seriously though, Cookies way is the more reliable of the two but because its only positioning the cursor Sendkeys rarely fails.

edit: I wouldn't use sendkeys for anything else tho. (Damn i edit too much)


RE: My working plugin! Colourer! by manavo on 03-05-2004 at 11:11 PM

quote:
Originally posted by Jutx
if it gets the job done... who cares!:refuck:

It might not always do the job...
RE: My working plugin! Colourer! by MakaveliThaDon on 03-06-2004 at 02:17 PM

can i have the source code plz ?


RE: My working plugin! Colourer! by Mike on 03-06-2004 at 04:38 PM

Sorry.You cant have it...*-)