Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

send event to run application on desktop

Featured Replies

On Windows XP, I want to use 'send event' to launch an application on the desktop.

I need to use the 'calculation' option.

If I use the 'file' option to see the path to a desktop application, it is of the form:

file:../../Documents and Settings//Desktop/

Both and can vary which is why I need the calculation option.

How can I get the 'Windows username' so I can properly build the calculation? 'Get(username)' returns the Filemaker username, not the windows username and no other 'Get' function seems to provide the necessary information.

Or is there another form for the calculation to launch a desktop application from 'send event'?

TIA

If you cannot find windows user name from FileMaker Pro, you can keep track of the user name from within your application itself. If it is an application written in c or vb it is easy to find using api.

  • Author

I don't know how to do that. Would it be a plugin or custom FMP function??

In 8 this is easy since we now have the Get(DesktopPath) function. In 7 you need to jump through a few hoops.

From a Command line window typing "echo %username%" will give you the name of the currently logged-in user. Trouble is: how do you get that into FM? You can only put data into FM through:

- paste

- import

- ODBC

- plugin API

Let's work importing. Have a script that does the following Send Event:

cmd /c echo %username% > c:usernName.txt

(assuming the user has write rights to the c: folder)

Make the script pause for a second or two and import that text file. If you don't want any new records created, import into a global with the "update" option.

Now you have the user name to calculate your path.

Another (cleaner) option is to use a Windows logon script (VBscript) that writes the current user name to the filemaker section of the registry so that the get(userName) function will actually return the name of the OS logon. It needs to be a Windows logon script because FM reads the registry once when it launches, so the info needs to be there before FM starts.

Or go with 8 ...

  • Author

Thank you! It's not pretty, but it gets the job done!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.