Welcome Guest.   Make a donation to an author on the site December 21, 2014, 12:12:55 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Alt-Tab with AltGr-.  (Read 6179 times)
me_7834539
Participant
*
Posts: 31

View Profile Give some DonationCredits to this forum member
« 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...) smiley )

AltGr should remain usable for other applications.

here's a link to alt-tab... http://www.autohotkey.com.../Hotkeys.htm#AltTabDetail

Logged
jgpaiva
Global Moderator
*****
Posts: 4,717



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: July 11, 2012, 10:08:14 AM »

In Autohotkey, this should work: (I think  embarassed )
Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. AltGR & .::AltTab
  2. AltGR & RShift & .::ShiftAltTab
Logged

me_7834539
Participant
*
Posts: 31

View Profile Give some DonationCredits to this forum member
« 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.

Logged
me_7834539
Participant
*
Posts: 31

View Profile Give some DonationCredits to this forum member
« Reply #3 on: July 11, 2012, 01:57:15 PM »

i found this, http://www.autohotkey.com...ity/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...
Logged
jgpaiva
Global Moderator
*****
Posts: 4,717



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 Sad )
Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. <^>.::AltTab
  2. <^>!+.::ShiftAltTab
Logged

me_7834539
Participant
*
Posts: 31

View Profile Give some DonationCredits to this forum member
« Reply #5 on: July 11, 2012, 03:32:26 PM »

no  Cool  smiley
Logged
tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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 Sad )
Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. <^>.::AltTab
  2. <^>!+.::ShiftAltTab

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

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

will try the other one now...
Logged

Tom
tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: July 11, 2012, 04:12:33 PM »

In Autohotkey, this should work: (I think  embarassed )
Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. AltGR & .::AltTab
  2. AltGR & RShift & .::ShiftAltTab

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

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

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

The program will exit.
---------------------------
OK   
---------------------------
Logged

Tom
tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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.autohotkey.com/docs/Hotkeys.htm
Logged

Tom
me_7834539
Participant
*
Posts: 31

View Profile Give some DonationCredits to this forum member
« 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!!
Logged
jgpaiva
Global Moderator
*****
Posts: 4,717



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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:
[copy or print]
>!+.::ShiftAltTab
Work for the second line?
Logged

tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #11 on: July 12, 2012, 03:42:31 AM »

Doesn't something like:
[copy or print]
>!+.::ShiftAltTab
Work for the second line?

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

Tom
jgpaiva
Global Moderator
*****
Posts: 4,717



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: July 12, 2012, 03:51:39 AM »

Doesn't something like:
[copy or print]
>!+.::ShiftAltTab
Work for the second line?

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

tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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 smiley:

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1. >!.::ShiftAltTab
  2. >!+:::ShiftAltTab

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

Tom
tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #14 on: July 12, 2012, 04:58:23 AM »

This, using "L" instead of the dot:

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  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?
Logged

Tom
tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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:

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  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:

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1. >!├Â::AltTab
  2. >!├╝::ShiftAltTab
---------------------------
Line Text: >!´┐ŻltTab
Error: This line does not contain a recognized action.
---------------------------
« Last Edit: July 12, 2012, 05:28:57 AM by tomos » Logged

Tom
jgpaiva
Global Moderator
*****
Posts: 4,717



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 smiley:
Oh! You're probably right smiley
Does this work?
[copy or print]
>!:::ShiftAltTab
Logged

me_7834539
Participant
*
Posts: 31

View Profile Give some DonationCredits to this forum member
« 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!!!
Logged
tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #18 on: July 12, 2012, 02:22:43 PM »

Does this work?
[copy or print]
>!:::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) ?
Logged

Tom
jgpaiva
Global Moderator
*****
Posts: 4,717



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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:
[copy or print]
>!: ::ShiftAltTab
:>!::ShiftAltTab
Logged

tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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:
[copy or print]
>!: ::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 :-)
« Last Edit: July 12, 2012, 03:14:38 PM by tomos; Reason: \"very short career\" :-) » Logged

Tom
jgpaiva
Global Moderator
*****
Posts: 4,717



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 tongue Thanks for the help!
Logged

skwire
Global Moderator
*****
Posts: 4,181



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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.donationcoder....rommel/index.html#AltEdge
Logged

tomos
Charter Member
***
Posts: 8,730



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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 tongue 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
Logged

Tom
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.358s | Server load: 0.9 ]