module RM_Tray
Add_Tray = Win32API.new("RMTray","_add_tray","l","v")
Modify_Tray = Win32API.new("RMTray","_modify_tray","v","v")
Remove_Tray = Win32API.new("RMTray","_remove_tray","v","v")
buf = 0.chr * 256
gpps = Win32API.new("kernel32","GetPrivateProfileString","pppplp","l")
gpps.call("Game","Title","",buf,256,"./Game.ini")
buf.delete!("\0")
HWND = Win32API.new("user32","FindWindow","pp","i").call("RGSS Player",buf)
def self.add(hwnd = HWND)
Add_Tray.call(hwnd)
end
def self.modify
Modify_Tray.call
end
def self.remove
Remove_Tray.call
end
end
RM_Tray.add
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |