AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Keyboard layout switcher
Goto page Previous  1, 2
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
monsoon



Joined: 13 May 2009
Posts: 1

PostPosted: Thu May 14, 2009 8:13 am    Post subject: Reply with quote

cargo, ваш скрипт работает напрямую с буфером обмена и не очищает его после того, как скрипт отработал.

скрипты wOxxOm, cargo рабочие, но кто смог бы их улучшить?
Например, автоматически делать попытку выделения и исправления последнего слова, если выделения не было.
-------------------------------------------------------
cargo, your script works directly with the clipboard and does not clear it after the script has fulfilled

Scripts wOxxOm, cargo workers, but who could improve them?
For example, automatically to do attempt to select and correct the last word if selection was not
Back to top
View user's profile Send private message
arcma



Joined: 25 Aug 2009
Posts: 2
Location: Moscow

PostPosted: Tue Aug 25, 2009 12:08 pm    Post subject: Re: Keyboard layout switcher Reply with quote

wOxxOm
thank you for the superuseful think!
большой спасиб!
Back to top
View user's profile Send private message
Hexagonal



Joined: 04 Sep 2009
Posts: 1

PostPosted: Fri Sep 04, 2009 10:55 am    Post subject: Reply with quote

wOxxOm, BIG thanks!

The script is rather complicated.
Is it possible to simply remap a key (Capslock) to (Alt+Shift)?

P.S. At first glance, this works:
Capslock::Send, {Alt down}{Shift down}{Shift up}{Alt up}
Back to top
View user's profile Send private message
AngelicCare



Joined: 25 Aug 2010
Posts: 18

PostPosted: Sat Jan 08, 2011 7:16 pm    Post subject: Reply with quote

Это Basic, very basic, - это:

Sleep, 3000
WinGet, WinID,, A
SendMessage,0x50,0, 67699721,, A ; Английский (американский).
SendMessage,0x50,0, 68748313,, A ; Русский.

И, соответственно, на 2 кнопки (hotkey] посадить. Если можно, поместите в начале и свою версию, как более Advanced, ладно?
Back to top
View user's profile Send private message
vipkod
Guest





PostPosted: Sun Feb 20, 2011 11:48 pm    Post subject: How Punto Switcher Reply with quote

How Punto Switcher

Code:
; Translates selected text RU<>EN, cycles input language
; How Punto Switcher
Pause::Translate() ; Hotkey - Pause button

Translate()
{
Send ^{Left}
Send +{End}

Eng=qwertyuiop[]asdfghjkl;'zxcvbnm,.QWERTYUIOP{}ASDFGHJKL:"ZXCVBNM<>
Rus=йцукенгшщзхъфывапролджэячсмитьбюЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ

Send ^{Ins} ; Copy selection to clipboard
ClipWait
r =
Loop, parse, clipboard
{
   SendMessage, 0x50,, 0x4090409,, A ; Eng
   p := InStr(Eng, A_LoopField, true)
   if p > 0
      r := r . SubStr(Rus, p, 1)
   else
   {
      SendMessage, 0x50,, 0x4190419,, A ; Rus
      p := InStr(Rus, A_LoopField, true)
      if p > 0
         r := r . SubStr(Eng, p, 1)
      else
         r := r . A_LoopField
   }
}
PostMessage, 0x50, 2, 0,, A ; Switch lang to next
SendInput {Del}%r% ; Delete selection, print translated text
}


Популярная функция Punto Switcher заменитель ee. Smile
Back to top
vipkod
Guest





PostPosted: Mon Feb 21, 2011 10:03 am    Post subject: Re: How Punto Switcher Reply with quote

better way

Code:
; How Punto Switcher
Pause::Translate() ; Hotkey - Pause button

Translate()
{
Send ^{Left}
Send +{End}
Send ^{sc02E} ; Copy selection to clipboard
Sleep 10

Eng=qwertyuiop[]asdfghjkl;'zxcvbnm,.QWERTYUIOP{}ASDFGHJKL:"ZXCVBNM<>
Rus=йцукенгшщзхъфывапролджэячсмитьбюЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ


ClipWait
r =
Loop, parse, clipboard
{
   SendMessage, 0x50,, 0x4090409,, A ; Eng
   p := InStr(Eng, A_LoopField, true)
   if p > 0
      r := r . SubStr(Rus, p, 1)
   else
   {
      SendMessage, 0x50,, 0x4190419,, A ; Rus
      p := InStr(Rus, A_LoopField, true)
      if p > 0
         r := r . SubStr(Eng, p, 1)
      else
         r := r . A_LoopField
   }
}
PostMessage, 0x50, 2, 0,, A ; Switch lang to next
SendInput {Del}%r% ; Delete selection, print translated text
}
Back to top
ominus



Joined: 06 Apr 2011
Posts: 5

PostPosted: Wed Apr 06, 2011 3:42 pm    Post subject: Reply with quote

hello.

i am trying to use wOxxOm's script to change between English and Greek and although it does change my keyboard layout,the traytip tooltip keeps showing that my layout/country is Greek/Greece regardless if i have changed to English/USA layout.

Do you know how i can fix the code so that the traytip shows the correct current keyboard layout?

my windows default language input is EN/US

thank you
Back to top
View user's profile Send private message
Ironhide



Joined: 06 Sep 2011
Posts: 2

PostPosted: Tue Sep 06, 2011 9:52 pm    Post subject: Reply with quote

The keyboard layout switcher in first message doesn't work in console window. Can you suggest me a method to switch between two layout in console window? Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group