Hello
I have this function :
--------------------------------------------------------
import sys
import win32com.client
import win32api
def close_softawre( "name")
shell = win32com.client .Dispatch("WScr ipt.Shell")
shell.AppActiva te ("name")
win32api.Sleep( 100)
shell.SendKeys ("%{F4}")
---------------------------------------------------------
But sometimes i have any problemes, the programme is not activate a time !!!
==> this is wsh !! i don't know translate in python
Do while WshShell.AppAct ivate ("name") = FALSE
wscript.sleep 100
loop
Thank a lot
a french guy
I have this function :
--------------------------------------------------------
import sys
import win32com.client
import win32api
def close_softawre( "name")
shell = win32com.client .Dispatch("WScr ipt.Shell")
shell.AppActiva te ("name")
win32api.Sleep( 100)
shell.SendKeys ("%{F4}")
---------------------------------------------------------
But sometimes i have any problemes, the programme is not activate a time !!!
==> this is wsh !! i don't know translate in python
Do while WshShell.AppAct ivate ("name") = FALSE
wscript.sleep 100
loop
Thank a lot
a french guy
Comment