|  [BETA] Imitate Script | 
| Author: | 
Message: | 
MrT 
Junior Member 
  
  
Coding For Fun
  
Posts: 62 
36 /   /   
Joined: Jul 2006 
 | 
O.P.  [BETA] Imitate Script
this is my imitate script.it is first   
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  
 
  Attachment: Imitate.plsc (273.01 KB) 
This file has been downloaded 12247 time(s). 
 This post was edited on 11-06-2006 at 08:55 PM by MrT.
 |   
 | 
| 11-05-2006 02:47 PM | 
 | 
  | 
MicroWay 
Senior Member 
    
  
  
Do you want me? Try to get me!
  
Posts: 571 Reputation: 16 
38 /   /   
Joined: Jul 2006
 
Status: Away
 
 | 
 RE: [BETA] Imitate Script
Sorry my question, but how to use it???    
 |   
 | 
| 11-05-2006 03:00 PM | 
 | 
  | 
MrT 
Junior Member 
  
  
Coding For Fun
  
Posts: 62 
36 /   /   
Joined: Jul 2006 
 | 
O.P.  RE: [BETA] Imitate Script
/imitate [you message] 
sorry   
 
 |   
 | 
| 11-05-2006 03:05 PM | 
 | 
  | 
MicroWay 
Senior Member 
    
  
  
Do you want me? Try to get me!
  
Posts: 571 Reputation: 16 
38 /   /   
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 | 
 | 
  | 
phalanxii 
Full Member 
   
  
 
Posts: 146 Reputation: 5 
33 /   /   
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   ),  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 | 
 | 
  | 
aNILEator 
Skinning Contest Winner 
     
  
  
...in the wake of the aNILEator 
  
Posts: 3717 Reputation: 90 
36 /   /   
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   
Odd really, it was starting to show potential  
 |   
 | 
| 11-05-2006 11:08 PM | 
 | 
  | 
CookieRevised 
Elite Member 
     
  
  
 
Posts: 15494 Reputation: 173 
– /   /   
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 | 
 | 
  | 
MrT 
Junior Member 
  
  
Coding For Fun
  
Posts: 62 
36 /   /   
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  ), 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 | 
 | 
  | 
Matti 
Elite Member 
     
  
  
Script Developer and Helper
  
Posts: 1646 Reputation: 39 
33 /   /   
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] 
 |   
 | 
| 11-06-2006 07:04 PM | 
 | 
  | 
cloudhunter 
Senior Member 
    
  
 
Posts: 536 Reputation: 18 
38 / – / – 
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]](http://img.photobucket.com/albums/v383/marissaok/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
  
7255 days, 19 hours, 16 minutes, 10 seconds ago  
 |   
 | 
| 11-07-2006 03:02 PM | 
 | 
  | 
| 
Pages: (3): 
« First
  
 [ 1 ]
 2
 3
 
»
 
Last »
 | 
| 
 |