Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1830 > unrolled thread
| Started by | Martin Harborth <martin.harborth@yahoo.de> |
|---|---|
| First post | 2011-04-22 09:41 +0000 |
| Last post | 2011-05-19 11:42 +0000 |
| Articles | 8 — 5 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? Martin Harborth <martin.harborth@yahoo.de> - 2011-04-22 09:41 +0000
Re: Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? István Zachar <zac@freemail.hu> - 2011-04-24 12:26 +0000
Re: Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? Martin Harborth <martin.harborth@yahoo.de> - 2011-04-25 11:28 +0000
Re: Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? István Zachar <zac@freemail.hu> - 2011-04-30 09:54 +0000
Re: Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? Martin Harborth <martin.harborth@yahoo.de> - 2011-04-28 10:33 +0000
Re: Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? Stefan Salanski <wutchamacallit27@gmail.com> - 2011-05-04 23:48 +0000
Re: Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? magma <maderri2@gmail.com> - 2011-05-04 10:35 +0000
Re: Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? TrinhDao <hackerdarkrose@yahoo.com> - 2011-05-19 11:42 +0000
| From | Martin Harborth <martin.harborth@yahoo.de> |
|---|---|
| Date | 2011-04-22 09:41 +0000 |
| Subject | Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? |
| Message-ID | <iorig2$o61$1@smc.vnet.net> |
Dear Mathematica Gurus, I'm using Mathematica 8 and I was searching today in the Internet but I did not find a solution for the following "problem": I really don't like the unhandy shortcut Ctrl+F6 for switching between open notebooks. Because on a Windows system I'm used to the convenient shortcut Ctrl+Tab for the same functionality in a lot of different applications. Is it really not possible to customize Mathematica key bindings in order to have the same shortcut in Mathematica 8? Best regards, Martin.
[toc] | [next] | [standalone]
| From | István Zachar <zac@freemail.hu> |
|---|---|
| Date | 2011-04-24 12:26 +0000 |
| Message-ID | <ip14sp$gg3$1@smc.vnet.net> |
| In reply to | #1830 |
Dear Martin, as far as I know, there is no handy way to reassign a shortcut key combination to window swtiching *inside* Mathematica. However, it is possible to use external applications, that register clicks and key hits, and call arbitrary functions: one particularly fitting is AutoHotkey: http://www.autohotkey.com/ My personal solution is to assign the Win+Tab key to send Ctrl+F6 to Mathematica (and change between Mathematica windows), and by this way, I can rely on Alt+Tab as well to change between other windows and Mathematica. The AutoHotkey language is easy like hell, but since this is a Mathematica forum, I won't flood it with example code. Email me if you need further help. Istvan On Apr 22, 11:41 am, Martin Harborth <martin.harbo...@yahoo.de> wrote: > Dear Mathematica Gurus, > > I'm using Mathematica 8 and I was searching today in the > Internet but I did not find a solution for the following > "problem": > > I really don't like the unhandy shortcut Ctrl+F6 for switching > between open notebooks. Because on a Windows system I'm used > to the convenient shortcut Ctrl+Tab for the same functionality > in a lot of different applications. > > Is it really not possible to customize Mathematica key > bindings in order to have the same shortcut in Mathematica 8? > > Best regards, > Martin.
[toc] | [prev] | [next] | [standalone]
| From | Martin Harborth <martin.harborth@yahoo.de> |
|---|---|
| Date | 2011-04-25 11:28 +0000 |
| Message-ID | <ip3lsh$r7u$1@smc.vnet.net> |
| In reply to | #1858 |
Dear István, Thanks for your suggestion to use autohotkey. But I'm using Mathematica at my business site and I'm not allowed to install any other "not confirmed" software on my business computer (this is even controlled by automatic registry scan). If there is really no way to assign Ctrl+Tab for notebook switching within Mathematica 8 I'm still pretty astonished because Ctrl+F6 is not handy in my opinion. And switching notebooks is a very frequent task ... And by the way, in Mathematica 4 on Windows, Ctrl+Tab works like expected. So why not in Mathematica 8? :-( Best regards, Martin. -------- Original-Nachricht -------- Betreff: Re: Mathematica 8: Shortcut Ctrl+Tab for switching between notebooks? Von: István Zachar <zac@freemail.hu> An: Datum: 24.04.2011 14:26 > Dear Martin, > > as far as I know, there is no handy way to reassign a shortcut key > combination to window swtiching *inside* Mathematica. > However, it is possible to use external applications, that register > clicks and key hits, and call arbitrary functions: one particularly > fitting is AutoHotkey: > > http://www.autohotkey.com/ > > My personal solution is to assign the Win+Tab key to send Ctrl+F6 to > Mathematica (and change between Mathematica windows), and by this way, > I can rely on Alt+Tab as well to change between other windows and > Mathematica. > The AutoHotkey language is easy like hell, but since this is a > Mathematica forum, I won't flood it with example code. Email me if you > need further help. > > Istvan > > On Apr 22, 11:41 am, Martin Harborth <martin.harbo...@yahoo.de> wrote: >> Dear Mathematica Gurus, >> >> I'm using Mathematica 8 and I was searching today in the >> Internet but I did not find a solution for the following >> "problem": >> >> I really don't like the unhandy shortcut Ctrl+F6 for switching >> between open notebooks. Because on a Windows system I'm used >> to the convenient shortcut Ctrl+Tab for the same functionality >> in a lot of different applications. >> >> Is it really not possible to customize Mathematica key >> bindings in order to have the same shortcut in Mathematica 8? >> >> Best regards, >> Martin. > >
[toc] | [prev] | [next] | [standalone]
| From | István Zachar <zac@freemail.hu> |
|---|---|
| Date | 2011-04-30 09:54 +0000 |
| Message-ID | <ipgm8c$8tj$1@smc.vnet.net> |
| In reply to | #1858 |
Thanks for the follow-up post Martin.
I was aware of the KeyEventTranslations.tr file, but it always seemed
to be a bad idea to hack it, not because of the risk (I guess it's
minimal) but because one always forget to salvage old .tr files when
moving to a new computer/new Mathematica version. For my experience,
an external script is more portable.
Also, undocumentedness is a major hindrance...
Istvan
On Apr 28, 12:33 pm, Martin Harborth <martin.harbo...@yahoo.de> wrote:
> Dear Istv=E1n,
>
> I tried it today again.
>
> One only has to add the following lines to the
> "KeyEventTranslations.tr" file in order to have the Ctrl+Tab
> key working in the front end of Mathematica 8 as in Mathematica 4:
>
> Item[KeyEvent["Tab", Modifiers -> {Control}],
> FrontEndExecute[FrontEndToken["CycleNotebooksForward"]]]
>
> But this is really undocumented by Wolfram Research, I wonder
> why ...
>
> Thanks a lot.
>
> Best regards,
> Martin.
>
> -------- Original-Nachricht --------
> Betreff: Re: Mathematica 8: Shortcut Ctrl+Tab for switching
> between notebooks?
> Von: Istv=E1n Zachar <z...@freemail.hu>
> An:
> Datum: 24.04.2011 14:26
>
> > Dear Martin,
>
> > as far as I know, there is no handy way to reassign a shortcut key
> > combination to window swtiching *inside* Mathematica.
> > However, it is possible to use external applications, that register
> > clicks and key hits, and call arbitrary functions: one particularly
> > fitting is AutoHotkey:
>
> >http://www.autohotkey.com/
>
> > My personal solution is to assign the Win+Tab key to send Ctrl+F6 to
> > Mathematica (and change between Mathematica windows), and by this way,
> > I can rely on Alt+Tab as well to change between other windows and
> > Mathematica.
> > The AutoHotkey language is easy like hell, but since this is a
> > Mathematica forum, I won't flood it with example code. Email me if you
> > need further help.
>
> > Istvan
>
> > On Apr 22, 11:41 am, Martin Harborth <martin.harbo...@yahoo.de> wrote:
> >> Dear Mathematica Gurus,
>
> >> I'm using Mathematica 8 and I was searching today in the
> >> Internet but I did not find a solution for the following
> >> "problem":
>
> >> I really don't like the unhandy shortcut Ctrl+F6 for switching
> >> between open notebooks. Because on a Windows system I'm used
> >> to the convenient shortcut Ctrl+Tab for the same functionality
> >> in a lot of different applications.
>
> >> Is it really not possible to customize Mathematica key
> >> bindings in order to have the same shortcut in Mathematica 8?
>
> >> Best regards,
> >> Martin.
[toc] | [prev] | [next] | [standalone]
| From | Martin Harborth <martin.harborth@yahoo.de> |
|---|---|
| Date | 2011-04-28 10:33 +0000 |
| Message-ID | <ipbfqj$abm$1@smc.vnet.net> |
| In reply to | #1858 |
Dear István,
I tried it today again.
One only has to add the following lines to the
"KeyEventTranslations.tr" file in order to have the Ctrl+Tab
key working in the front end of Mathematica 8 as in Mathematica 4:
Item[KeyEvent["Tab", Modifiers -> {Control}],
FrontEndExecute[FrontEndToken["CycleNotebooksForward"]]]
But this is really undocumented by Wolfram Research, I wonder
why ...
Thanks a lot.
Best regards,
Martin.
-------- Original-Nachricht --------
Betreff: Re: Mathematica 8: Shortcut Ctrl+Tab for switching
between notebooks?
Von: István Zachar <zac@freemail.hu>
An:
Datum: 24.04.2011 14:26
> Dear Martin,
>
> as far as I know, there is no handy way to reassign a shortcut key
> combination to window swtiching *inside* Mathematica.
> However, it is possible to use external applications, that register
> clicks and key hits, and call arbitrary functions: one particularly
> fitting is AutoHotkey:
>
> http://www.autohotkey.com/
>
> My personal solution is to assign the Win+Tab key to send Ctrl+F6 to
> Mathematica (and change between Mathematica windows), and by this way,
> I can rely on Alt+Tab as well to change between other windows and
> Mathematica.
> The AutoHotkey language is easy like hell, but since this is a
> Mathematica forum, I won't flood it with example code. Email me if you
> need further help.
>
> Istvan
>
> On Apr 22, 11:41 am, Martin Harborth <martin.harbo...@yahoo.de> wrote:
>> Dear Mathematica Gurus,
>>
>> I'm using Mathematica 8 and I was searching today in the
>> Internet but I did not find a solution for the following
>> "problem":
>>
>> I really don't like the unhandy shortcut Ctrl+F6 for switching
>> between open notebooks. Because on a Windows system I'm used
>> to the convenient shortcut Ctrl+Tab for the same functionality
>> in a lot of different applications.
>>
>> Is it really not possible to customize Mathematica key
>> bindings in order to have the same shortcut in Mathematica 8?
>>
>> Best regards,
>> Martin.
>
>
[toc] | [prev] | [next] | [standalone]
| From | Stefan Salanski <wutchamacallit27@gmail.com> |
|---|---|
| Date | 2011-05-04 23:48 +0000 |
| Message-ID | <ipsojh$8bp$1@smc.vnet.net> |
| In reply to | #1945 |
On Apr 28, 6:33 am, Martin Harborth <martin.harbo...@yahoo.de> wrote:
> Dear Istv=E1n,
>
> I tried it today again.
>
> One only has to add the following lines to the
> "KeyEventTranslations.tr" file in order to have the Ctrl+Tab
> key working in the front end of Mathematica 8 as in Mathematica 4:
>
> Item[KeyEvent["Tab", Modifiers -> {Control}],
> FrontEndExecute[FrontEndToken["CycleNotebooksForward"]]]
>
> But this is really undocumented by Wolfram Research, I wonder
> why ...
>
> Thanks a lot.
>
> Best regards,
> Martin.
>
> -------- Original-Nachricht --------
> Betreff: Re: Mathematica 8: Shortcut Ctrl+Tab for switching
> between notebooks?
> Von: Istv=E1n Zachar <z...@freemail.hu>
> An:
> Datum: 24.04.2011 14:26
>
>
>
>
>
>
>
> > Dear Martin,
>
> > as far as I know, there is no handy way to reassign a shortcut key
> > combination to window swtiching *inside* Mathematica.
> > However, it is possible to use external applications, that register
> > clicks and key hits, and call arbitrary functions: one particularly
> > fitting is AutoHotkey:
>
> >http://www.autohotkey.com/
>
> > My personal solution is to assign the Win+Tab key to send Ctrl+F6 to
> > Mathematica (and change between Mathematica windows), and by this way,
> > I can rely on Alt+Tab as well to change between other windows and
> > Mathematica.
> > The AutoHotkey language is easy like hell, but since this is a
> > Mathematica forum, I won't flood it with example code. Email me if you
> > need further help.
>
> > Istvan
>
> > On Apr 22, 11:41 am, Martin Harborth <martin.harbo...@yahoo.de> wrote:
> >> Dear Mathematica Gurus,
>
> >> I'm using Mathematica 8 and I was searching today in the
> >> Internet but I did not find a solution for the following
> >> "problem":
>
> >> I really don't like the unhandy shortcut Ctrl+F6 for switching
> >> between open notebooks. Because on a Windows system I'm used
> >> to the convenient shortcut Ctrl+Tab for the same functionality
> >> in a lot of different applications.
>
> >> Is it really not possible to customize Mathematica key
> >> bindings in order to have the same shortcut in Mathematica 8?
>
> >> Best regards,
> >> Martin.
Martin,
Thanks for posting that, I had no idea those files existed in an
editable format, and in Mathematica style code too!
I tried to implement what you said by placing that line into my
KeyEventTranslations.tr file, but with no effect. I have of course
restarted mathematica, though not my computer entirely. Do you have
any ideas why this is not working? The lack of documentation for this
is indeed frustrating. My system information is below if it helps.
{"8.0 for Microsoft Windows (64-bit) (February 23, 2011)", "8.0.1.0 \
(2063988, 2063803)"}
Thanks,
-Stefan S
[toc] | [prev] | [next] | [standalone]
| From | magma <maderri2@gmail.com> |
|---|---|
| Date | 2011-05-04 10:35 +0000 |
| Message-ID | <ipra5h$vv$1@smc.vnet.net> |
| In reply to | #1858 |
On Apr 30, 11:54 am, Istv=E1n Zachar <z...@freemail.hu> wrote: >For my experience, > an external script is more portable. Why not an " internal" script? :-) You could write a simple Mathematica function which modifies (a copy of) the Key events binding file. Once you have Mathematica, you do not need anything else.
[toc] | [prev] | [next] | [standalone]
| From | TrinhDao <hackerdarkrose@yahoo.com> |
|---|---|
| Date | 2011-05-19 11:42 +0000 |
| Message-ID | <ir2vmv$h1e$1@smc.vnet.net> |
| In reply to | #1858 |
It works for me, thanks.
Ctrl - Tab is a really good idea to change the nootbook window. (as in
Firefox, IE,...).
Just add this command and add a comma at the end.
Item[KeyEvent["Tab", Modifiers -> {Control}],
FrontEndExecute[FrontEndToken["CycleNotebooksForward"]]],
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web