game_name=".\\Game.ini"
val = "\0"*256
gps = Win32API.new('kernel32', 'GetPrivateProfileString','pppplp', 'l')
gps.call("Game", "Title", "", val, 256, game_name)
val.delete!("\0")
title = val
fw = Win32API.new('user32', 'FindWindow', 'pp', 'i')
hWnd = fw.call("RGSS Player", title)
myMenu = Win32API.new('user32', 'GetSystemMenu', 'll', 'l')
get_Menu = myMenu.call(hWnd,0)
reMenu = Win32API.new('user32', 'RemoveMenu', 'lll', 'l')
MF_BYCOMMAND = 0
ITEM_ID = 40003
reMenu.call(get_Menu,ITEM_ID,MF_BYCOMMAND)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |