Page 1 of 1

Interesting commands, functions and properties

Posted: Fri Mar 29, 2013 6:26 am
by shaosean
While I was snooping through the script editor scripts, I came across an interesting property - revAvailableHandlers.. The syntax is:

Code: Select all

put the revAvailableHandlers of <object>
The output is a return-delimited list in the following format:

Code: Select all

M mouseUp 1 4 button id 1013 of card id 1002 of stack "/Users/shaosean/Documents/Programming RR/rnd/custom control events/ssCustomControlEvents.rev"
M oink 19 21
PM squeal 6 8
PF moo 10 12
F rawr 15 17
G moo 27 29
S moo 23 25
The first word is one of the following:
M - public message/command
F - public function
PM - private message/command
PF - private function
G - getProp
S - setProp

The second word is the name of the handler.
The third word is the line number the handler starts on
The fourth word is the line number the handler ends on

The first line in the output also has the long id of the control (word 5 to -1)

Re: Interesting commands, functions and properties

Posted: Wed Apr 03, 2013 12:23 am
by mwieder
The most interesting thing, of course, is that it works on protected stacks as well.

Re: Interesting commands, functions and properties

Posted: Wed Apr 03, 2013 6:30 am
by shaosean
Better start renaming some of my handlers then ;-)

Re: Interesting commands, functions and properties

Posted: Thu May 02, 2013 10:42 am
by jmburnod
Hi shaosean,
Thanks for share this. Very useful for me in this moment

Re: Interesting commands, functions and properties

Posted: Thu May 02, 2013 11:01 am
by CoffeeCone
Oh wow, I was looking for something this the other day but forgot to ask about it here. It's perfect!

Re: Interesting commands, functions and properties

Posted: Sat Aug 03, 2013 4:32 pm
by andrewferguson
I have found another interesting one!

Code: Select all

revDebuggerValidGlobalNames()
It returns all the global variables that can be used in a script, because some do not work. Like $programFiles(x86), if you are on a Windows 64 bit system with LiveCode installed in C:\Program Files (x86)\

Andrew