Login and password with startapp function - LISP

Login and password with startapp function - LISP

Anonymous
Not applicable
1,185 Views
6 Replies
Message 1 of 7

Login and password with startapp function - LISP

Anonymous
Not applicable

Hi, Is it possible put to the window login and password using "startapp" function to start windows application?

Thanks

MK

0 Likes
1,186 Views
6 Replies
Replies (6)
Message 2 of 7

Moshe-A
Mentor
Mentor

@Anonymous hi,

 

as far as i know there is no build-in  password method in AutoLISP but you can start your command by pausing to ask a user name/password than call (stratapp)

 

if you defun a dialog box there is a dcl attribute called "password_char" but this is only for concealing the password on the dialog.

 

moshe

  

 

 

0 Likes
Message 3 of 7

Anonymous
Not applicable

Yes, but how to put name/password to the window witch appears after using startapp?

0 Likes
Message 4 of 7

Moshe-A
Mentor
Mentor

after or before?

provide more info?  what application are we talking?

 

 

0 Likes
Message 5 of 7

Anonymous
Not applicable

OK, step by step

1. (setq login (getenv "USERNAME")) ;I have my login.

2. (setq password "1234") ;I have my password

3. (startapp "C:\\...") ; appears window (external application - not in AC) with fields "login" and "password" and buttons OK and CANCEL. 

4. ...this step I need put login and password but automatically from variables login and password. Is it possible?

 

0 Likes
Message 6 of 7

Moshe-A
Mentor
Mentor

well, the (startapp) function works much like calling an application from the cmd window (remeber DOS?)

e.g if the external application accepts arguments?  then you can provide them .

 

here the function format:

(startapp appcmd [file])

 

the [file] argument can be replaced with arguments (it's a string)

if the application you are calling does not have command arguments then you can not pass arguments to it.

 

moshe

 

 

 

0 Likes
Message 7 of 7

Anonymous
Not applicable

OK, Thanks.

0 Likes