Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.29 KB | None | 0 0
  1. # Load railgun if it isn't already                                                                                                                                          
  2. if client.railgun.present? != true                                                                                                                                          
  3.     client.core.use("railgun")                                                                                                                                          
  4.     print_status("Railgun wasn't present.. Loaded")                                                                                                                    
  5. end      
  6.  
  7. if client.railgun.dll['user32'] == nil
  8.     client.railgun.add_dll('user32','user32.dll')
  9. end
  10.  
  11. if (client.railgun.user32.functions['MessageBoxA']) == nil
  12.     client.railgun.add_function( 'user32', 'MessageBoxA', 'DWORD',[
  13.     ["DWORD","hWnd","in"],
  14.     ["PCHAR","lpText","in"],
  15.     ["PCHAR","lpCaption","in"],
  16.     ["DWORD","uType","in"],
  17.     ])
  18. end
  19.  
  20. client.railgun.user32.MessageBoxA(0, "Hello", "world", 0x00000000) # 0x00000000 is MB_OK, but constant "MB_OK" didn't work for some reason
  21. # 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