topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday March 19, 2024, 2:03 am
  • Proudly celebrating 15+ 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 17709 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 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
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #1 on: July 11, 2012, 10:08 AM »
In Autohotkey, this should work: (I think  :-[ )
Code: AutoIt [Select]
  1. AltGR & .::AltTab
  2. AltGR & RShift & .::ShiftAltTab

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 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 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
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #4 on: July 11, 2012, 03:00 PM »
Does this work? (sorry for not really testing it, but I don't have a windows machine available anymore :( )
Code: AutoIt [Select]
  1. <^>.::AltTab
  2. <^>!+.::ShiftAltTab

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 PM »
no  8)  :)

tomos

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

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

---------------------------
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: 11,958
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #7 on: July 11, 2012, 04:12 PM »
In Autohotkey, this should work: (I think  :-[ )
Code: AutoIt [Select]
  1. AltGR & .::AltTab
  2. AltGR & RShift & .::ShiftAltTab

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

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

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

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

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,958
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #8 on: July 11, 2012, 04:25 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 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
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #10 on: July 11, 2012, 06:26 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:
>!+.::ShiftAltTab
Work for the second line?

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,958
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #11 on: July 12, 2012, 03:42 AM »
Doesn't something like:
>!+.::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
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #12 on: July 12, 2012, 03:51 AM »
Doesn't something like:
>!+.::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: 11,958
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #13 on: July 12, 2012, 04:44 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 [Select]
  1. >!.::ShiftAltTab
  2. >!+:::ShiftAltTab

":::" 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: 11,958
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #14 on: July 12, 2012, 04:58 AM »
This, using "L" instead of the dot:

Code: Autohotkey [Select]
  1. >!l::AltTab
  2. >!>+l::ShiftAltTab

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: 11,958
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #15 on: July 12, 2012, 05:00 AM »
If above is true, only solution is to avoid the third key (shift key)

This works:

Code: Autohotkey [Select]
  1. >!k::AltTab
  2. >!p::ShiftAltTab

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 [Select]
  1. >!ö::AltTab
  2. >!ü::ShiftAltTab
---------------------------
Line Text: >!�ltTab
Error: This line does not contain a recognized action.
---------------------------
Tom
« Last Edit: July 12, 2012, 05:28 AM by tomos »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #16 on: July 12, 2012, 06:00 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?
>!:::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 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: 11,958
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #18 on: July 12, 2012, 02:22 PM »
Does this work?
>!:::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
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #19 on: July 12, 2012, 02:43 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:
>!: ::ShiftAltTab
:>!::ShiftAltTab

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,958
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #20 on: July 12, 2012, 03:10 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:
>!: ::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 PM by tomos, Reason: \"very short career\" :-) »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #21 on: July 12, 2012, 03:45 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: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #22 on: July 12, 2012, 04:21 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.

https://www.donation...l/index.html#AltEdge

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,958
    • View Profile
    • Donate to Member
Re: IDEA: Alt-Tab with AltGr-.
« Reply #23 on: July 12, 2012, 04:22 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