This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Tigerlife's profile picture

get player? also paste-bin question

Started by Tigerlife, 03 January 2017 - 07:52 AM
Tigerlife #1
Posted 03 January 2017 - 08:52 AM
is it possible to pass off an event with a player detection? such as:

event, player, x, y = os.pullEvent("mouse_click")
and get the player name from that 'player' variable?
(from use with advanced monitor)

Also, is there a way to get a paste-bin link using a program rather then copying it manually?
Bomb Bloke #2
Posted 03 January 2017 - 09:01 AM
is it possible to pass off an event with a player detection? such as:

event, player, x, y = os.pullEvent("mouse_click")
and get the player name from that 'player' variable?

No, and nor can your real computer's mouse tell who's pressing it. This is why we mostly rely on passwords.

Also, is there a way to get a paste-bin link using a program rather then copying it manually?

Get from where? Copying from where to where?

If you want one of your own scripts to download the contents of a paste to your computer, one simple method is to just use shell.run(). Eg:

shell.run("pastebin get nKQZwgtv bbtetris")