Checking focus of program

Blitz3D Forums/Blitz3D Programming/Checking focus of program

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Put this in your "Userlibs" folder.
;------ Userlib *.decls

.lib "User32.dll"
GetActiveWindow%()
GetForegroundWindow%()


Then you can use them like any other command.