Jump to content
Sign in to follow this  
RacecarSoft

WinWaitClose dosen't work [SOLVED]

Recommended Posts

RacecarSoft

I'm trying to make my script pause until WinRAR finishes making an archive, but instead AutoIt just quits, what's wrong?

EDIT: SOLVED! Solution: Use this:

If Not IsDeclared("$winrardir") Then Dim $winrardir;Do not put rar.exe at the end.
If Not IsDeclared("$filetoarchive") Then Dim $filetoarchive
$winrardir = "path to winrar or where rar.exe is";Example, C:\Program Files\WinRAR
$filetoarchive = "file you want to be put in a rar archive";Example, "C:\Downloads\file.file" (for files) or "C:\files" (for folder)
Run("cmd.exe")
WinWait("C:\WINDOWS\system32\cmd.exe")
If Not WinActive("C:\WINDOWS\system32\cmd.exe", "") Then WinActivate("C:\WINDOWS\system32\cmd.exe")
Send('cd ' & $winrardir & '{ENTER}rar a "' & $filetoarchive & '"{ENTER}')
Edited by RacecarSoft

[s]Visit My Website[/s] (this isn't up 24/7). (SITE DOWN) This is now a HP MediaSmart site, I'm trying to get my server working the way I want it to.24/7 site (make sure you have noscript, sorry!): 24/7 [u]WARNING: MUST have NoScript so you can block quantserve/quantcast![/u] If you don't, the evil freewebs/webs/quantcast/quantserve/WHATEVER virus will get you![spoiler]Hey, look! It's a spoiler![/spoiler]Software: KeyPress, Advanced Calculator (not autoit), WUK (Windows Update Killer)my account over a year old : >... I do Linux.

Share this post


Link to post
Share on other sites
Valuater

did you check the error output in the bottom screen on SciTe??

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
RacecarSoft

did you check the error output in the bottom screen on SciTe??

8)

I don't remember seeing any errors but I'll look again now...

No errors that I see.

I get this at the end:

...19:21:01 AutoIT3.exe ended.rc:0

19:21:02 AutoIt3Wrapper Finished

Exit code: 0...


[s]Visit My Website[/s] (this isn't up 24/7). (SITE DOWN) This is now a HP MediaSmart site, I'm trying to get my server working the way I want it to.24/7 site (make sure you have noscript, sorry!): 24/7 [u]WARNING: MUST have NoScript so you can block quantserve/quantcast![/u] If you don't, the evil freewebs/webs/quantcast/quantserve/WHATEVER virus will get you![spoiler]Hey, look! It's a spoiler![/spoiler]Software: KeyPress, Advanced Calculator (not autoit), WUK (Windows Update Killer)my account over a year old : >... I do Linux.

Share this post


Link to post
Share on other sites
RacecarSoft

I don't remember seeing any errors but I'll look again now...

No errors that I see.

I get this at the end:

...19:21:01 AutoIT3.exe ended.rc:0

19:21:02 AutoIt3Wrapper Finished

Exit code: 0...

Bump.

[s]Visit My Website[/s] (this isn't up 24/7). (SITE DOWN) This is now a HP MediaSmart site, I'm trying to get my server working the way I want it to.24/7 site (make sure you have noscript, sorry!): 24/7 [u]WARNING: MUST have NoScript so you can block quantserve/quantcast![/u] If you don't, the evil freewebs/webs/quantcast/quantserve/WHATEVER virus will get you![spoiler]Hey, look! It's a spoiler![/spoiler]Software: KeyPress, Advanced Calculator (not autoit), WUK (Windows Update Killer)my account over a year old : >... I do Linux.

Share this post


Link to post
Share on other sites
KaFu

Whats the exact title you're searching for? Maybe switching to

Opt("WinTitleMatchMode", 2)     ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase

will help...

Best Regards

Share this post


Link to post
Share on other sites
L3G3NdKillEr

Try while and wend loop.. are you using it..? :)


i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>

Share this post


Link to post
Share on other sites
RacecarSoft

Try while and wend loop.. are you using it..? :)

It just makes the script stop.

EDIT: Problem solved, maybe it's about time we all use the good ol' command prompt for winrar. :lmao:

Edited by RacecarSoft

[s]Visit My Website[/s] (this isn't up 24/7). (SITE DOWN) This is now a HP MediaSmart site, I'm trying to get my server working the way I want it to.24/7 site (make sure you have noscript, sorry!): 24/7 [u]WARNING: MUST have NoScript so you can block quantserve/quantcast![/u] If you don't, the evil freewebs/webs/quantcast/quantserve/WHATEVER virus will get you![spoiler]Hey, look! It's a spoiler![/spoiler]Software: KeyPress, Advanced Calculator (not autoit), WUK (Windows Update Killer)my account over a year old : >... I do Linux.

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  

×