Hej Benn,
The problem is ActiveWindow returns 0 in some cases.
Just went through this please see thread(s):
Thread #
500554 Thread #
502433 My solution was to set the ActiveWindow of the app in the start up as a global
variable and then change is_run32 to use this instead of checking each time
for the ActiveWindow.