Normal Topic Auto-filling User Login Name (Read 1217 times)
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Auto-filling User Login Name
Jan 19th, 2008 at 8:15pm
Print Post Print Post  
Is there a way to auto-fill the user login name upon opening a secured application? If not, this would be a handy extra feature sometime down the road.

I would like to use a startup switch in the Windows shortcut (or INI file setting) to pass just my login name, not password, to the dialogue box that pops up when opening the application.

This is, of course, a matter of laziness on my part. I don't want to always type my name and password, just my password. If another user were to be logging in, they could simply change my 'default' name.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Auto-filling User Login Name
Reply #1 - Jan 19th, 2008 at 11:55pm
Print Post Print Post  
Carl, this can easily be done with third party macro utilities.

And thanks for the call to help on the import posting I made earlier.
« Last Edit: Jan 20th, 2008 at 4:18pm by Bob_Hansen »  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Auto-filling User Login Name
Reply #2 - Jan 20th, 2008 at 4:54am
Print Post Print Post  
Oh yeah, forgot about that. Wink

Though, I still think it would be a handy feature for Sesame to have.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Auto-filling User Login Name
Reply #3 - Feb 13th, 2008 at 10:03am
Print Post Print Post  
Carl, it is possible creating Macro. I open new application from the currently used application with Macro that takes both UserID as well as password automatically. One will have the record the macro opening an application and putting UserID and Password first after opening Sesame session.  (Macro can be recorded before opening an application).

While opening from other application using CommandButton

Code
Select All
var vOpen as Int

vOpen = @Shell("C:\Sesame\Program\sesame.exe -blink -macro c:\sesame\data\IndexEntry.mac")

//IndexEntry.mac is a pre-recorded macro from Sesame First screen, Change for Sesame2 accordingly

If vOpen = 0 then
	{
		@MsgBox ("Could Not Open Index File..Sorry...", "", "")
	}


 

  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Auto-filling User Login Name
Reply #4 - Feb 13th, 2008 at 9:41pm
Print Post Print Post  
Bharat_Naik wrote on Feb 13th, 2008 at 10:03am:
Carl, it is possible creating Macro.

Good idea! Smiley

Works nicely from a desktop shortcut with a target of:
C:\Sesame2\Program\sesame.exe Data\TestApp.db -macro Data\TestMacro.mac

This solves my initial request. Although I've since implemented a different way to acheive my original goal (for my own applications), this gives me an idea for a client where we want to keep the design protected, but allow any employee access to the data.

In my own applications, my original use for a login was simply to provide a way to put the name of the person adding or making changes to the records, into a field with the use of @UserID, not to enforce any kind of security. I now display a list of names with @PopupMenu() when the app opens, and place the answer into a ClientLocalValue() for use where I was using @UserID. This eliminates the need to type a name, which is what I was really looking for.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged