View Single Post
Old 29th March 2016, 07:06   #5
Major Dude
T.Slappy's Avatar
Join Date: Jan 2006
Location: Slovakia
Posts: 555
Send a message via ICQ to T.Slappy
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.

Cool looking installers with custom design:
Create Setup Pages easily:
Build installers in Visual Studio 2005-2019:
or RAD Studio 2009, 2010, XE-10.4 Sydney:
T.Slappy is offline   Reply With Quote