Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 12 of 12

Thread: MSAgent in AMS

  1. #1
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    MSAgent in AMS

    Okay, I was bored at lunch today and have wanted to play with the MSAgent Control in AMS for sometime now.

    So here it is, in all it's glory. You'll need the luaCom plugin too.
    Attached Images

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Neat!

    I clicked on the "Merlin Rocks!" label and it gave the following error though.

    :-(

    I should add that Merlin did show up for the first click.
    Attached Images
    Intrigued

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Well, I only have so much time at lunch

    Add,

    MyAgent = nil

    before the else in the label, and you should be good.

    Did you try dragging him around any?


    Quote Originally Posted by Intrigued
    Neat!

    I clicked on the "Merlin Rocks!" label and it gave the following error though.

    :-(

    I should add that Merlin did show up for the first click.
    Last edited by Worm; 08-17-2005 at 11:35 AM.

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Bug fix
    Attached Files

  5. #5
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Sha'zaaam!

    It's got some Bling Bling there.



    *Hey, share that soda pop there!*
    Intrigued

  6. #6
    Join Date
    Oct 2003
    Posts
    908
    Very cool stuff!

  7. #7
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Here'a another way to sync your character with the app

    change out the Speak line with this one:
    Code:
      	MyAgent.Characters("Merlin"):Speak ("\\mrk=100\\Couldn't \\mrk=101\\you \\mrk=102\\have \\mrk=103\\come \\mrk=104\\up \\mrk=105\\with \\mrk=106\\something \\mrk=107\\a \\mrk=108\\little \\mrk=109\\more \\mrk=110\\creative \\mrk=111\\than \\mrk=112\\" ..Label.GetText("Label1").."?")
    each \\mark=101\\ is a bookmark that can be used to trigger other things in the app.

    Put this code in for the Global Function: MyAgentEvents:BookMark
    Code:
    function MyAgentEvents:Bookmark(BookmarkID)
    	if BookmarkID == 100 then
    		Label.SetText("Label1", "Couldn't")
    	elseif BookmarkID == 101 then
    	Label.SetText("Label1", "you")
    	elseif BookmarkID == 102 then
    		Label.SetText("Label1", "have")
    	elseif BookmarkID == 103 then
    		Label.SetText("Label1", "come")
    	elseif BookmarkID == 104 then
    		Label.SetText("Label1", "up")
    	elseif BookmarkID == 105 then
    		Label.SetText("Label1", "with")
    	elseif BookmarkID == 106 then
    		Label.SetText("Label1", "something")
    	elseif BookmarkID == 107 then
    		Label.SetText("Label1", "a")
    	elseif BookmarkID == 108 then
    		Label.SetText("Label1", "little")
    	elseif BookmarkID == 109 then
    		Label.SetText("Label1", "more")
    	elseif BookmarkID == 110 then
    		Label.SetText("Label1", "creative")
    	elseif BookmarkID == 111 then
    		Label.SetText("Label1", "than")
    	elseif BookmarkID == 112 then
    		Label.SetText("Label1", "Click Here")
    	end
    end

  8. #8
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    A beauty, Worm.
    Now we just need lipsync and character animation and AMS will just be THE perfect app.....

    Yossi

  9. #9
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Groovie.

  10. #10
    Join Date
    Mar 2006
    Location
    Corpus Christi, Texas
    Posts
    132
    I had some time at lunch to play around..

    You need Merlin and Genie.

    Thanks Worm i'm using your mouse.dll to make my agents fly to mouse on click on another project.


    On Button, Picture or anywhere a mouse can click.
    sMousePos ();
    MyAgent.Characters("Merlin"):MoveTo(nX, nY)
    In Global
    function sMousePos()

    nX=String.ToNumber(DLL.CallFunction("AutoPlay\\Doc s\\mouse.dll", "GetMouseX"
    , Application.GetWndHandle()
    , DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL));
    nY=String.ToNumber(DLL.CallFunction("AutoPlay\\Doc s\\mouse.dll", "GetMouseY"
    , Application.GetWndHandle()
    , DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL));

    end
    I'm just starting out with AutoPlay but i'm loving it.
    Attached Files

  11. #11
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264
    It's very very very cool! I didn't know it can be done in AMS. It's sooooooooooooooooooooooo cool. I'll use it! Thank you everyone!

  12. #12
    Join Date
    Mar 2006
    Location
    Corpus Christi, Texas
    Posts
    132
    I'm trying to find out how to remove the text bubble. I think on some apps it would look really cool if they just talk without the bubble.


    I like useing them in a app for help by using

    if MsAgent == nil then
    --do normal stuff
    else
    --make agent popup and talk about whatever the user clicked on.
    end
    The user has to click on HELP to make MsAgent ~= nil

Similar Threads

  1. Easy ActiveX/COM use for AMS
    By SRJ in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 09-07-2004, 05:05 PM
  2. AMS output to .RTF example
    By kpsmith in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 05-04-2004, 07:45 PM
  3. Dual Format AMS autorun CD/VCD
    By tviman in forum AutoPlay Media Studio 5.0
    Replies: 9
    Last Post: 04-12-2004, 02:20 PM
  4. Pop-up window in AMS 5
    By Lee_Benson in forum AutoPlay Media Studio 5.0
    Replies: 9
    Last Post: 12-25-2003, 06:43 AM
  5. (( Right Click Properties Version infomation
    By GraphiX2003 in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 02-10-2003, 01:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts