RunWait, "c:\adresář se soubory\můj program.exe"System cannot find the file. Must I save my script in Windows 1250 encoding or how should I tell the program that path is in Unicode?
[SOLVED] cannot launch program
Posted 22 May 2012 - 11:25 AM
Posted 22 May 2012 - 12:31 PM
1. make a shortcut to the program and call it c:\test.lnk
2. change the code to RunWait, c:\test.lnk
3. see if that helps
Posted 22 May 2012 - 02:02 PM
Posted 22 May 2012 - 03:04 PM
#p:: send ^c IfWinNotExist , SAPI5 TTSAPP RunWait, "P:\PROGRAMY\jiné\TTS Voices\MS Speech SDK 5.1\Bin\TTSApp.exe" WinActivate , SAPI5 TTSAPP Click 300, 100 send ^a send ^v ControlSend, Speak, SAPI5 TTSAPP Click 498, 106 ; WinMove, SAPI5 TTSAPP, , 200,500 returnNormally when the program is opened (but not active) is will copy text, and activate window and insert text and play. But If I close the window, then I want to open new window and to do the same action as above. But after opening the program by script, nothing plays. Then when I close the program, it looks, that the rest of script starts continuing. But I would want to continue just after the Window is opened by script.
Posted 22 May 2012 - 03:17 PM
Run, it will run the program, then continue with the script
You should follow Run with WinWait or WinWaitActive to give the program a chance to open.