Jump to content

Viewing a 'right click' submenu


Recommended Posts

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 by bcmillerway
Link to post
Share on other sites
  • Developers

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.
  :)

Link to post
Share on other sites

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.

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...