Jump to content



Photo
- - - - -

Executing an app from FP


  • Please log in to reply
15 replies to this topic

#1 BarryS

BarryS

    Enthusiast

  • Silver Supporter
  • 304 posts

  • Flag: ---------

  • Favorite Pinball: LOTR

Posted 25 October 2010 - 07:55 PM

Is it possible to have FP launch an external app (say foo.exe) from the initialization script?

#2 Sebek74

Sebek74

    Enthusiast

  • Members
  • PipPipPip
  • 114 posts
  • Location:Lodz, Poland

  • Flag: Poland

  • Favorite Pinball: Pinball Dreams: Ignition

Posted 26 October 2010 - 12:11 PM

QUOTE (BarryS @ Oct 25 2010, 09:55 PM) <{POST_SNAPBACK}>
Is it possible to have FP launch an external app (say foo.exe) from the initialization script?


There is thread at gopinball about creation of external objects outside the script. I've already tested CreateObject method and failed with standard windows, or custom objects. It seems that the script has no permission to do that.
Executing just exe is even more complicated thing and VB doesn't support that with any command (it could be realized by external object created by CreateObject).
Sebek74
Visit http://futurepinball.mm.com.pl/ for my tables download: Ignition, Beat-Box, Nightmare, Billion Dollar Gameshow, Wild West
http://futurepinball...om.pl/Gfx2DmdF/ for Gfx2DmdF font conversion
http://picasaweb.google.com/sebek74 - personal photo gallery

#3 BarryS

BarryS

    Enthusiast

  • Silver Supporter
  • 304 posts

  • Flag: ---------

  • Favorite Pinball: LOTR

Posted 26 October 2010 - 01:41 PM

QUOTE (Sebek74 @ Oct 26 2010, 05:11 AM) <{POST_SNAPBACK}>
QUOTE (BarryS @ Oct 25 2010, 09:55 PM) <{POST_SNAPBACK}>
Is it possible to have FP launch an external app (say foo.exe) from the initialization script?


There is thread at gopinball about creation of external objects outside the script. I've already tested CreateObject method and failed with standard windows, or custom objects. It seems that the script has no permission to do that.
Executing just exe is even more complicated thing and VB doesn't support that with any command (it could be realized by external object created by CreateObject).


Yeah, I tried that with no success... sad.gif

#4 Sebek74

Sebek74

    Enthusiast

  • Members
  • PipPipPip
  • 114 posts
  • Location:Lodz, Poland

  • Flag: Poland

  • Favorite Pinball: Pinball Dreams: Ignition

Posted 26 October 2010 - 05:59 PM

QUOTE (BarryS @ Oct 26 2010, 03:41 PM) <{POST_SNAPBACK}>
QUOTE (Sebek74 @ Oct 26 2010, 05:11 AM) <{POST_SNAPBACK}>
QUOTE (BarryS @ Oct 25 2010, 09:55 PM) <{POST_SNAPBACK}>
Is it possible to have FP launch an external app (say foo.exe) from the initialization script?


There is thread at gopinball about creation of external objects outside the script. I've already tested CreateObject method and failed with standard windows, or custom objects. It seems that the script has no permission to do that.
Executing just exe is even more complicated thing and VB doesn't support that with any command (it could be realized by external object created by CreateObject).


Yeah, I tried that with no success... sad.gif


I referred to global high scores idea thread. I believe further tries are pointless.
The only idea I still have is that Black added reference to some object in script that is not documented (and can be used for some useful purposes). If you know anything about script engine processing: script can be extended from ouside by some objects that you can refere by name. I assume that for every on table object one interface is added so you can call it's methods directly. The same method is used for adding Request/Response/Server to ASP script processor.

I'm presenting below my idea of global highscore system. As I said it cannot be realized until external object creation is not allowed.

Edited by Sebek74, 27 October 2010 - 07:40 AM.

Sebek74
Visit http://futurepinball.mm.com.pl/ for my tables download: Ignition, Beat-Box, Nightmare, Billion Dollar Gameshow, Wild West
http://futurepinball...om.pl/Gfx2DmdF/ for Gfx2DmdF font conversion
http://picasaweb.google.com/sebek74 - personal photo gallery

#5 rascal

rascal

    two-faced as they come

  • VIP
  • 1,378 posts
  • Location:Indiana USA

  • Flag: United States of America

  • Favorite Pinball: Bally Eight Ball



Posted 27 October 2010 - 06:45 PM

I believe that running ActiveX and COM objects was purposely blocked by Black due to vpinmame being hacked to FP without his permission at one point in the past. At least that is what I recall. So calling of outside objects will never work unless he has a change of heart.

Posted Image


#6 light66

light66

    Hobbyist

  • Members
  • PipPip
  • 41 posts
  • Location:Denmark

  • Flag: Denmark

  • Favorite Pinball: ATM T2

Posted 27 October 2010 - 07:23 PM

As i remember it it was because he hated all the idiots (his own words) that would flood the forum with requests for ROM's........

light

#7 The Loafer

