You can call Windows API functions (like GetForegroundWindow) from NSIS by using the System plug-in.
Also you can declare variables like structs, integers etc. in NSIS with this plug-in.
I am not a VB coder but it looks like VB is using the same. E.g. this line:
Private Declare Function GetActiveWindow Lib "user32" () As Long looks like it is calling GetActiveWindow from user32.dll library which is pretty the same as NSIS System plug-in does.
|