space coding in macros?

25 views
Skip to first unread message

Matthew MacLellan

unread,
Sep 24, 2022, 1:18:18 AM9/24/22
to SKYIndexUsers
Hi all,

Sorry to bother you all again. 

I'm trying to write a macro in Sky. (I've written two successfully so far!). Does anybody know the coding–if it exists–to include a space in a macro? Unless my eyes are just tired, I don't see it in the manual. I've tried {SP} and {SPACE} so far to no avail. 

Trying to write a macro that will duplicate the entry, delete the locator, and add "note: " and apply the note text coding to it, and then leave the cursor back in the entry to let me type the note I want to add to the entry.

I'm assuming a macro is the best way to go about this if I'm extremely invested in saving keystrokes. :)

thanks,
Matthew

Jochen Fassbender

unread,
Sep 24, 2022, 6:30:14 AM9/24/22
to skyind...@googlegroups.com
Hi Matthew,

Try to just type a space by using the space bar. Your macro should end with {end} for the cursor ready to type.

Jochen


--
You received this message because you are subscribed to the Google Groups "SKYIndexUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skyindexuser...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skyindexusers/e8T-Mh24fenpPImXfANUaztx-M9BVPnx3Z9uroAzFbCL0ZtMcndPi1NOxiA0afGIC44ron0yVQqQUB7-i94cVzw3y7sYHP1DK2bmh-3gIFI%3D%40matthewmaclellan.com.

Matthew MacLellan

unread,
Sep 25, 2022, 12:49:13 AM9/25/22
to Jochen Fassbender, skyind...@googlegroups.com
Thank you, Jochen!

I thought this small tidbit from you might fix the macro I've been trying to figure out for 3 hours, but no luck! I should have said in my earlier message, but forgot, that I'm trying to leave the note as a subheading (something I picked up from Do Mi Stauber, I think).

Perhaps I should consult Kamm and not this list, but the macro I've written adequately duplicates the entry and leaves the "note: " text in the Sub1 field (formatted correctly), but it leaves me in the main heading, rather than the subheading at the culmination of the macro.

Here's what I'm using:

^(d)+{tab}{tab}{del}+{tab}( note: )+{tab}{tab}^+{left 2}^+(o)%{f12}{end}


No worries if you have no ideas, it is a bit of a niche desire of mine, I suppose. This is what you get for using all 3 indexing platforms and wanting to combine the best from each! 



------- Original Message -------

Jochen Fassbender

unread,
Sep 25, 2022, 4:11:19 AM9/25/22
to Matthew MacLellan, skyind...@googlegroups.com
Hi Matthew,

It's not so easy to figure out your coding. But at least it shows that you can use simple spaces contrary to what you originally said.

