 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
monsoon
Joined: 13 May 2009 Posts: 1
|
Posted: Thu May 14, 2009 8:13 am Post subject: |
|
|
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 |
|
 |
arcma
Joined: 25 Aug 2009 Posts: 2 Location: Moscow
|
Posted: Tue Aug 25, 2009 12:08 pm Post subject: Re: Keyboard layout switcher |
|
|
wOxxOm
thank you for the superuseful think!
большой спасиб! |
|
| Back to top |
|
 |
Hexagonal
Joined: 04 Sep 2009 Posts: 1
|
Posted: Fri Sep 04, 2009 10:55 am Post subject: |
|
|
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 |
|
 |
AngelicCare
Joined: 25 Aug 2010 Posts: 18
|
Posted: Sat Jan 08, 2011 7:16 pm Post subject: |
|
|
Это Basic, very basic, - это:
Sleep, 3000
WinGet, WinID,, A
SendMessage,0x50,0, 67699721,, A ; Английский (американский).
SendMessage,0x50,0, 68748313,, A ; Русский.
И, соответственно, на 2 кнопки (hotkey] посадить. Если можно, поместите в начале и свою версию, как более Advanced, ладно? |
|
| Back to top |
|
 |
vipkod Guest
|
Posted: Sun Feb 20, 2011 11:48 pm Post subject: How Punto Switcher |
|
|
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.  |
|
| Back to top |
|
 |
vipkod Guest
|
Posted: Mon Feb 21, 2011 10:03 am Post subject: Re: How Punto Switcher |
|
|
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
|
Posted: Wed Apr 06, 2011 3:42 pm Post subject: |
|
|
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 |
|
 |
Ironhide
Joined: 06 Sep 2011 Posts: 2
|
Posted: Tue Sep 06, 2011 9:52 pm Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|