Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Load railgun if it isn't already
- if client.railgun.present? != true
- client.core.use("railgun")
- print_status("Railgun wasn't present.. Loaded")
- end
- if client.railgun.dll['user32'] == nil
- client.railgun.add_dll('user32','user32.dll')
- end
- if (client.railgun.user32.functions['MessageBoxA']) == nil
- client.railgun.add_function( 'user32', 'MessageBoxA', 'DWORD',[
- ["DWORD","hWnd","in"],
- ["PCHAR","lpText","in"],
- ["PCHAR","lpCaption","in"],
- ["DWORD","uType","in"],
- ])
- end
- client.railgun.user32.MessageBoxA(0, "Hello", "world", 0x00000000) # 0x00000000 is MB_OK, but constant "MB_OK" didn't work for some reason
- # error was [-] Error in script: RuntimeError Param MB_OK (class String) cannot be converted to a number. It's a string but matches no constants I know.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement