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.

User name

Featured Replies

In windows, when starting an FMP application, is there a way to get FMP to read the Window's registered user name as stored in the registry, or the computer's network name?

Thank you.

The user name is stored in FMP's Application Preferences. I go around and set the names (manually) for all users.

  • 2 months later...

On a Windows 9x platform, I have a situation where I wanted to grab the user's network login name and use it for my Filemaker solution. I accomplished this by performing the following vbscript after system login and before launching the Filemaker solution:

' setusername.vbs

'-------------------------------------------------

' Read the current network username and store it

' where Filemaker 5.5 and 6.0 store the username

' in the registry.

'

'-------------------------------------------------

Function Key_Exists (key)

Dim keydata

On Error Resume Next

keydata = WSHShell.RegRead (key)

If err <> 0 Then

Key_Exists = False

Else

Key_Exists = True

End if

End Function

'-------------------------------------------------

On Error Resume Next

Dim strUserName, Key55, Key60

' This is where FileMaker keeps the User Name info for 5.5 and 6.0

Key55 = "HKEY_CURRENT_USERSoftwareFileMakerFileMaker Pro5.5PreferencesUser Name"

Key60 = "HKEY_CURRENT_USERSoftwareFileMakerFileMaker Pro6.0PreferencesUser Name"

Set WSHNetwork = CreateObject("WScript.Network")

While strUserName = ""

strUserName = WSHNetwork.UserName

WEnd

On Error GoTo 0

Set WshShell = WScript.CreateObject("WScript.Shell")

if Key_Exists(Key55) then

WshShell.RegWrite Key55,StrUserName,"REG_SZ"

end if

if Key_Exists(Key60) then

WshShell.RegWrite Key60,StrUserName,"REG_SZ"

end if

'-------------------------------------------------------------------

I don't know if it works with profiles and other scenarios, but I'm comfortable poking things into the registry and certainly works for me <grin>. BTW... you may have to let your antivirus know that this script isn't malicious in order for it to be allowed to run.

regards... Bob Minteer

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.