Hi Christian,
In working with the AuthorizationMBS class, I'm getting some odd results.
I create a Class named myAuth As AuthorizationMBS
I add myAuth = New AuthorizationMBS to App.Open
I then set
myAuth.Release = False
myAuth.KeepRights = True
I then call:
If Not authShell.SimpleNewAuthorization Then
MsgBox "Authorization attempt failure"
Quit
End If
I get the Handle for this AuthorizationMBS class instance and the debugger
reports that the Release and KeepRights values are as I've set them.
I then use your authRunSync method:
Dim e As Integer
myAuth.Execute(cmd, args, true) // and run it
if myAuth.LastError<>0 then
Debug.Print "Lasterror on authExecute: "+str(myAuth.LastError)
e = myAuth.LastError
else
e = myAuth.Wait
end if
Return e
and the authorization dialog pops up. Once I enter my password, the script
that I've created executes as expected, but the myAuth.Authorized property
remains "False". This means that each time I call authRunSync after than, the
authorization dialog pops up again.
It was my understanding that with the KeepRights set to True and Release set to
False, the instance of the AuthorizationMBS would remain in affect - at least
until the normal authorization timeout occurs.
Is there something that I'm missing? Is there an issue in 13.0 with the
AuthorizationMBS class that's not retaining the Authorized property value
between calls?
Thanks,
Tim
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info