Anyway, here is my suggestion (note that the macro only works when there is a marquee somewhere in the record you want to duplicate -- it doesn't work in Edit mode):

{end}^d{del}+{tab}^+(o)note:

Note that the macro ends with a space after the colon.

The beginning
{end} makes sure that the marquee is in the Page field before duplicating the record and deleting the page number in the duplicated record. The rest makes sure that you end up with your cursor ready to write in note format in the subheading field (assuming you only have Sub1). The word "note: " is in note format, too.

Jochen


Matthew MacLellan

unread,
Sep 25, 2022, 12:25:48 PM9/25/22
to Jochen Fassbender, skyind...@googlegroups.com
Thank you for trying. That also does not work. I'll write Kamm.

------- Original Message -------

Nigel D'Auvergne

unread,
Sep 25, 2022, 1:22:19 PM9/25/22
to Matthew MacLellan, Jochen Fassbender, SKYIndexUsers

It just needs an additional “{end}” to make it work:

 

{end}^d{end}{del}+{tab}^+(o)note:

 

Nigel

 

_______________________________________________________________

Nigel D'Auvergne • Freelance Indexing

Steyning • West Sussex • UK

+44(0)7743 611935

www.nigeldauvergne.co.uk

Matthew MacLellan

unread,
Sep 25, 2022, 1:27:00 PM9/25/22
to ni...@nigeldauvergne.co.uk, Jochen Fassbender, SKYIndexUsers
Oh, thanks so much! That does indeed work how I anticipated. 

I don't usually use the end key in my normal Sky operations so using it in macros is new to me, will need to remember that.

Matthew


------- Original Message -------

Jochen Fassbender

unread,
Sep 25, 2022, 1:32:56 PM9/25/22
to Matthew MacLellan, ni...@nigeldauvergne.co.uk, SKYIndexUsers
Well, in my test file the macro does work as given. After you've duplicated the record the marquee is still in the Page field. But good to hear that it now works for you with the additional {end}.

Jochen



Theresa Duran

unread,
Sep 25, 2022, 1:52:08 PM9/25/22
to SKYIndexUsers

Jochen, I’m wondering if you’re testing the macro in SKY 7 while Matthew is using SKY 8. I’ve found that some of my v.7 macros require slightly different coding to work in v.8, particularly those that involve advancing to the next cell.

 

Excellent solution, Nigel!

 

Theresa

 

From: skyind...@googlegroups.com <skyind...@googlegroups.com> On Behalf Of Jochen Fassbender
Sent: Sunday, September 25, 2022 10:33 AM
To: Matthew MacLellan <mat...@matthewmaclellan.com>; ni...@nigeldauvergne.co.uk
Cc: 'SKYIndexUsers' <SkyInd...@googlegroups.com>
Subject: Re: [SKYIndexUsers] space coding in macros?

 

Well, in my test file the macro does work as given. After you've duplicated the record the marquee is still in the Page field. But good to hear that it now works for you with the additional {end}.

Jochen

Jochen Fassbender

unread,
Sep 25, 2022, 2:02:27 PM9/25/22
to skyind...@googlegroups.com
Yes, I was thinking of the same. And yes, I'm using SKY 7. And again yes, the Nigel's additional {end} makes 100% sure that the marquee will be in the Page field of the duplicated record.

Jochen


--
You received this message because you are subscribed to the Google Groups "SKYIndexUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skyindexuser...@googlegroups.com.

mjhw...@gmail.com

unread,
Sep 25, 2022, 9:20:55 PM9/25/22
to SKYIndexUsers
A word of caution: In February 2021 I wrote to Kamm reporting that in SI8 macros do not work as expected in the Page field --  when a macro moves the cursor to the page field and then adds to or edits the page field problems invariably occur. Furthermore, the example provided in the User Guide does not work! Kamm's response acknowledged the issue. Since I have heard no more, I assume that no one else has reported the issue and that he has therefore decided to leave SI8 as is and remedy the issue in the next version of SKY. 

If you're still having problems, perhaps you could go back to SI7 (if you still  have it) just for this index.

Michael

Matthew MacLellan

unread,
Sep 25, 2022, 9:25:02 PM9/25/22
to mjhw...@gmail.com, SKYIndexUsers
Thank you for the thoughts, Michael! I appreciate knowing these things/history.

I only have Sky 8. I know some have fondness for 7, and I've considered purchasing it. The thing about Sky 7 I didn't like so much was I really value being able to ctrl+tab to activate the other pane (the index preview pane) and type a few letters and navigate to that letter of the index. Being able to see what's going on in a certain letter without using the mouse seems more possible in 8 than 7 (I've checked the 7 manual, but if I'm wrong, I'm open to being corrected!!). 

I'm coming from a season of using Macrex for a bit and I had grown really used to ranting to myself about my entries in the form of a note as a subheading. I think it's working fine now.

Matthew



------- Original Message -------

Theresa Duran

unread,
Sep 26, 2022, 12:53:50 PM9/26/22
to SKYIndexUsers

Matthew wrote:

I know some have fondness for 7, and I've considered purchasing it. The thing about Sky 7 I didn't like so much was I really value being able to ctrl+tab to activate the other pane (the index preview pane) and type a few letters and navigate to that letter of the index. Being able to see what's going on in a certain letter without using the mouse seems more possible in 8 than 7.

 

When I use SKY 7, I type CTRLl+G (Goto Entry) and a few letters to quickly navigate to a different section of the index. I don’t think that’s any slower than the navigation method you describe. I also rely heavily on the Browse Pane (ALTt+CTRL+B) to bring up a second window that allows me to see different parts of the index simultaneously and the option to jump to the browsing location by hitting Enter. SKY 8 has this same feature, but I’ve found it to be unstable.

 

Theresa

Jochen Fassbender

unread,
Sep 27, 2022, 7:45:35 PM9/27/22
to skyind...@googlegroups.com
Same here, Theresa. Ctrl+G is invaluable for navigating. And don't forget that you can also use the arrow keys to go up and down when using the Browse Pane.

My main reason to continue using SKY 7 is its unique labeling system in that a label color fills in all of the background of a record; this way labeled records are visually much more obvious. And my indexes tend to be as colorful as parrots.

Jochen


--
You received this message because you are subscribed to the Google Groups "SKYIndexUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skyindexuser...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages