12/08/15 00:36:30.63 lu991HzH0.net
>301 書いてみた. 試してみて.
config.pyの configure() 内の先頭に以下をこぴぺ(全角スペース->半角スペースx2)
def FGorExecute(path):
def ret(args):
def windows():
child = pyauto.Window.getDesktop().getFirstChild()
yield child
while child:
yield child
child = child.getNext()
raise StopIteration()
flg = False
for wnd in windows():
try:
if wnd.getProcessName() == os.path.split(path)[1]:
wnd.setForeground(True)
flg = True
except: pass
if not flg:
window.command_ShellExecute( None, path, u"", u"" )(args)
return ret
2. window.launcher.command_list に追加 (V2Cの場合)
( u"V2C", FGorExecute( ur"C:\V2C\V2C_x64.exe") ),