| View previous topic :: View next topic |
| Author |
Message |
azure
Joined: 07 Jun 2007 Posts: 694
|
Posted: Sat May 23, 2009 10:58 pm Post subject: change language hotkey |
|
|
hello
can you tell me please a script that will toggle between keyboard languages (what normally LEFT SHIFT + ALT does in WinXP) when I hit SCROLL?
however, I am not sure it is ok to have a hotkey to do this, I would prefer a hardcoded method, to associate INSERT clicking with some other action that changes keyboard language, in order not to interfere with other clicks
thanks |
|
| Back to top |
|
 |
azure
Joined: 07 Jun 2007 Posts: 694
|
Posted: Tue May 26, 2009 3:48 pm Post subject: |
|
|
| anyone please ? |
|
| Back to top |
|
 |
DreymaR
Joined: 24 May 2009 Posts: 89 Location: Bćrum, Norway
|
Posted: Tue May 26, 2009 4:00 pm Post subject: |
|
|
I think you have to use a SendMessage:
; Switch the active window's keyboard layout/language to English:
PostMessage, 0x50, 0, 0x4090409,, A ; 0x50 is WM_INPUTLANGCHANGEREQUEST.
; Switch input locale:
PostMessage, 0x51, somethingsomething
Take a look at the MSDN library, and AHK help under 'Messages'. _________________ Better burden you cannot carry than man-wisdom much -- Hávamál |
|
| Back to top |
|
 |
fatcrank Guest
|
Posted: Tue Sep 07, 2010 11:49 am Post subject: |
|
|
Thanks for the lead, DreymaR. I used:
PostMessage, 0x50, 0x02,0,, A ; 0x50 is WM_INPUTLANGCHANGEREQUEST.
The first param (0x02) moves forward through the list of installed languages. I bound (0x04) to the shift+hotkey i'm using.
Super useful question. It's a nice alternative to the built in key combos for changing input language. They always get in the way of anyone using photoshop and it's a pain losing focus half the time by pressing the alt+shift key anyway. |
|
| Back to top |
|
 |
DreymaR
Joined: 24 May 2009 Posts: 89 Location: Bćrum, Norway
|
Posted: Tue Sep 07, 2010 2:28 pm Post subject: |
|
|
Nice! Your way is very useful. _________________ Better burden you cannot carry than man-wisdom much -- Hávamál |
|
| Back to top |
|
 |
colore
Joined: 04 Nov 2007 Posts: 36
|
Posted: Sat Sep 11, 2010 8:02 pm Post subject: |
|
|
| can you tell me please the full script for SCROLL shortcut? |
|
| Back to top |
|
 |
USER_Fogus Guest
|
Posted: Sat Sep 11, 2010 9:26 pm Post subject: |
|
|
| Quote: | | can you tell me please the full script for SCROLL shortcut? |
I also would like to know. |
|
| Back to top |
|
 |
DreymaR
Joined: 24 May 2009 Posts: 89 Location: Bćrum, Norway
|
Posted: Tue Sep 14, 2010 7:10 am Post subject: |
|
|
For most of my scrolling needs, I simply send a WheelDown/WheelUp keypress! However, there is a Windows message to send scroll events directly:
http://msdn.microsoft.com/en-us/library/bb787577(VS.85).aspx
Doesn't always work in legacy applications, for which there is, apparently, an alternative way.
I don't want to write it up for you - do your own homework.  _________________ Better burden you cannot carry than man-wisdom much -- Hávamál |
|
| Back to top |
|
 |
|