I am trying to modify the Print Setup option found under File > Print Setup.
I am using Windows Script Host with Python. I use the Alt + F followed by S to open the appropriate dialogue box:

When I do those commands by hand, the Print Setup box is in focus, so I can press F to select “Print to File” then {ENTER} or O to accept the changes.
However, I neither ALT+F nor F is selecting the File option.
shell = win32com.client.Dispatch("WScript.Shell")
shell.AppActivate('Point of Sale')
shell.SendKeys("%fs") # I also tried "%fsf and "%fs%f" removing the other call to SendKeys"
time.sleep(0.1) # Removing this (or using a longer wait) makes no difference
shell.SendKeys("F")
This problem had to do with incorrect implementing on part of the developer of this software. To solve the problem, I used SendKeys to send multiple
TABSuntilFilewas selected.