Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 04, 2015, 04:04:53 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Alt-Tab with AltGr-.  (Read 7269 times)

me_7834539

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 33
    • View Profile
    • Donate to Member
IDEA: Alt-Tab with AltGr-.
« on: July 11, 2012, 10:03:10 AM »
Hello,
I know of skwire's AltEdge (and variations thereof), and I wanted to suggest that alt-tab behavior be easily accesible from the touchpad region, even without mouse gestures etc. This could be done by using AltGr in combination with "." (dot) since these two keys are very easily/ergonomically accessible from the touchpad area, especially on netbooks (might also do with altgr-space, but i'd prefer the dot...).

If this is too difficult, or too error-prone, I'd also be happy if altgr-. would at least switch between the current and the previously active window.

(I did some research to find apps that might do this, prior to posting this, and also tried to, uhm, "code" on my own, but results were... very buggy... (stuck control key etc...) :) )

AltGr should remain usable for other applications.

here's a link to alt-tab... http://www.autohotke...eys.htm#AltTabDetail


jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #1 on: July 11, 2012, 10:08:14 AM »
In Autohotkey, this should work: (I think  :-[ )
Code: AutoIt
  1. AltGR & .::AltTab
  2. AltGR & RShift & .::ShiftAltTab
  3.  

me_7834539

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 33
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #2 on: July 11, 2012, 01:33:43 PM »
Hello, as far as I can see, AltGR is not defined. They say you need to use LControl and RAlt, however

LControl & RAlt & .::AltTab

will not work, either.


me_7834539

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 33
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #3 on: July 11, 2012, 01:57:15 PM »
i found this, http://www.autohotke...iewtopic.php?t=56870

perhaps this is of help...

but I'm a bit suspicious... at least there seems to be a comma missing (or too much) in the "suspend" lines...

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #4 on: July 11, 2012, 03:00:30 PM »
Does this work? (sorry for not really testing it, but I don't have a windows machine available anymore :( )
Code: AutoIt
  1. <^>.::AltTab
  2. <^>!+.::ShiftAltTab
  3.  

me_7834539

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 33
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #5 on: July 11, 2012, 03:32:26 PM »
no  8)  :)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #6 on: July 11, 2012, 04:10:34 PM »
Does this work? (sorry for not really testing it, but I don't have a windows machine available anymore :( )
Code: AutoIt
  1. <^>.::AltTab
  2. <^>!+.::ShiftAltTab
  3.  

---------------------------

---------------------------
The AltTab hotkey "<^>!+." must specify which key (L or R).
---------------------------
OK  
---------------------------

will try the other one now...
Tom

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #7 on: July 11, 2012, 04:12:33 PM »
In Autohotkey, this should work: (I think  :-[ )
Code: AutoIt
  1. AltGR & .::AltTab
  2. AltGR & RShift & .::ShiftAltTab
  3.  

---------------------------

---------------------------
Error at line 1.

Line Text: AltGR & .::AltTab
Error: Invalid hotkey.

The program will exit.
---------------------------
OK   
---------------------------
Tom

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #8 on: July 11, 2012, 04:25:49 PM »
After a bit of experimenting, this works for me:

>!.::AltTab

but I cant get the second line to work

>!RShift.::ShiftAltTab


____________________________
hotkeys from AHK page http://www.autohotke...com/docs/Hotkeys.htm
Tom

me_7834539

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 33
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #9 on: July 11, 2012, 05:51:07 PM »
@tomos

that's cool, I always though AltGr needs to be specified by both ctrl and alt.

Btw,

RAlt & .::AltTab

works too.

Thanks. For 95% of cases, your help may well solve the problem! Thank you!!

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #10 on: July 11, 2012, 06:26:08 PM »
After a bit of experimenting, this works for me:

>!.::AltTab

but I cant get the second line to work

>!RShift.::ShiftAltTab
Thanks Tomos!!

Doesn't something like:
Code: [Select]
>!+.::ShiftAltTab
Work for the second line?

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #11 on: July 12, 2012, 03:42:31 AM »
Doesn't something like:
Code: [Select]
>!+.::ShiftAltTab
Work for the second line?

looks for Right or Left - but if I add R, as in
>!R+.::ShiftAltTab
it says invalid hotkey :-\
Tom

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #12 on: July 12, 2012, 03:51:39 AM »
Doesn't something like:
Code: [Select]
>!+.::ShiftAltTab
Work for the second line?

looks for Right or Left - but if I add R, as in
>!R+.::ShiftAltTab
it says invalid hotkey :-\
:/ bah, without actually experimenting, it's hard to get it right. Maybe our ahk guru skwire will come by and fix this :)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #13 on: July 12, 2012, 04:44:24 AM »
I think the problem is -
using the Shift key changes the "." key.
On my keyboard (German) it changes it to ":"
which is going to totally screw with any combination, well, especially this one :):

Code: Autohotkey
  1. >!.::ShiftAltTab
  2. >!+:::ShiftAltTab
  3.  

":::" is bound to confuse it...
I dont even know if that could be the solution, just experimenting ;)
Tom

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #14 on: July 12, 2012, 04:58:23 AM »
This, using "L" instead of the dot:

