Jump to content
Sign in to follow this  
EddyB

Can Username be scripted?

Recommended Posts

Hi all,

Just a quick question

Rather than using the menu item Application Preferences to change the Username I was hoping to set up a global field which when scripted would set the current username to whatever was in the global field.

I cannot find the set CurrentUsername function anywhere, does anyone know a way to do this please?

I'm on FM 6 on Win2K

Thanks all

Ed.

Share this post


Link to post
Share on other sites

OK Christian you have officially scared me now!

Any chance of a few pointers on this please, have never attempted writing a batch file before and registry scares me!

Thanks

Ed

Share this post


Link to post
Share on other sites

open regedit, look for HKEY_CURRENT_USER/Software/FileMaker/preferences.

For instructions on how to implement this, search for registry in all forums.

see attachment for registry info (regedit.exe)

vbs-solution here

http://www.fmforums.com/threads/showflat.php?Cat=&Board=UBB15&Number=39227&Forum=All_Forums&Words=registry&Match=Entire%20Phrase&Searchpage=1&Limit=25&Old=allposts&Main=39227&Search=true#Post39227

Bild 16.jpg

Share this post


Link to post
Share on other sites

but: it's far easier to implement kind of a "lightweigt" login routine which requires the user to identify first, then put this into a global.

see custom login routine for this.

if you are using filemaker security, you can setup different passwords with same rights in different groups, then get the group name with status(currentgroup). This will also identify your users, but can be a pain to implement with many users.

Why not just trust them to select the right name from a popup list, and type a short password. no tight security necessary here.

Share this post


Link to post
Share on other sites

Many thanks for all your help Christian, will have a look at all of this now!

Regards

Ed

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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