Hi
Use could use the shellexecute api, here is a sample snippet of code
Declare INTEGER FindWindow IN "user32" String strClassName, INTEGER lpWindowName
Declare INTEGER ShellExecute IN "Shell32" Integer hWnd , String lpszOp ,String lpszFile ,String lpszParams , String lpszDir ,Integer fsShowCmd
? ShellExecute(0, "Open", "c:\MY DOCUMENTS\PKZIP.EXE", "", "", 0)
wait wind "no show"
? ShellExecute(0, "Open", "c:\MY DOCUMENTS\PKZIP.EXE", "", "", 1)
wait wind "normal"
? ShellExecute(0, "Open", "c:\MY DOCUMENTS\PKZIP.EXE", "", "", 2)
wait wind "minimised"
? ShellExecute(0, "Open", "c:\MY DOCUMENTS\PKZIP.EXE", "", "", 3)
wait wind "maximised"
?FindWindow("tty",1)
?FindWindow("tty",0)
hope this helps
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement