SRL Archive - Help

Calling Native Functions


LolL

2012-04-06 20:19:13

How does one call a native function from within Simba?

Specifically, I'm interested in BlockInput, GetFocus, and SetFocus.

nielsie95

2012-04-08 18:16:14

AllowSysCalls will have to be on in the settings:


function GetModuleFileName(
Module: Cardinal; FileName: TCharArray; Size: Cardinal
): Cardinal; external 'GetModuleFileNameA@kernel32 stdcall';

You can see other examples in the associate and CRov extensions.