James McDonald
James McDonald

Reputation: 11

How can I automate repetitive tasks on Windows 10 GUI applications?

New to windows automation - I need to pass around 12000 images through a Windows 10 application the client has specified - downloaded from the Windows store.

I'm a python hobbyist mostly so tried some basic python automation tools I'm familiar with but got stuck v quickly utilising a VM.

Is there a VERY simple method I can use to record some mouse clicks, and then write a "for FILE in LIST: do foo" that will change what file is loaded every iteration?

Sorry if this is super beginner. Tried googling and checking previous answers but got a little (a lot) confused.

Upvotes: 0

Views: 729

Answers (1)

user6016429
user6016429

Reputation:

How about following code. It will open all JPG files in your image folder one after another.

import os,sys, glob
from PIL import Image

for eachImage in glob.glob("C:\\yourImageFolder\\*.jpg"):
    im = Image.open(eachImage)
    im.show()

Upvotes: 1

Related Questions