MAN Posted April 12, 2007 Share Posted April 12, 2007 hi i have plugin for multimedia builder ( mmb) with the name of send.exe this plugin has been created with autoit ver 2 and it use in combinitaion with mmb to automate the set up ( simulating keys strike) but the problem is after the execution of this send.exe it only last 10 seconds and then exit from memory so sometimes befor the apps get to specified windows the send.exe exit so the key strike will not perform this is the script of this send.exe file HideAutoItWin, On SetTitleMatchMode, 2 SetWinDelay,500 SetKeyDelay,1 Repeat, 20 IfWinExist,%2%,,GOTO, SEND SLEEP,500 EndRepeat GOTO, Exit SEND: WinRestore, %2% WinActivate, %2% Send, %1% Exit: REM SEND how should i modify this script so after make it as send.exe it does not exit in 10 seconds for example it last for 1 min thanks so much one of the friends suggest raising the sleep or reapet but did not work still the send.exe exit after 10 sceonds Link to comment Share on other sites More sharing options...
Zedna Posted April 12, 2007 Share Posted April 12, 2007 (edited) Replace: Repeat, 20 by: Repeat, 0 to achieve infinite loop, but then How you want to finish your scripy? Some Hotkey or from tray popupmenu? Edited April 12, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
MAN Posted April 12, 2007 Author Share Posted April 12, 2007 (edited) hi thanks yes the loop is another problem but is there any way for example to define 1 minutes for it and after that it exit not exit in 10 second? P.S just try what you said still it exit after 10 second but why? Edited April 12, 2007 by MAN Link to comment Share on other sites More sharing options...
MAN Posted April 13, 2007 Author Share Posted April 13, 2007 so no idea what should i do? Link to comment Share on other sites More sharing options...
Recommended Posts