bcmillerway Posted March 12, 2017 Posted March 12, 2017 (edited) Here's my code: ****************************** #include <AutoItConstants.au3> Opt("MouseCoordMode", 0) Opt("MouseClickDownDelay", 10000) WinActivate ("FileMaker Pro Advanced - [Sanskrit]") MouseClick($MOUSE_CLICK_RIGHT, 100, 300, 0) ****************************** I'm expecting a submenu to appear as it does when I actually 'right click' in Filemaker -but it doesn't. I think I'm missing something. Any suggestions? Thanks Edited March 12, 2017 by bcmillerway
Developers Jos Posted March 12, 2017 Developers Posted March 12, 2017 You are running the script with the same (elevated) credentials as FileMaker and sure are about the coordinates? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
bcmillerway Posted March 12, 2017 Author Posted March 12, 2017 Jos, thanks for your suggestion. Turns out the following does what I need. #include <AutoItConstants.au3> Opt("MouseCoordMode", 0) ;Opt("MouseClickDownDelay", 10000) WinActivate ("FileMaker Pro Advanced - [Sanskrit]") MouseClick($MOUSE_CLICK_RIGHT, 300, 300, 1, 1) Send("{DOWN 6}") Send("{ENTER}") The 'Opt("MouseClickDownDelay", 10000)' was making the submenu appear after a 10 second delay which was why it didn't appear to be happening.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now