[Home] [Downloads] [Search] [Help/forum]

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  I should have looked there first..

I should have looked there first..

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Shadowfyr   USA  (1,786 posts)  [Biography] bio
Date Thu 13 Jul 2006 06:06 PM (UTC)
Then again, I am VB centric, so was trying to find a "universal" solution. But since Lua "is" the default now, in section 3.3.3 of the LuaCOM reference:

-- Creates the COM object
calendar = luacom.CreateObject("MSCAL.Calendar")
if calendar == nil then
-- Creates implementation table
calendar_events = {}
function calendar_events:AfterUpdate()
print("Calendar updated!")
-- Connects object and table
res, cookie = luacom.Connect(calendar, calendar_events)
if res == nil then
-- This should trigger the AfterUpdate event
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #1 on Thu 13 Jul 2006 06:39 PM (UTC)
Nick posted about this a while ago:
Searching the forum for "LuaCOM" gives some more results that might be interesting.

And I'm not sure how a VB solution would be any more "universal" (normal, not emphasis, quotation marks) than a Lua solution. :-)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

[Go to top] top

Posted by Nick Gammon   Australia  (23,003 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Thu 13 Jul 2006 09:57 PM (UTC)
Does that mean you got the connection points to work?

I agree with Ksilyan that anything that uses Lua and MUSHclient should be as universal as you can get.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Shadowfyr   USA  (1,786 posts)  [Biography] bio
Date Reply #3 on Fri 14 Jul 2006 06:22 PM (UTC)

Amended on Fri 14 Jul 2006 06:29 PM (UTC) by Shadowfyr

I wasn't talking about a VB solution, but a solution that would work for "all" of the script systems, most of which don't have direct support for that part of COM. And no, I haven't tried the connection point yet. I haven't dove into Lua at all for my own use yet.

Oh, and more too the point. The prior post by Nick on the subject provided how to "create" objects and use them the same way all the rest of the script systems do. The default assumption when 90% of the engines do not provide '.connect' would normally be, "none of them do". Its a reasonable assumption, given that the main implimentation doesn't support it and most that do, limit it to the "type" of environment its running in. This was a real surprise.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]