Page 1 of 1
on edit script - auto bring top and highlite on mouseUp
Posted: Sun Apr 01, 2012 6:14 am
by BarrySumpter
Hi all,
When I rightClick Edit script on a button
is there a way to find the on MouseUp event
bring it to the top of the script editor in the IDE and hightlight it?
Re: on edit script - auto bring top and highlite on mouseUp
Posted: Sun Apr 01, 2012 11:55 am
by snm
Just click on the mouseUp handler on handler list of Script Editor.
Re: on edit script - auto bring top and highlite on mouseUp
Posted: Sun Apr 01, 2012 12:37 pm
by BarrySumpter
I want the IDE to do this automatically.
It's distracting and I loose my focus having to chase it down every time.
Re: on edit script - auto bring top and highlite on mouseUp
Posted: Sun Apr 01, 2012 7:49 pm
by jacque
I'm not sure how the IDE could know which handler you want to display.
You can type "on mouseup" into the search box (type Cmd/Cntrl-F if it isn't showing) and do a one-time search. After that, Cmd-G will find it again until you change it.
Re: on edit script - auto bring top and highlite on mouseUp
Posted: Mon Apr 02, 2012 12:04 am
by dunbarx
As Jacque says, how could the program know which handler in a script you are targeting?
What I do is place the handlers or functions that I am currently working one at the top. Invariably, I am returning to one or two of these over and over again as I work through some aspect of a project. Just relocate them above all the others, and they will be ready when you return to the script editor.
Craig Newman
Re: on edit script - auto bring top and highlite on mouseUp
Posted: Mon Apr 02, 2012 12:20 am
by BarrySumpter
If anyone has a script that will allow me to access the IDE script editor
would you please post it?
I'll have a look around and see what trouble I can get into.
Re: on edit script - auto bring top and highlite on mouseUp
Posted: Mon Apr 02, 2012 12:55 am
by snm
edit the script of objectName
Marek
[snm]
Re: on edit script - auto bring top and highlite on mouseUp
Posted: Mon Apr 02, 2012 5:49 pm
by mwieder
and then with the line number of "on mouseUp" in tLine
Code: Select all
send "goLine" && tLine, "position", (1, -1) to group "Editor" of stack "revNewScriptEditor 1"