I need to click a button of a program and i’ve made a litte script but it returns an error and i don’t know what to do or what i have to change of the script to run it. The script I’ve made is :
The problem in these cases (don’t have Capture Control) is that the button is not called “Shoot” even though that’s what is on it (could be button 3 or something like that), and that the program wants you to refer to the window as window 1 - “Capture Control” may be the title of the window, but might not be its name.
An alternative, if “Shoot” has a menu pick as well, is to use gui scripting to go after the menu. Better yet if it has a hot key, then:
tell application “System Events” to tell process “Capture Control” to keystroke “someLetter” using {control down, shift down} or whatever it is.
I’ve tried gui scripting and it almost worked, the button turned blue like if i pushed it but didn’t do the action of press it and I don’t know what to do, I need help.