RacecarSoft Posted January 14, 2009 Share Posted January 14, 2009 (edited) 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 January 15, 2009 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 More sharing options...
Valuater Posted January 14, 2009 Share Posted January 14, 2009 did you check the error output in the bottom screen on SciTe?? 8) Link to comment Share on other sites More sharing options...
RacecarSoft Posted January 14, 2009 Author Share Posted January 14, 2009 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:019:21:02 AutoIt3Wrapper FinishedExit 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 More sharing options...
RacecarSoft Posted January 15, 2009 Author Share Posted January 15, 2009 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:019:21:02 AutoIt3Wrapper FinishedExit 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 More sharing options...
KaFu Posted January 15, 2009 Share Posted January 15, 2009 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 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
L3G3NdKillEr Posted January 15, 2009 Share Posted January 15, 2009 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=----=========================> Link to comment Share on other sites More sharing options...
RacecarSoft Posted January 15, 2009 Author Share Posted January 15, 2009 (edited) 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. Edited January 15, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now