Jump to content

WinWaitClose dosen't work [SOLVED]


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...