Mudlet features and API requests

Post Reply
Denarii
Posts: 111
Joined: Thu Dec 03, 2009 10:54 pm

Re: Mudlet API requests

Post by Denarii »

Rakon wrote:By saving the variables to a table, and then saving 'remember(table)' wouldn't that only save the table, as the variable?
I'm not exactly sure what you mean. With the system I'll be creating you would do something like the following and the states of all registered tables/variables would be saved whenever the profile is saved and when the profile is closed. The most recent saved variable state would be loaded after your profile.
Code: [show] | [select all] lua
myvars = {
	foo = 1,
	bar = 2,
	}
	
SavedVariables:Add("myvars")
Rakon wrote: Also, I'm not seeing it on the forums, or the manual has 1.06 included a SendQuiet, or 'if window is in focus' abilities?
If by SendQuiet you mean a function to send text without echoing it to the console, try send("test", false). I don't know about checking for window focus, but likely no. It would be something to consider, though.

guy
Posts: 26
Joined: Wed Mar 03, 2010 5:41 am
Location: Seattle

Re: Mudlet API requests

Post by guy »

hempa wrote:Functions to delete MiniConsoles and other user windows, including labels and gauges.
A function to list all current user windows/gauges/labels and their names.
bump.

Also a way to control stacking order other than show/hide

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi »

the only way to control it actually is order of creation atm.

naftali
Posts: 138
Joined: Wed Jan 20, 2010 8:42 pm

Re: Mudlet API requests

Post by naftali »

Function to allow mudlet to use growl notifications.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi »

:|

os.execute and off you go.

max
Posts: 2
Joined: Sun Mar 21, 2010 11:03 am

Re: Mudlet API requests

Post by max »

It would be nice if tempTimer and tempTrigger would accept (anonymous) functions and not only lua code string literals.

Then closures could be used with temporary triggers.

Eg.:

Code: Select all

local rec = { "a","b","c"}
tempTimer(1, function() rec.[0] = "bla" end)

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Mudlet API requests

Post by Heiko »

tempTimer() accepts anonymous functions, but it's the only function currently that does.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi »

a function to invoke the text editor in scripting to edit things.

I'll try and give this a go in implementing.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi »

A function to insert text into the input line, so it can be optionally sent or modified and sent. Several people asked me about this

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Mudlet API requests

Post by Heiko »

Vadi wrote:a function to invoke the text editor in scripting to edit things.

I'll try and give this a go in implementing.
If you do this, it must be general enough to be used as a multiline text editor from the command line. Otherwise we'll end up having a mess of specialized editors.

Post Reply