Search & Replace being a bit unhelpful
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 256
- Joined: Sun May 27, 2007 8:19 pm
Re: Search & Replace being a bit unhelpful
Hi bernd
using 'put the mouse stack' in the message box is a great idea. Adding that to my tricks
What I do to figure out a name is while the stack is open put 'put the openstacks' in the message box & press return and then look in the resulting list for anything that looks like it is the stack I want.
To confirm I close the stack in question and again put 'put the openstacks' in the message box & press return and see what is different.
Your way is much more efficient.
Martin
using 'put the mouse stack' in the message box is a great idea. Adding that to my tricks
What I do to figure out a name is while the stack is open put 'put the openstacks' in the message box & press return and then look in the resulting list for anything that looks like it is the stack I want.
To confirm I close the stack in question and again put 'put the openstacks' in the message box & press return and see what is different.
Your way is much more efficient.
Martin
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Search & Replace being a bit unhelpful
Hi Martin,
thanks,
along the same line is
Typed into the message box and after moving the cursor over a control and then hitting the return key.
I find that most useful when "sniffing around"
Kind regards
Bernd
thanks,
along the same line is
Code: Select all
put the mouseControl
Code: Select all
put the name of the mouseControl
Code: Select all
put the long name of the mouseControl
I find that most useful when "sniffing around"
Kind regards
Bernd
Re: Search & Replace being a bit unhelpful
In my custom palette I have some handy commands using "the mousexxx"
These are fired 2 secs after selecting the menu item.
These are fired 2 secs after selecting the menu item.
-
- VIP Livecode Opensource Backer
- Posts: 256
- Joined: Sun May 27, 2007 8:19 pm
Re: Search & Replace being a bit unhelpful
Hi
Just playing around with some ideas and I thought of putting a script in the front script that would identify the stack the mouse was in.
- created a stack and called it "Main"
- created a sub stack in it and called it "sub"
- created a button "Stack Name Reporter" on the first card of stack "Main" and added the following script to that button
-created a button "insert front script" on the first card of stack "Main" and added the following script
Next
-click the button "insert front script"
Result
- as you move the mouse around the name of the stack that the mouse is currently over is shown in the message box.
I attached the simple stack here.
Martin
Just playing around with some ideas and I thought of putting a script in the front script that would identify the stack the mouse was in.
- created a stack and called it "Main"
- created a sub stack in it and called it "sub"
- created a button "Stack Name Reporter" on the first card of stack "Main" and added the following script to that button
Code: Select all
on mouseEnter
put the short name of this stack
end mouseEnter
on mouseLeave
put empty into message box
end mouseLeave
Code: Select all
on mouseUp
insert the script of button "Stack Name Reporter" into front
end mouseUp
-click the button "insert front script"
Result
- as you move the mouse around the name of the stack that the mouse is currently over is shown in the message box.
I attached the simple stack here.
Martin
- Attachments
-
- show Stack Names under mouse.zip
- (1.15 KiB) Downloaded 73 times
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Search & Replace being a bit unhelpful
I wonder if there wouldn't be a way to move that
into a plugin?
into a plugin?
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Search & Replace being a bit unhelpful
A plugin is a stack file placed in the Plugins folder.richmond62 wrote: ↑Fri Jan 14, 2022 9:49 amI wonder if there wouldn't be a way to move that
into a plugin?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 256
- Joined: Sun May 27, 2007 8:19 pm
Re: Search & Replace being a bit unhelpful
I don't think there is any reason why not.
If anyone is interested in creating plugins they should buy Andre Garcia's book Development Oriented Developmenthttps://andregarzia.com/books/developme ... pment.htmlto learn how you can do that.
As I was making the simple demo stack I also thought it could report a host of things the object,[group],card,stack,mainstack,filepath
- then I thought maybe they could be in a floating multi line field, not in the message box
- then I thought you could use a key combo to to lock the field in place and click on a line to open the script, the property inspector, reveal stack in finder, etc.
- then I thought I need to get back to my actual work.
So If anyone wants to take this further be my guest. It would be a great plugin.
Martin
If anyone is interested in creating plugins they should buy Andre Garcia's book Development Oriented Developmenthttps://andregarzia.com/books/developme ... pment.htmlto learn how you can do that.
As I was making the simple demo stack I also thought it could report a host of things the object,[group],card,stack,mainstack,filepath
- then I thought maybe they could be in a floating multi line field, not in the message box
- then I thought you could use a key combo to to lock the field in place and click on a line to open the script, the property inspector, reveal stack in finder, etc.
- then I thought I need to get back to my actual work.
So If anyone wants to take this further be my guest. It would be a great plugin.
Martin