Dear all,
I would like to have the "Home" key setting the frame/slice position of a given stack at its beginning and the "End" key setting the frame/slice position at the end of the stack (knowing that I have more than 100 stacks composed of about 500 pictures each I need to play around). Nevertheless the "Home" and "end" keys are not available as choice within the Plugins>Shortcuts>Add_shortcut... tool. Thus would there be another way for me to add these 2 wished shortcuts or alternatively a more efficient method than using the mouse and sliding the cursor at the beginning or end? I thank you very much for your lighting on this. My best regards, Philippe Philippe CARL Laboratoire de Bioimagerie et Pathologies UMR 7021 CNRS - Université de Strasbourg Faculté de Pharmacie 74 route du Rhin 67401 ILLKIRCH Tel : +33(0)3 68 85 42 89 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
What about a macro that set the slice to 0 and assign it a shortcut and
another to set it to nSlices ? On Wednesday, 18 November 2020 16:31:45 GMT you wrote: > Dear all, > I would like to have the "Home" key setting the frame/slice position of a > given stack at its beginning and the "End" key setting the frame/slice > position at the end of the stack (knowing that I have more than 100 stacks > composed of about 500 pictures each I need to play around). Nevertheless > the "Home" and "end" keys are not available as choice within the > Plugins>Shortcuts>Add_shortcut... tool. Thus would there be another way for > me to add these 2 wished shortcuts or alternatively a more efficient method > than using the mouse and sliding the cursor at the beginning or end? I > thank you very much for your lighting on this. > My best regards, > Philippe > > Philippe CARL > Laboratoire de Bioimagerie et Pathologies > UMR 7021 CNRS - Université de Strasbourg > Faculté de Pharmacie > 74 route du Rhin > 67401 ILLKIRCH > Tel : +33(0)3 68 85 42 89 > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Dear Gabriel,
This is exactly what I described below : I had exactly the same idea than you but the "Home" and "End" keys are not available within the Plugins>Shortcuts>Add_shortcut... tool which would able me to link the keys to the wished macros... My best regards, Philippe ----- Mail original ----- De: "Gabriel Landini" <[hidden email]> À: "imagej" <[hidden email]> Envoyé: Mercredi 18 Novembre 2020 17:57:06 Objet: Re: Shortcuts addition requests What about a macro that set the slice to 0 and assign it a shortcut and another to set it to nSlices ? On Wednesday, 18 November 2020 16:31:45 GMT you wrote: > Dear all, > I would like to have the "Home" key setting the frame/slice position of a > given stack at its beginning and the "End" key setting the frame/slice > position at the end of the stack (knowing that I have more than 100 stacks > composed of about 500 pictures each I need to play around). Nevertheless > the "Home" and "end" keys are not available as choice within the > Plugins>Shortcuts>Add_shortcut... tool. Thus would there be another way for > me to add these 2 wished shortcuts or alternatively a more efficient method > than using the mouse and sliding the cursor at the beginning or end? I > thank you very much for your lighting on this. > My best regards, > Philippe > > Philippe CARL > Laboratoire de Bioimagerie et Pathologies > UMR 7021 CNRS - Université de Strasbourg > Faculté de Pharmacie > 74 route du Rhin > 67401 ILLKIRCH > Tel : +33(0)3 68 85 42 89 > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by CARL Philippe (LBP)
How about assigning the F4 and F5 keys, for instance.
Each would be a macro. F4 setSlice(1); F5 setSlice(nSlices); Cheers- Michael Cammer -----Original Message----- From: CARL Philippe (LBP) <[hidden email]> Sent: Wednesday, November 18, 2020 11:32 AM To: [hidden email] Subject: Shortcuts addition requests [EXTERNAL] Dear all, I would like to have the "Home" key setting the frame/slice position of a given stack at its beginning and the "End" key setting the frame/slice position at the end of the stack (knowing that I have more than 100 stacks composed of about 500 pictures each I need to play around). Nevertheless the "Home" and "end" keys are not available as choice within the Plugins>Shortcuts>Add_shortcut... tool. Thus would there be another way for me to add these 2 wished shortcuts or alternatively a more efficient method than using the mouse and sliding the cursor at the beginning or end? I thank you very much for your lighting on this. My best regards, Philippe Philippe CARL Laboratoire de Bioimagerie et Pathologies UMR 7021 CNRS - Université de Strasbourg Faculté de Pharmacie 74 route du Rhin 67401 ILLKIRCH Tel : +33(0)3 68 85 42 89 -- ImageJ mailing list: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=DwIFaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=hUBj2D5n6oKThx2L01qn8IORZb5f-ruLVXPmQ1zQNnM&m=FJKlEvpOnjokws-MiwH-l4tbV1QUDzKWTZ-kOx_PFvg&s=kOdaGul58dsABIzvO4Dg_h2YzNE0rF49AJopXx1MhIU&e= ------------------------------------------------------------ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. ================================= -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by CARL Philippe (LBP)
Greetings,
Not exactly true... see: https://imagej.nih.gov/ij/developer/macro/macros.html#shortcuts macro "Home [n7]" {print("Home");} macro "End [n1]" {print("End");} and install macro should work on my keyboard numpad that are labeled Home and End, not the separate Home and End keys though. Question: What are the values that would follow the "&"? possibly keycodes? From: https://imagej.nih.gov/ij/macros/KeyboardShortcuts.txt // These shortcuts work with and without keypads. macro "Number 2 [&2]" { npad2("1"); } macro "number 3 [&3]" { npad2("9"); } Fred On Wed, November 18, 2020 11:02 am, CARL Philippe (LBP) wrote: > Dear Gabriel, > This is exactly what I described below : I had exactly the same idea than > you but the "Home" and "End" keys are not available within the > Plugins>Shortcuts>Add_shortcut... tool which would able me to link the > keys to the wished macros... > My best regards, > Philippe > > ----- Mail original ----- > De: "Gabriel Landini" <[hidden email]> > Ã: "imagej" <[hidden email]> > Envoyé: Mercredi 18 Novembre 2020 17:57:06 > Objet: Re: Shortcuts addition requests > > What about a macro that set the slice to 0 and assign it a shortcut and > another to set it to nSlices ? > > On Wednesday, 18 November 2020 16:31:45 GMT you wrote: >> Dear all, >> I would like to have the "Home" key setting the frame/slice position of >> a >> given stack at its beginning and the "End" key setting the frame/slice >> position at the end of the stack (knowing that I have more than 100 >> stacks >> composed of about 500 pictures each I need to play around). Nevertheless >> the "Home" and "end" keys are not available as choice within the >> Plugins>Shortcuts>Add_shortcut... tool. Thus would there be another way >> for >> me to add these 2 wished shortcuts or alternatively a more efficient >> method >> than using the mouse and sliding the cursor at the beginning or end? I >> thank you very much for your lighting on this. >> My best regards, >> Philippe >> >> Philippe CARL >> Laboratoire de Bioimagerie et Pathologies >> UMR 7021 CNRS - Université de Strasbourg >> Faculté de Pharmacie >> 74 route du Rhin >> 67401 ILLKIRCH >> Tel : +33(0)3 68 85 42 89 >> >> -- >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Cammer, Michael-3
Dear Michael,
I'm quite a keyboard freak especially when I'm performing analysis of quite large sets of data and thus all my function keys are already attributed. But yes I could indeed erase two keys and attribute them to "ad hoc" macros for the time being of this analysis duty and thus this could indeed be a solution. My best regards, Philippe ----- Mail original ----- De: "Cammer, Michael" <[hidden email]> À: "imagej" <[hidden email]> Envoyé: Mercredi 18 Novembre 2020 19:08:46 Objet: Re: Shortcuts addition requests How about assigning the F4 and F5 keys, for instance. Each would be a macro. F4 setSlice(1); F5 setSlice(nSlices); Cheers- Michael Cammer -----Original Message----- From: CARL Philippe (LBP) <[hidden email]> Sent: Wednesday, November 18, 2020 11:32 AM To: [hidden email] Subject: Shortcuts addition requests [EXTERNAL] Dear all, I would like to have the "Home" key setting the frame/slice position of a given stack at its beginning and the "End" key setting the frame/slice position at the end of the stack (knowing that I have more than 100 stacks composed of about 500 pictures each I need to play around). Nevertheless the "Home" and "end" keys are not available as choice within the Plugins>Shortcuts>Add_shortcut... tool. Thus would there be another way for me to add these 2 wished shortcuts or alternatively a more efficient method than using the mouse and sliding the cursor at the beginning or end? I thank you very much for your lighting on this. My best regards, Philippe Philippe CARL Laboratoire de Bioimagerie et Pathologies UMR 7021 CNRS - Université de Strasbourg Faculté de Pharmacie 74 route du Rhin 67401 ILLKIRCH Tel : +33(0)3 68 85 42 89 -- ImageJ mailing list: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=DwIFaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=hUBj2D5n6oKThx2L01qn8IORZb5f-ruLVXPmQ1zQNnM&m=FJKlEvpOnjokws-MiwH-l4tbV1QUDzKWTZ-kOx_PFvg&s=kOdaGul58dsABIzvO4Dg_h2YzNE0rF49AJopXx1MhIU&e= ------------------------------------------------------------ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. ================================= -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
I am also a keyboard freak and have like Philippe already assigned all usable keys to macros.
The solution I would wish for would be a more generic one: To allow a macro to respond to any key using scancodes or similar. For example, my keyboard has multimedia keys for previous track "|<<" and next track ">>|" that would be convenient for such slice or channel navigation. The Nirsoft KeyboardStateView utility shows this output for some of these "special" keys: Key Name Description Key Code Hex Key Code VK_END END key 35 0x23 VK_HOME HOME key 36 0x24 VK_MEDIA_PREV_TRACK Previous Track key 177 0xb1 VK_MEDIA_PLAY_PAUSE Play/Pause Media key 179 0xb3 VK_MEDIA_NEXT_TRACK Next Track key 176 0xb0 VK_LAUNCH_APP2 Start Application 2 key 183 0xb7 The last entry is the "calculator" key. It would be nice to have the ability to use for example this syntax for assigning these keys to launch macros: macro "Image Calculator [0xB7]" { run("Image Calculator..."); } or perhaps [#B7] or similar. Or maybe [VK_LAUNCH_APP2] is more readable. Then Carl could for example have put this in his StartupMacros file: macro "First Slice [0x24]" { // VK_HOME setSlice(1); } macro "Last Slice [0x23]" { // VK_END setSlice(nSlices); } I don't know if this is hard to implement? Perhaps all this is Windows specific? Stein -----Original Message----- Sent: 18. november 2020 20:14 Subject: Re: Shortcuts addition requests Dear Michael, I'm quite a keyboard freak especially when I'm performing analysis of quite large sets of data and thus all my function keys are already attributed. But yes I could indeed erase two keys and attribute them to "ad hoc" macros for the time being of this analysis duty and thus this could indeed be a solution. My best regards, Philippe ----- Mail original ----- -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |