General information
Category:
Coding, syntax & commands
Hello again
Sorry for your time.
I make a very simple example in a test project with a main.prg with the following code :
_Screen.Caption = "xxx"
Local lnWinHandle
Declare Integer FindWindow In Win32API Integer, String
lnWinHandle = FindWindow(0, "xxx")
=Messagebox(str(lnWinhandle))
If lnWinHandle <> 0
=Messagebox( "You already Started application", 16 )
Cancel
Endif
=Messagebox( "You are in the applicatrion")
It always return me lnWinHandle > 0
Thanks again
Petros
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only