Waiting for a process to finish

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rwellentrialex
Posts: 6
Joined: 15 Mar 2018, 11:22

Waiting for a process to finish

22 Mar 2018, 17:24

Looking for insight or direction. I have a series of pdfs in a folder. I've written the code (poorly I'm sure) to select all, right click and add to separate win-rar archives. I now want to unzip those .rar files to create separate folders but I need the process to wait until they've all been zipped up first. I tried using a sleep command but the number of pdfs will vary greatly from job to job. Below is the code I have so far. Also any insight into how I can select by file type would be great. Any help or guidance would be greatly appreciated!

^!a::
Send, {ctrl down}a{ctrl up}
Send, {RButton}

sleep, 200
Send, {Down}
Send, {Down}
Send, {Down}
Send, {Down}
Send, {Down}
Send, {Down}
Send, {Down}
;Send, {Down}
;Send, {Down}
;Send, {Down}
;Send, {Down}
sleep, 200
Send, {Enter}

sleep, 200
Send, {ctrl down}{Tab down}{Tab up}
Send, {Tab down}{Tab up}
Send, {Tab down}{Tab up}{ctrl up}
sleep, 200
Send, {Tab}
Send, {Tab}
Send, {Tab}
Send, {Tab}
Send, {Tab}
Send, {Tab}
Send, {Space}
Send, {Enter}

Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Aqualest and 355 guests