Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hello,

I am trying to automate Imaging Edge Desktop using pyautogui. I was able to get this to work using the attached code( see What have you tried).
The problem is I'd like to have this program control my camera autonomously without a display, which research online indicates isn't possible with pyautogui. Does anyone know an alternative module which may work. Maybe not necessarily a GUI control module? I looked into SDK's and API's but they're not available for my camera.

Thanks

camera => DSC-RX0M2 Specifications | Cameras | Sony CA[^]

imaging edge software => Imaging Edge | Expand your creativity[^]

pyautogui => Welcome to PyAutoGUI’s documentation! — PyAutoGUI documentation[^]

What I have tried:

import os, pyautogui
from time import sleep


print('Old Directory') # Just to show Current Working Directory(Were youre running...
print(os.getcwd())#...the code)


os.chdir('C:\Program Files\Sony\Imaging Edge') #change current working directory to
#location specified in String. MAY NEED TO CHANGE depending on place app is saved

print('New Directory')#confirm it worked
print(os.getcwd())
sleep(1)

os.system('start Remote')#os function for starting .exe files
#start starts it. Remote is the app we want to start(Imaging Edge Remote)
sleep(7) #wait for Remote to open


#Commented out this section. Shouldn't be necessary
#pyautogui.click(710,744)#exit the shell screen step 1
#sleep(1)
#pyautogui.click(710,744)#exit the shell screen step 2
#sleep(7)


pyautogui.doubleClick(328,257) #chooses camera
sleep (10)
pyautogui.moveTo(1134,225)#move to photo taking button
sleep(1)
pyautogui.mouseDown(button = 'left')#take picture, mouse held down
sleep(1)
pyautogui.mouseUp(button = 'left')

#note: right now this program just takes one photo closes automatically...
#...make sure camera is ready to appear in the Remote:choose camera window
sleep(5)

os.system('TASKKILL /F /IM Remote.exe') #kills the program
Posted
Updated 27-Jul-20 11:24am
v3

1 solution

Hello,

Sorry for the late answer.

I had the same problem that you, so I developed a library to control directly the Remote app using the pywinauto library.

Sorry, there is no doc or comments. Let me know if you have troubles.

Sony-A7III-PhotoBooth/remoteTrigger.py at master · FlorianC31/Sony-A7III-PhotoBooth · GitHub[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900