Hi Roger,

I've been able to use the genie within the User tool in our environment,
which is a mix of 6.0 and 6.3 in Windows 2000 and Windows XP.

What I do is to use an active link to set a hidden view field, so that
it will contain the code to call the genie as if I were doing it from a
browser.  Here's a bit of sample code:
          <OBJECT ID="Merlin" width="0" height="0"
            CLASSID="CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F"
            CODEBASE="#VERSION=2,0,0,0">
          </OBJECT>
            
          <OBJECT ID="TruVoice" width="0" height="0"
            CLASSID="CLSID:B8F2846E-CE36-11D0-AC83-00C04FD97575"
            CODEBASE="#VERSION=6,0,0,0">
          </OBJECT>
            
          <script>
            var Char; var UsedChars; var CharID; var CharACS; var
CharLoaded; var LoadReq; var HideReq;
            UsedChars = "Char"; CharID = "Char"; CharACS = "";
CharLoaded = false;
            Window_OnLoad();
            
          function Window_OnLoad() {
            Merlin.Connected = true;
            CharLoaded = LoadLocalChar(CharID, CharACS);
            if (!CharLoaded) {CharLoaded = LoadLocalChar(CharID, "");}
            if (CharLoaded) {SetCharObj();} CheckLoadStatus();}
            
          function LoadLocalChar(CharID, CharACS) {
            Merlin.RaiseRequestErrors = false;
            if (CharACS == "") {LoadReq =
Merlin.Characters.Load(CharID);}
            else {LoadReq = Merlin.Characters.Load(CharID, CharACS);}
            Merlin.RaiseRequestErrors = true;
            if (LoadReq.Status != 1) {return(true);}
            return(false);
            }
            
          function SetCharObj() {
            Char = Merlin.Characters.Character(CharID);
            Char.LanguageID = 0x409;
            }
            
          function CheckLoadStatus() {
            if (!CharLoaded) {LoadError(); return(false);}
            else {window.status = ""; HiWorld(); return(true);}
            }
            
          function LoadError() {
            var strMsg;
            window.status = "";
            strMsg = "Error Loading Character: " + CharID + "\n";
            strMsg = strMsg + "This Microsoft Agent Script requires the
character(s):\n";
            strMsg = strMsg + UsedChars;
            alert(strMsg);
            }
            
          function InitAgentCommands() {Char.Commands.RemoveAll();}
            
          function HiWorld() {
            InitAgentCommands();
            Char.MoveTo(300, 300); Char.Show();
            Char.Play("Announce"); Char.Play ("RestPose");
            Char.Speak("Hello, I am Merlin.  Welcome to Remedy!");
            Char.Play ("Blink");
            Char.Speak("I'll learn you to use Remedy.");
            Char.Speak("I can tell you about any fields, such as this
one here.");
            Char.Play("GestureLeft"); Char.Play ("RestPose");
            Char.Speak("This is the client ID field.  Each client has
their own unique ID, such as jdoe12.");
            Char.Speak("To summon me, just click the wand next to any
field you'd like help with, or click the help button.");
            Char.Speak("If you'd like me to go away, just click my
belly, and I'll be off.");
            Char.Speak("See you again soon.");
            Char.Play("Wave");
            Char.Hide();
            }
          </script>
            
          <script for="Merlin" event="Click(CharacterID, Button, Shift,
X, Y)">
            Char.StopAll(); Char.Hide();
          </script>

There are lot of guides available online regarding how to script
movements, actions, etc.  Here are a couple I use:
        http://www.microsoft.com/technet/scriptcenter/funzone/agent.mspx
        http://www.expressnewsindia.com/c4/ex2/C1166.html

No guarantee this will work in your environment, but best of luck.  

Eric Cleereman

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Roger Walls
Sent: Wednesday, February 27, 2008 1:15 PM
To: [email protected]
Subject: Re: OT - Possible Friday Humor from BMC's Knowledgebase

Is there any way to use the genie in the client tool?

Roger Walls

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Ben Cantatore
Sent: Wednesday, February 27, 2008 8:03 AM
To: [email protected]
Subject: Re: OT - Possible Friday Humor from BMC's Knowledgebase

Actually I don't know if this classifies as an Easter Egg, but here's
something fun to check out if you haven't seen this before...

Create an active link
Pick a form (doesn't matter)
Go to the If action tab and select OLE Automation Check Genie Help in
the lower left corner and a Genie will appear.




Ben Cantatore
Remedy Administrator
Avon
(914) 935-2946



Robert Page <[EMAIL PROTECTED]>
Sent by: "Action Request System discussion list(ARSList)" 
<[email protected]>
02/27/2008 10:48 AM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: OT - Possible Friday Humor from BMC's Knowledgebase






** 
No but I've heard it has a few bunnies in it.

----- Original Message ----
From: "Heider, Stephen" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, 27 February, 2008 1:45:44 PM
Subject: Re: OT - Possible Friday Humor from BMC's Knowledgebase

** 
Does anyone know if ARS contains any Easter eggs?
 
Stephen
Remedy Skilled Professional
 

From: Action Request System discussion list(ARSList) [mailto: 

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to