Skip to content

Instantly share code, notes, and snippets.

@PedroHLC
Created July 8, 2013 23:00
Show Gist options
  • Save PedroHLC/5953210 to your computer and use it in GitHub Desktop.
Save PedroHLC/5953210 to your computer and use it in GitHub Desktop.
IMBC's Digimon Masters Online - Alternative Game Starter
#IMBC's Digimon Masters Online - Alternative Game Starter
#Developed by PedroHLC <[email protected]>
#Version: 0.1 [WORKING]
#This script starts the game without Internet Explorer
require 'win32ole'
DIGITALIC_LAUNCHER_CLSID='{21CEC2FC-24FA-4EEB-A043-3CC248060880}'
DIGITALIC_LAUNCHER_PROGID='DIGITALICLAUNCHE.DigitalicLauncheCtrl.1'
$GameStartControl = WIN32OLE.new DIGITALIC_LAUNCHER_PROGID
$GameStartControl.ole_activex_initialize
#params from: http://dm.imbc.com/inc/xml/launcher.aspx
def GameStartAction(params)
objLaun = $GameStartControl
return -1 if objLaun == nil
return -2 if !objLaun.IsGameLaunching
# VERSION VERIFICATION -- NOT WORKING
#begin
#launVersion = objLaun.GetFileVersion
#launLastet = objLaun.version
#if launVersion != launLastet
#puts '버젼정보가 올바르지 않습니다. 다시 시도해 주세요. \n(Version : ' + LaunVersion + ')'
#return -3
#end
#rescue Exception => e
#puts '설치중 오류가 발생하였습니다. 런처를 재설치 해주세요.'
#return -4
#end
gameLaunchingResult = $GameStartControl.GameLaunching params
if gameLaunchingResult
return 0
else
return -5
end
end
#use params from: http://dm.imbc.com/inc/xml/launcher.aspx
#*you'll need to be logged on: http://member.imbc.com/Login/Login.aspx
GameStartAction('#{param1} #{param2} 1 IMBC REAL')
@PedroHLC
Copy link
Author

É para substituir a mão os '#{param*}'...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment