Sign in to follow this  
Followers 0
MAN

a bit of help

5 posts in this topic

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, #{ALTDOWN}#{PRINTSCREEN}#{ALTUP}

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

Share this post


Link to post
Share on other sites

idont think it is something realated to the autoit version i am just asking for help on how to modify this script in away i have asked

thanks :shocked:

Share this post


Link to post
Share on other sites

I haven't used anything but V3 but I'm guess its this...

Repeat, 20

IfWinExist,%2%,,GOTO, SEND

SLEEP,500

repeating sleep(500) 20 times is 10000 which is 10 seconds. So depending on what you want increase the Repeat command or the sleep command.


While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites

idont think it is something realated to the autoit version i am just asking for help on how to modify this script in away i have asked

thanks :shocked:

Try posting this in the AutoIt v2 Help and Support forum instead of AutoIt v3... maybe.

:(


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0