coolio! also you could incorporate the isuptext to what a scripter can put in.. pretty much just add a little part like this 
Code:
function IsInvItem(Action, InvItem: string; Slot: integer): boolean;
begin
MMouseItem(Slot);
if(IsUpText(Action + ' ' + InvItem))then
begin
Result:= True;
end else
Result:= False;
end;
function MouseInvItem(Action, InvItem: string; Slot: integer; Click: boolean): boolean;
begin
if(IsInvItem(Action, InvItem, Slot))then
begin
MouseItem(Slot, Click);
Result:= True;
end else
Result:= False;
end;
i know its somethin simple but you could use it like this..
Code:
if(MouseInvItem('Blow Up', 'Potato', 4, true))then
writeln('you blew it up!')
that way you dont need to limit it to 'Use'.. lol blow up potato.. what a game that would be