Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(3 Kb)
Download
Updated: 01-12-09 06:13 PM
Pictures
File Info
Updated:01-12-09 06:13 PM
Created:01-06-09 03:31 PM
Downloads:1,369
Favorites:3
MD5:
Bi
Version: 2
by: hypehuman [More]
Bi
version 2
by hypehuman

---------
Overview:
---------

For help, type /bi

This addon allows you to send lua scripts to be executed on another player's client, and vice versa. You must explicitly allow another player to send you scripts, but do so very carefully, because allowing them will give them access to your entire UI!

---------
Using Bi:
_________

To send a script to another player:
/bi send <playername> <script>
Bi_Qian("script", "playername")
"script" is a string that will be executed on the target's client using RunScript(). Make the string say exactly what you want the your target's client to interpret.

To allow a player to send scripts to be run on your client:
/bi allow <playername>
Bi_TongRen("playername")

To no longer recieve scripts from a player:
/bi disallow <playername>
Bi_Bo("playername")

To print a list of players who can currently send you scripts:
/bi who

---------
Examples:
---------

To make Isildifin sheath or unsheath his weapon:
/bi send Isildifin ToggleSheath()
Bi_Qian("ToggleSheath()", "Isildifin")

To get the value of Isidifin's variable X and store it in your variable Y:
/bi send Isildifin Bi_Qian("Y = "..X, "MyName")
Bi_Qian("Bi_Qian(\"Y = \"..X, \"MyName\")", "Isildifin")

---------
Changelog:
---------

Version 2 (1/12/08)
*Scripts to/from players from other servers in battlegrounds should now work properly.
Version 2 (1/12/08)
Scripts to/from players from other servers in battlegrounds should now work properly.
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Author
Date
 Bi
1
3kB
hypehuman
01-06-09 03:33 PM


Post A Reply Comment Options
Unread 01-06-09, 09:27 PM  
syrupk
A Cliff Giant
 
syrupk's Avatar
AddOn Author - Click to view AddOns

Forum posts: 71
File comments: 200
Uploads: 25
This seems unsafe somehow. Can you explain this some more to us?
__________________
I guess my brain will never work right. At least Im pretty.
syrupk is offline Report comment to moderator  
Reply With Quote
Unread 01-06-09, 09:44 PM  
septor
A Flamescale Wyrmkin

Forum posts: 130
File comments: 92
Uploads: 0
I can actually see this only being handy if you multi-box.
septor is offline Report comment to moderator  
Reply With Quote
Unread 01-07-09, 12:34 AM  
hypehuman
A Deviate Faerie Dragon
 
hypehuman's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 86
Uploads: 8
Originally posted by syrupk
This seems unsafe somehow. Can you explain this some more to us?
Sure. The addon will not let just anyone send you scripts; you must specifically name them in order to receive scripts from them. However, you must be careful about who you name, since they can basically do whatever they want to you ("/send name while true do end" anyone?). For that reason, the other person will probably be yourself. I use this when I'm testing addons that have inter-player functionality; it helps me control my trial account character without having to run across the house.
hypehuman is offline Report comment to moderator  
Reply With Quote
Unread 01-07-09, 01:41 AM  
Yuriko
A Murloc Raider
 
Yuriko's Avatar

Forum posts: 4
File comments: 27
Uploads: 0
This does indeed look like it would be extremely well suited for multi-boxing.

Man, now I have to try and learn scripting, lol
__________________
"...but you and I, we've been through that, and this is not our fate. So let us not talk falsely now. The hour's getting late."
Last edited by Yuriko : 01-07-09 at 01:41 AM.
Yuriko is offline Report comment to moderator  
Reply With Quote
Unread 01-14-09, 05:23 AM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 19
May you add an option for a pass-code/key and a pop-up box asking if we want to run the code or not with the text of the key in it, in addition to the white-list? These two features would help reduce unintended abuse. And the pass-code, it only ought to be sent once per session, and saved in the saved vars; I ask about this key because it is more likely for the account to be compromised then the local machine and the sv file for the account along with the account. The key would add another layer of security, provided the user does not use the same one for different instances of the program across different accounts.

Another question: Any future support for more then what SendChatMessage/SendAddonMessage can cary at a time? Such as, the mod tells the other instance of the mod how many lines of code, wait for all the lines of code for a block to be received, put them in the right order and concatenated them together, and then call the RunScript() on the full block? This would be a rather useful lib, in my opinion, if it did that. Also, you might want to use ChatFilterLib for sending the messages, it helps throttle the messages.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Mike-N-Go is offline Report comment to moderator  
Reply With Quote
Unread 01-14-09, 09:48 PM  
hypehuman
A Deviate Faerie Dragon
 
hypehuman's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 86
Uploads: 8
Originally posted by Mike-N-Go
May you add an option for a pass-code/key and a pop-up box asking if we want to run the code or not with the text of the key in it, in addition to the white-list? These two features would help reduce unintended abuse. And the pass-code, it only ought to be sent once per session, and saved in the saved vars; I ask about this key because it is more likely for the account to be compromised then the local machine and the sv file for the account along with the account. The key would add another layer of security, provided the user does not use the same one for different instances of the program across different accounts.

Another question: Any future support for more then what SendChatMessage/SendAddonMessage can cary at a time? Such as, the mod tells the other instance of the mod how many lines of code, wait for all the lines of code for a block to be received, put them in the right order and concatenated them together, and then call the RunScript() on the full block? This would be a rather useful lib, in my opinion, if it did that. Also, you might want to use ChatFilterLib for sending the messages, it helps throttle
the messages.
The confirmation and/or passcode are good ideas, but the confirmation box should certainly be an option, otherwise it would kill the ability to remotely control the UI of another computer. As for the multiple lines, this feature is already in it. You can send scripts that are as lengthy as you like
hypehuman is offline Report comment to moderator  
Reply With Quote
Unread 01-18-09, 10:32 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 19
Originally posted by hypehuman
The confirmation and/or passcode are good ideas, but the confirmation box should certainly be an option, otherwise it would kill the ability to remotely control the UI of another computer. As for the multiple lines, this feature is already in it. You can send scripts that are as lengthy as you like
Not to pop up the box on every request to run remote code, but for an option to have that. Or have it notify the user, "SOMEONE would like to send some scripts to run, pick an option (always allow) or (ignore) or (this session only)?" This would add the security if people want it, and some users might want that. Or, the popup box could be an 'allow for this session. You could add an option for people to have them on the allow list and authorize per session. I suggest these things because what this mod does has great power, and we may want to protect the user from themselves and others =].



I do not have two accounts, so I cannot really test your mod. Thanks for the reply =]
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Mike-N-Go is offline Report comment to moderator  
Reply With Quote
Unread 02-08-11, 03:52 AM  
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view AddOns

Forum posts: 566
File comments: 115
Uploads: 29
THIS IS AWESOME!!!
给力!!~~

__________________
Ketho is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: