DonationCoder.com Forum

DonationCoder.com Software => Coding Snacks => Post New Requests Here => Topic started by: me_7834539 on July 11, 2012, 10:03 AM

Title: IDEA: Alt-Tab with AltGr-.
Post by: me_7834539 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.autohotkey.com/docs/Hotkeys.htm#AltTabDetail

Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: jgpaiva on July 11, 2012, 10:08 AM
In Autohotkey, this should work: (I think  :-[ )
Code: AutoIt [Select]
  1. AltGR & .::AltTab
  2. AltGR & RShift & .::ShiftAltTab
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: me_7834539 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.

Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: me_7834539 on July 11, 2012, 01:57 PM
i found this, http://www.autohotkey.com/community/viewtopic.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...
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: jgpaiva 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
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: me_7834539 on July 11, 2012, 03:32 PM
no  8)  :)
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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...
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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   
---------------------------
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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.autohotkey.com/docs/Hotkeys.htm
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: me_7834539 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!!
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: jgpaiva 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?
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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 :-\
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: jgpaiva 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 :)
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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 ;)
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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?
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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.
---------------------------
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: jgpaiva 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
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: me_7834539 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!!!
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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:


maybe some AHK expert could confirm which one is the problem (or both) ?
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: jgpaiva 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
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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 :-)
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: jgpaiva 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!
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: skwire 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.donationcoder.com/Software/Skrommel/index.html#AltEdge
Title: Re: IDEA: Alt-Tab with AltGr-.
Post by: tomos 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