Jump to content



Photo

help for script


  • Please log in to reply
3 replies to this topic

#1 MAN

MAN

    Seeker

  • Active Members
  • 12 posts

Posted 12 April 2007 - 10:04 PM

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





#2 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,315 posts

Posted 12 April 2007 - 10:20 PM

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, 12 April 2007 - 10:22 PM.


#3 MAN

MAN

    Seeker

  • Active Members
  • 12 posts

Posted 12 April 2007 - 10:36 PM

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, 12 April 2007 - 10:44 PM.


#4 MAN

MAN

    Seeker

  • Active Members
  • 12 posts

Posted 13 April 2007 - 10:54 AM

so no idea what should i do?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users