Put this in your "Userlibs" folder.
Then you can use them like any other command.
;------ Userlib *.decls .lib "User32.dll" GetActiveWindow%() GetForegroundWindow%()
Then you can use them like any other command.