Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Javascript/php]? How Would I Set Up A Function To Launch A File Using The Registry

Custom Title Activated
Loyal Member
Joined
Nov 14, 2007
Messages
1,829
Reaction score
177
I would like to know how i would setup a function to launch an app in my registry on my website, similar to how xfire would launch games?

Here is a modded game from xfire to launch mine:
Code:
LongName=Old School GunZ: The Duel
ShortName=Old School Gunz
LauncherDirKey=HKEY_LOCAL_MACHINE\SOFTWARE\Old School GunZ\DestDir
LauncherExe=GunzLauncher.exe
DetectExe=Gunz.exe
Launch=%UA_LAUNCHER_EXE_PATH% %UA_LAUNCHER_EXTRA_ARGS% %UA_LAUNCHER_NETWORK_ARGS%
InGameRenderer=D3D9
InGameFlags=USE_PRESENT|ENABLE_MOUSE|USE_DINPUT_MOUSE|DISABLE_RELEASE
ChangeTolerance=6
 
Master Summoner
Joined
Oct 9, 2008
Messages
572
Reaction score
14
I think its impossible to have jscript or php for that sake to run a program. But I have an idea.
Make a small application, be sure to have a database there, cause you would make the application check if a value inside the database (you should make a table for it), so when, on the website, something is triggered, it would change the value of a row in the database, and the application, which is looping (maybe an infinite loop?) to check if the value is this or that. If the value is that, it does whatever you want, else it keeps checking.
Just a thought. ^^
 
Experienced Elementalist
Joined
May 6, 2008
Messages
230
Reaction score
52
You would need ot use javascript and a browser plugin if im not wrong.
other option is
PHP:
<script language="JavaScript" type="text/javascript">  
MyObject = new ActiveXObject( "WScript.Shell" )  
function RunNotePad()   
{  
MyObject.Run("notepad.exe") ;  
}    
</script> 
<button onclick="RunNotePad()">Start Notepad</button>

You might try a aspx script, im ot very familiar with it but it uses the common coding languages C#, VB
 
Custom Title Activated
Loyal Member
Joined
Feb 27, 2004
Messages
1,378
Reaction score
50
On IE.. use activeX... on Firefox use a plugin.

there is no such thing crossbrowser solution. that's why i dont touch this things with a 10 foot pole
 
Back
Top