The Loafer

    Pinball Wizard

  • VIP
  • 3,472 posts
  • Location:Embrun, Ontario, Canada

  • Flag: ---------

  • Favorite Pinball: Superman, Firepower & Tron



Posted 29 October 2010 - 03:09 PM

It may have turned into a rom thing, but I'm not 100% sure that was the sole originaltor being this limitation. I think I recall a chat conversation with Black from a long time ago that there was always the possibility someone could use the ability to execute external code into something malicious, so at least part of the original intent may have been a security thing. I could be wrong though; that really was a long time ago; I think not long after he did the jumpman game.

#8 BarryS

BarryS

    Enthusiast

  • Silver Supporter
  • 304 posts

  • Flag: ---------

  • Favorite Pinball: LOTR

Posted 29 October 2010 - 03:31 PM

Understand the reason. What I am trying to do is far from malicious. smile.gif

#9 TheNalex

TheNalex

    Enthusiast

  • VIP
  • 115 posts

  • Flag: France

  • Favorite Pinball: Terminator 2

Posted 29 October 2010 - 06:54 PM

QUOTE (The Loafer @ Oct 29 2010, 05:09 PM) <{POST_SNAPBACK}>
It may have turned into a rom thing, but I'm not 100% sure that was the sole originaltor being this limitation. I think I recall a chat conversation with Black from a long time ago that there was always the possibility someone could use the ability to execute external code into something malicious, so at least part of the original intent may have been a security thing. I could be wrong though; that really was a long time ago; I think not long after he did the jumpman game.


You are totally correct. Black thought that having the ability to create activeX object (or other type, it's not the point), is / was a major security hole.
Webmaster of FPRelease

#10 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,338 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 29 October 2010 - 07:32 PM

And just how many malicious, unsafe objects have been created and used with Visual Pinball? Name one. Just because you could open a wshell and execute format c: doesn't mean people would do this. But Black knows best - it's for your own good he says...and no, you won't be able to utilize 90% of possible external functionality until that is changed, or he adds custom support for what you want in a new exe.

Build a fire, vipers love the heat.


#11 The Loafer

The Loafer

    Pinball Wizard

  • VIP
  • 3,472 posts
  • Location:Embrun, Ontario, Canada

  • Flag: ---------

  • Favorite Pinball: Superman, Firepower & Tron



Posted 29 October 2010 - 10:53 PM

Not disputing what you are saying Brian, just mentioning what I think Chris had told me, since that POV was not presented in this thread.

#12 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,338 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 30 October 2010 - 12:20 AM

In that case I think if he could prevent people from using copyrighted images and copyrighted sounds in Future Pinball, he would want to do that too. But that's just my POV. The short and skinny summary of this thread is - no, you can't access a highscore system on the internet with Future Pinball at this time - maybe the next version will add a solution, and it would probably want to synchronize the scores by the client pc specs since FP will play differently based on that.

Build a fire, vipers love the heat.


#13 BarryS

BarryS

    Enthusiast

  • Silver Supporter
  • 304 posts

  • Flag: ---------

  • Favorite Pinball: LOTR

Posted 31 October 2010 - 01:04 AM

All,

I really did not mean for this to be a VP vs FP post.

Anyway, I was able to do what I wanted with VP, so all is good.

#14 TheNalex

TheNalex

    Enthusiast

  • VIP
  • 115 posts

  • Flag: France

  • Favorite Pinball: Terminator 2

Posted 31 October 2010 - 05:21 PM

QUOTE (BarryS @ Oct 31 2010, 03:04 AM) <{POST_SNAPBACK}>
I really did not mean for this to be a VP vs FP post.


You'll learn that on this particular forum, it's more or less always the same... specially when FP is the main topic.

Edited by TheNalex, 31 October 2010 - 05:22 PM.

Webmaster of FPRelease

#15 Noah Fentz

Noah Fentz

    'Rasslin' Fan

  • VPF Administrator
  • 12,282 posts
  • Location:South Lyon, MI

  • Flag: United States of America

  • Favorite Pinball: Whitewater

  • PS3 Gamer Tag: noahfentz


Contributor

Posted 31 October 2010 - 06:44 PM

I don't see where this turned into VP vs FP.

think.gif

You'll also learn that I have been handing out warnings to those flaming the FP community on this site. Let's not be so judgmental of 'the site' when I've put a lot of effort into setting up an FP section and making an entire community of 'FPugees' feel welcome.

wink.gif

IdleReel.gif RumbleDMD.jpg HS2-DMD.jpg SBM.jpg ww_logo.jpg EK.jpg

 
T2.jpg Sorcerer.jpg Breakshot.jpg Firepower.jpg GorGar.jpg StarTrek.jpg


My Photobucket Resources
Whether You Believe You Can, Or You Can't, You Are Right." - Henry Ford
The future of pinball lives, it just needs to be nurtured!
If you're here to stab me in the back, you're going to have to get in line.


#16 BarryS

BarryS

    Enthusiast

  • Silver Supporter
  • 304 posts

  • Flag: ---------

  • Favorite Pinball: LOTR

Posted 31 October 2010 - 08:02 PM

Sigh... smile.gif