Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Does anyone know what I can put in a script, to do the same thing pressing F1 does? By that I mean open up the options panel. Like for example, if I wanted talking to an NPC to open the options panel, what would I put in the call script.
it's something just like these fullscreen scripts do. they press alt+enter without pressing them.
Code:
$showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
$showm.call(18,0,0,0) # alt down
$showm.call(13,0,0,0) # enter down
$showm.call(13,0,2,0) # enter up
$showm.call(18,0,2,0) # enter up