Jump to content
Sign in to follow this  
MAN

help for script

Recommended Posts

MAN

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

Share this post


Link to post
Share on other sites
Zedna

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 by Zedna

Share this post


Link to post
Share on other sites
MAN

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 :shocked: but why?

Edited by MAN

Share this post


Link to post
Share on other sites
MAN

so no idea what should i do?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×