bcmillerway

Viewing a 'right click' submenu

3 posts in this topic

#1 ·  Posted (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 by bcmillerway

Share this post


Link to post
Share on other sites



#2 ·  Posted

You are running the script with the same (elevated) credentials as FileMaker and sure are about the coordinates?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted

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.

Share this post


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