What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [BETA] Imitate Script

Pages: (3): « First [ 1 ] 2 3 » Last »
[BETA] Imitate Script
Author: Message:
MrT
Junior Member
**

Coding For Fun

Posts: 62
35 / Male / Flag
Joined: Jul 2006
O.P. [BETA] Imitate Script
this is my imitate script.it is first :D

Bug 1:
  you talking person1 and person2
  script saves person1's color,type,style
  try to imitate person2
  your imitated color is person1's color


Bug 2:
  this script can't imitate font type.how can i change current font?

i don't know another bug *-)

NOTE: this script doesn't work for wireless connections ;)

Version: Beta2

(sorry my english.i'm from Turkey)

//Thanks to CookieRevised for Notifier - Typing
//Thanks to Plik for getLocalIp()
//Thanks to Pai for Xniff
//Thanks to Sander112 for contactsay

.plsc File Attachment: Imitate.plsc (273.01 KB)
This file has been downloaded 12183 time(s).

This post was edited on 11-06-2006 at 08:55 PM by MrT.
11-05-2006 02:47 PM
Profile E-Mail PM Web Find Quote Report
MicroWay
Senior Member
****

Avatar
Do you want me? Try to get me!

Posts: 571
Reputation: 16
37 / Male / Flag
Joined: Jul 2006
Status: Away
RE: [BETA] Imitate Script
Sorry my question, but how to use it??? :S
11-05-2006 03:00 PM
Profile PM Find Quote Report
MrT
Junior Member
**

Coding For Fun

Posts: 62
35 / Male / Flag
Joined: Jul 2006
O.P. RE: [BETA] Imitate Script
/imitate [you message]

sorry :(
11-05-2006 03:05 PM
Profile E-Mail PM Web Find Quote Report
MicroWay
Senior Member
****

Avatar
Do you want me? Try to get me!

Posts: 571
Reputation: 16
37 / Male / Flag
Joined: Jul 2006
Status: Away
RE: [BETA] Imitate Script
quote:
Originally posted by MrT
sorry :(

Ohhh... No Problem!!!
Thanks for the help
;)

This post was edited on 11-05-2006 at 03:18 PM by MicroWay.
11-05-2006 03:08 PM
Profile PM Find Quote Report
phalanxii
Full Member
***


Posts: 146
Reputation: 5
32 / Male / Flag
Joined: Aug 2006
Status: Away
RE: [BETA] Imitate Script
I haven't tried this, but perhaps to get around "Bug 1", you can save the font color, type and style for each person.

For example (sorry, I looked through the code :S), bir, iki and uc could all be made into arrays, and the font information can be stored in each element, ie. bir[contact@domain.com] or iki[123456789] (user ID). Then when you send the message, you check who you are sending it to, and access the font information using that.
11-05-2006 10:42 PM
Profile PM Find Quote Report
aNILEator
Skinning Contest Winner
*****

Avatar
...in the wake of the aNILEator

Posts: 3718
Reputation: 90
35 / Male / Flag
Joined: Oct 2003
Status: Away
RE: [BETA] Imitate Script
I've been a tester of such a script that can correctly imitate, I think development has stopped for now however :S

Odd really, it was starting to show potential
11-05-2006 11:08 PM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [BETA] Imitate Script
MrT,

To add to what phalanxii has said: you need to take into consideration that several contacts can talk to you at the same time. And that a user could want to imitate a contact who hasn't spoken last.

So only storing the last text parameters from the last contact who spoke to the user is not going to work. Do as phalanxii suggested: use an array to store the information, indexed by the contact's email _and_ by the user's email(**). And remove the array element when the chat window of that contact is closed(***).


** highly important if you don't want to screw things up when the current user signs out and a new user sign in. Another way around this and probably much more convenient in this case: empty the array when the user signs out.

*** be carefull. There can be multiple contacts in 1 chat window (multi-contact or group chats).

PS: without looking at the code: I can't see the use of my "typing notifier" code in this script though.

This post was edited on 11-05-2006 at 11:22 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-05-2006 11:20 PM
Profile PM Find Quote Report
MrT
Junior Member
**

Coding For Fun

Posts: 62
35 / Male / Flag
Joined: Jul 2006
O.P. RE: [BETA] Imitate Script
quote:
Originally posted by CookieRevised
MrT,

To add to what phalanxii has said: you need to take into consideration that several contacts can talk to you at the same time. And that a user could want to imitate a contact who hasn't spoken last.

So only storing the last text parameters from the last contact who spoke to the user is not going to work. Do as phalanxii suggested: use an array to store the information, indexed by the contact's email _and_ by the user's email(**). And remove the array element when the chat window of that contact is closed(***).


** highly important if you don't want to screw things up when the current user signs out and a new user sign in. Another way around this and probably much more convenient in this case: empty the array when the user signs out.

*** be carefull. There can be multiple contacts in 1 chat window (multi-contact or group chats).

PS: without looking at the code: I can't see the use of my "typing notifier" code in this script though.


quote:
Originally posted by phalanxii
I haven't tried this, but perhaps to get around "Bug 1", you can save the font color, type and style for each person.

For example (sorry, I looked through the code :S), bir, iki and uc could all be made into arrays, and the font information can be stored in each element, ie. bir[contact@domain.com] or iki[123456789] (user ID). Then when you send the message, you check who you are sending it to, and access the font information using that.


thanks for help.
i use window handle but it doesn't work in group chats.it only work 1-1 chat
11-06-2006 05:38 PM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [BETA] Imitate Script
Also note in your first post that this doesn't work for wireless connections, due to the way of the Xniff object. ;)

[offtopic]
* Matti sighs...
* Matti wants to have Xniff on his wireless...
[/offtopic]
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-06-2006 07:04 PM
Profile E-Mail PM Web Find Quote Report
cloudhunter
Senior Member
****


Posts: 536
Reputation: 18
37 / – / –
Joined: Dec 2005
RE: [BETA] Imitate Script
quote:
Originally posted by Mattike
Also note in your first post that this doesn't work for wireless connections, due to the way of the Xniff object. ;)

Not strictly true... I use Xniff myself, and it works on my wireless :)

Cloudy
[Image: cloudy.jpg]
Sig by pirateok/marisaok/marisa ;)
quote:
Originally posted by Moulin Rouge
The greatest thing you'll ever learn, is just to love and be loved in return

6910 days, 57 minutes, 43 seconds ago
11-07-2006 03:02 PM
Profile E-Mail PM Find Quote Report
Pages: (3): « First [ 1 ] 2 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On