Sadly the Automation interface is hobbled.  If you browse the ARUSER type 
library, you can see that they went to the trouble of extending it at least 
three times.  Besides the original COMAppObj, they added ICOMAppObj_2 and 
ICOMAppObj_3.  There's actually an ICOMField4 object (recently updated to 
handle currency fields).  But it really looks like a series of half-hearted 
attempts.  BTW, these extensions aren't covered in the C API Guide.  I guess 
they're too busy to keep up with it.

The Login method (or function) simply returns a Session object.  Session 
doesn't really point to a given server -- it contains only the user name, 
password, and a Boolean that indicates whether you want the app (aruser.exe) to 
be visible.  It isn't until you try to open a form or a guide that you must 
provide a server name.  (No, you can't open an application.  Amazing, huh?)

Now, if memory serves me correctly, if you've already set up a user in Remedy 
User, when you log in as that user, you have access to his settings.  The 
reason I say that is you can call the Login method and then immediately call 
the GetServerList method.  That method, GetServerList, returns a Microsoftian 
"variant" -- which is actually an array of server names.  So I think if you've 
set up a user with his own defined folder as well as servers with port and RPC 
settings, and then Login as that user, when you refer to a "known" server by 
name it should also pick up the correct port number.  I couldn't swear to it, 
but I think that's how it's supposed to work.

It's too bad we couldn't somehow blend artask.exe with the Automation interface 
to aruser.exe, sort of like merging two half-a**ed tools into a complete one.

 
Tim [EMAIL PROTECTED]
v: 937-878-9045
f: 937-878-9055
m: 937-369-7012
http://www.widowfield.com

----- Original Message ----
From: David Sanders <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, August 31, 2006 3:26:37 AM
Subject: Re: [ARSLIST] Get Rid of the Splash Screen on User Tool

Hi Tim

This looks good. Is there a way to modify this script to pass the server
port too?

Thanks

David Sanders
Remedy Solution Architect
Enterprise Service Suite @ Work
==========================
ARS List Award Winner 2005
Best 3rd party Remedy Application
 
tel +44 1494 468980
mobile +44 7710 377761
email [EMAIL PROTECTED]
 
web http://www.westoverconsulting.co.uk
 

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Widowfield
Sent: Wednesday, August 30, 2006 11:34 PM
To: [email protected]
Subject: Re: Get Rid of the Splash Screen on User Tool

This question comes up from time to time, so I thought I'd offer a possible
work-around.

Here's a WScript JScript script that might help.  Or at least it might get
you thinking in other directions.  (OLE, anyone?)

To run it, just use the Windows cscript program, like this:

cscript /nologo OpenUser.js /user:Demo /password:spoon /server:localhost

---------------------------------
// OpenUser.js
//
// Opens Remedy User w/o a splash.

// Decalare variables
var app, sess, form;
var userName, password, serverName;
var VISIBLE = 1, INVISIBLE = 2;
var AR_SUBMIT = 1, AR_QUERY = 2;
var AR_DISPLAY = 3, AR_MODIFY = 4;

args = WScript.Arguments;

userName = args.Named.Item("user");
password = args.Named.Item("password");
serverName = args.Named.Item("server");

if ((userName == null) || (password == null) || (serverName == null))
{
    WScript.Echo("Usage:");
    WScript.Echo("   cscript /nologo OpenUser /user:useName " +
                 "/password:password /server:serverName");
    WScript.Quit(1);
}

var formName = "Home Page";

// Instantiate the Remedy application object
app = new ActiveXObject("Remedy.User");

// Login
sess = app.Login(userName, password, VISIBLE);

// Open the Home Page form
form = app.OpenForm(sess, serverName, formName, AR_QUERY, true);
------------------------------------

What strikes me is how *fast* the User tool fires up when you come at it via
OLE.  It just pops!

 
Tim [EMAIL PROTECTED]
v: 937-878-9045
f: 937-878-9055
m: 937-369-7012
http://www.widowfield.com

----- Original Message ----
From: "Heider, Stephen" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, August 30, 2006 4:46:29 PM
Subject: [ARSLIST] Get Rid of the Splash Screen on User Tool

ARS 6.3, 7.0

Is there a command line switch or setting that will stop the BMC splash
screen from appearing when you start the Remedy User Tool?   I searched
the online help and I didn't see it in the Tools -> Options dialog.

I used to think that the splash screen was only displayed because the
User Tool was initializing.  After testing the v-Go SSO product (nice) I
now know that is not the case. 

When I configure v-Go to automatically log me in to the User Tool my
login name and password are entered and submitted, and I am
authenticated and completely logged in *while the splash screen is still
displayed*.  The splash screen now seems to be simply advertisement.  

With every application I use the first thing I do is turn off the splash
screen if possible.  It slows me down... I am interested in using the
product, not looking at their advertisement.  I log into the User Tool
to multiple servers about 25 times a day.

If BMC has prevented users from disabling the splash screen could
someone at BUG asked about this?

Thanks. 
 
Stephen

____________________________________________________________________________
___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

____________________________________________________________________________
___
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

Reply via email to