` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Check for multiple instances of a program
1998-02-07 -- Steven Gallafent
 
You need to make three additions under global embeds: At "Inside the Global Map" add: MODULE('WINAPI') FindWindow(<*CSTRING>,*CSTRING),UNSIGNED,PASCAL,RAW, NAME('FindWindowA') SetForegroundWindow(UNSIGNED),SIGNED,PASCAL END At "Global Data" add: FindWindowName CSTRING(50) FindWindowHandle UNSIGNED At "Program Setup" add: FindWindowName = 'Peoples Favorite Colors' FindWindowHandle = FindWindow(,FindWindowName) IF FindWindowHandle SetForegroundWindow(FindWindowHandle) DctKill !Omit these two lines if not using ABC templates GlobalErrors.Kill !Omit these two lines if not using ABC templates RETURN END


Today is April 30, 2024, 3:33 am
This article has been viewed 35108 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: