Home » Questions » Computers [ Ask a new question ]

Automate dull task

Automate dull task

Like this question: Automate GUI tasks?

Asked by: Guest | Views: 245
Total answers/comments: 2
Guest [Entry]

"Without knowing exactly what you're doing, I can't write any sort of script for it, but assuming it's an explorer window, you could use a loop:

Loop %RepeatCount% {
...
}

and use some maths to work out when to go down a row, so on.

Better than that, though, see the ""Loop (files & folders)"" section of the readme.
Looks like you'd make the .ahk inside the directory, then do something like

Loop *.fileWhatIsBoringToManipulate
{
Run p:\ath\to\executable [command line option to load file]
WinWaitActive, Manipulator
//mouseclicks and stuff
}

The latter would be vastly superior, but if your application doesn't support command line input, then you'd be better off putting the files in list view and using a send {down}{return} instead of fancy positional mousing."
Guest [Entry]

Just a thought but after opening the dialog, use some math to figure out how many times to hit the down key or something to select the next file (instead of using mouse clicks). This way at least the scrolling will be sorted out automatically. Except for that and the obvious command line argument option, I'm with eleven81 on actually moving the file after being done with it so the next file is at the same place as the first one...