mrwatson-de / fmAutoMate

[Towards a FileMaker IDE] A tool for FileMaker developers which extends and automates your script workspace using the MBS Plugin and MrWatsons fmScriptWorkspace Module
Other
17 stars 1 forks source link

Where are we? (_FMAM_GuiContext) #25

Open mrwatson-de opened 1 year ago

mrwatson-de commented 1 year ago

It is necessary to be able to determine, where one is in the FileMaker GUI, in order to be able to filter and present only the functions which make sense at this point.

The frontmost window can be queried using MBS.

Most GUI areas/dialogs are recognisable by the start of the windows name.

Simple dialogs return just the app name FileMaker Pro.

The main window returns the name of the file (and the server name if hosted).

When the main window is identified, the current window mode defines whether the user is in Layout Mode or not.

Recognition of the sub-window context (tables, fields or relations) we'll leave to a future feature!

This function can simply return the basic name of the area, which will allow most all desired functionality to be implemented.

mrwatson-de commented 1 month ago

There is an fmAutoMate Test entry which returns the info about where we are. To use this sensibly this must be capsualted as an fmAutoMate CF