Code: Autohotkey
  1. >!l::AltTab
  2. >!>+l::ShiftAltTab
  3.  

gives me
---------------------------
The AltTab hotkey ">!>+l" must have exactly one modifier/prefix.
---------------------------

which makes me think AHK cant handle shortcuts with three keys?
Tom

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #15 on: July 12, 2012, 05:00:42 AM »
If above is true, only solution is to avoid the third key (shift key)

This works:

Code: Autohotkey
  1. >!k::AltTab
  2. >!p::ShiftAltTab
  3.  

so that's
AltGr+k for AltTab
AltGr+p for ShiftAltTab

works well enough here in terms of ease of use

_______________________
EDIT/ I thought the L version of AHK was unicode?
It wont recognise the vowels with umlauts:

Code: Autohotkey
  1. >!ö::AltTab
  2. >!ü::ShiftAltTab
  3.  
---------------------------
Line Text: >!�ltTab
Error: This line does not contain a recognized action.
---------------------------
Tom
« Last Edit: July 12, 2012, 05:28:57 AM by tomos »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #16 on: July 12, 2012, 06:00:01 AM »
I think the problem is -
using the Shift key changes the "." key.
On my keyboard (German) it changes it to ":"
which is going to totally screw with any combination, well, especially this one :):
Oh! You're probably right :)
Does this work?
Code: [Select]
>!:::ShiftAltTab

me_7834539

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 33
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #17 on: July 12, 2012, 07:20:02 AM »
no, >!:::ShiftAltTab does not work, but I think this is not really such an important feature, and it can be implemented with an additional key that ideally is near to the "dot key".
thanks again!!!

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #18 on: July 12, 2012, 02:22:43 PM »
Does this work?
Code: [Select]
>!:::ShiftAltTab

that gets a different error again:
---------------------------
Error at line 2.

Line Text: :ShiftAltTab
Error: This line does not contain a recognized action.
---------------------------

So it seems to be (possibly) two combinations that refuse to work as hotkeys:

  • 1. combination of three keys
  • 2. combination of Shift (and another qualifier key) and a key with two different characters e.g. :/;

maybe some AHK expert could confirm which one is the problem (or both) ?
Tom

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #19 on: July 12, 2012, 02:43:23 PM »
nope, I think it's a totally different problem. The error is that ":ShiftAltTab" is an unrecognized action. This indicates that the parser is identifying the first "::" as the hotkey delimiter, and using the last ":" as part of the action.
Hence, one of these might work:
Code: [Select]
>!: ::ShiftAltTab
:>!::ShiftAltTab

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #20 on: July 12, 2012, 03:10:01 PM »
nope, I think it's a totally different problem. The error is that ":ShiftAltTab" is an unrecognized action. This indicates that the parser is identifying the first "::" as the hotkey delimiter, and using the last ":" as part of the action.
Hence, one of these might work:
Code: [Select]
>!: ::ShiftAltTab
:>!::ShiftAltTab

both of those are invalid hotkeys
also the following
(using "L" maybe a confusing choice [edit] get same results with "p" though [/edit]) -

L>!::ShiftAltTab
>!ShiftL::ShiftAltTab
>!RShiftl::ShiftAltTab

but this
>!>+L::ShiftAltTab
gets me:
---------------------------
The AltTab hotkey ">!>+L" must have exactly one modifier/prefix.
---------------------------

think I'll retire from (my very short career in) the coding world, too many variables & unknowns there for me :p :-)
Tom
« Last Edit: July 12, 2012, 03:14:38 PM by tomos, Reason: \"very short career\" :-) »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #21 on: July 12, 2012, 03:45:30 PM »
think I'll retire from (my very short career in) the coding world, too many variables & unknowns there for me :p :-)
Ah ah, I understand your pain :P Thanks for the help!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,393
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #22 on: July 12, 2012, 04:21:58 PM »
I know of skwire's AltEdge (and variations thereof)

 :huh:  I don't recall writing anything by that name...  I think you have me confused with Skrommel.

http://www.donationc...l/index.html#AltEdge

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #23 on: July 12, 2012, 04:22:44 PM »
think I'll retire from (my very short career in) the coding world, too many variables & unknowns there for me :p :-)
Ah ah, I understand your pain :P Thanks for the help!

as a left hander, I'll probably use some variation of this when using the mouse (which unfortunately I have to a lot).
So, thanks for your help ;-) and to me_7834539 for the idea
Tom
Tom