ID:1607116
 
(See the best response by Stephen001.)
Problem description:
shell("notepad.exe")
Ok, that is a simple code that works very well. It opens the notepad for us. The problem is that if we include it in a game and if we host the game, the code won't work...

For Example:
mob/verb/Notepad()
shell("notepad.exe")
That verb would work fine but if the game in which it is included is being hosted then it won't work... How can i fix that?and why does this happen?


Thanks
,MistY,


Best response
Well, it opens on the host's machine, as that's where the code is being executed. You can't open programs on people's clients with shell().

Is that your problem, that the person calling this verb when it's hosted, is not seeing notepad?
In response to Stephen001
Yeah, that's the problem.

it opens on the host's machine
So does that means that if i'm the hoster the verb will work for me since my computer is the host machine, correct? If that's true then why doesn't it works for me when i'm the one who hosts the game?

Is it possible to open notepad in the person's computer which is calling the verb when it's hosted?

Thanks,
,MistY,
No. That'd be a huge security risk.
In response to Super Saiyan X
What about this
run("notepad.exe")

Do u think that it will work?
PS im Just asking because im curious about it

Thanks,
,MistY,
no. it won't work.
In response to Super Saiyan X
Ohh ok, thanks ;)

,MistY,