Mudlet features and API requests

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

Re: Mudlet API requests

Post by Vadi »

Incorportate a way to know the x,y coordinates of a single click in setLabelClickCallback

need a setLabelDoubleClickCallback, setLabelRightClickCallback, and an ability to create a menu at x,y with menu items linked to lua function callbacks

EDIT HEIKO: included in 1.1.0

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

Re: Mudlet API requests

Post by Vadi »

need to add selectBlockSection(starting line, length) for selecting multiple lines

also add this:

Code: Select all

function capitalize (what)
return string.upper(what:sub(1,1)) .. string.lower(what:sub(2))
end

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

Re: Mudlet API requests

Post by Vadi »

Allowing to end a sendAll parameter sequence with a negative expression for echoing ala send would be welcome.

sendAll("n", "e", "w", "s", false)
sendAll("n", "e", "w", "s", 0)

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

Re: Mudlet API requests

Post by Vadi »

Need a x,y,height,width = getWindowInfo(window) to enable different scripts which customize the UI to operate more efficiently.

a current workaround is to export these values into the global table.

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

Re: Mudlet API requests

Post by Vadi »

killScript - to delete scripts. Ofc once loaded, they're loaded, but its useful to be able to create an alias that can remove the script package itself.

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

Re: Mudlet API requests

Post by Vadi »

it would be nice to have raiseEvent accept function arguments also and booleans (Iocun requested)

along with having tempRegexTrigger accept the 'match all' flag optionally.

fxf
Posts: 10
Joined: Sat Jan 09, 2010 11:37 am

Re: Mudlet API requests

Post by fxf »

It would be nice to be able to use some keybindings which are defaults in readline library (used in Linux shells etc...).
I'm used to ctrl+w deleting last word in input, ctrl+p, ctrl+n shows next and previous input line, ctrl+j is the same as enter, ctrl+a, ctrl+e goes to beginning and end of input line. These shortcuts are great for touch typing.

You could either create API for manipulating input line (text, selection, cursor position, history) or give an option to use those fixed keybindings (or even best, just link with readline library).

Alaran
Posts: 27
Joined: Sat Dec 19, 2009 2:51 pm

Re: Mudlet API requests

Post by Alaran »

I'm not sure whether it has been requested already, but I'd like a cancel button on the popup you get when you close Mudlet.

As in: "Do you want to save profile x?" -> Yes, No, Cancel(meaning DON'T CLOSE). (Hitting the x-button of the popup closes mudlet anyway)

Right now there is no way to abort the closing of mudlet if you accidentally hit the button. (And yeah, I manage to do that more often that I'd like by using my Dock. :/ )

Rieand
Posts: 2
Joined: Wed Feb 03, 2010 4:55 pm

Re: Mudlet API requests

Post by Rieand »

I like that last suggestion. Also maybe there could be an option to always save and not pop up that box every time :) I find myself reloading alot

EDIT Heiko: OK will be included in 1.0.6

User avatar
Alexander Divine
Posts: 65
Joined: Mon Dec 21, 2009 7:01 pm

Re: Mudlet API requests

Post by Alexander Divine »

Handling and automation of COM/OLE. I'd love to be able to control my MP3 player through Mudlet like zMud can. :P

Post Reply