gui to front of Sw

i hae a few macros that i've written that have GUI in them.  they work fine, but when i first start any oif them, they do not come to the forefront of the screen.  i have to Alt-Tab through my open windows until i find the GUI and bring it to the front manually.  once i do that, it comes to the front automatically when i run the program, for the rest of that session.  any ideas?

thanks

Tom

SolidworksApi macros