AutoHotkey Community

It is currently May 27th, 2012, 5:28 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: May 14th, 2009, 9:13 am 
Offline

Joined: May 13th, 2009, 3:03 pm
Posts: 1
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


Report this post
Top
 Profile  
Reply with quote  
PostPosted: August 25th, 2009, 1:08 pm 
Offline

Joined: August 25th, 2009, 1:05 pm
Posts: 2
Location: Moscow
wOxxOm
thank you for the superuseful think!
большой спасиб!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2009, 11:55 am 
Offline

Joined: September 4th, 2009, 11:51 am
Posts: 1
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}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2011, 8:16 pm 
Offline

Joined: August 25th, 2010, 1:27 am
Posts: 18
Это Basic, very basic, - это:

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

И, соответственно, на 2 кнопки (hotkey] посадить. Если можно, поместите в начале и свою версию, как более Advanced, ладно?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: How Punto Switcher
PostPosted: February 21st, 2011, 12:48 am 
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. :)


Report this post
Top
  
Reply with quote  
 Post subject: Re: How Punto Switcher
PostPosted: February 21st, 2011, 11:03 am 
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
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 6th, 2011, 4:42 pm 
Offline

Joined: April 6th, 2011, 4:28 pm
Posts: 8
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 6th, 2011, 10:52 pm 
Offline

Joined: September 6th, 2011, 5:31 pm
Posts: 2
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.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 22nd, 2012, 1:47 am 
Code:
ConvertClip()
{
    static char1 := "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm"
        , char0 := "ЙЦУКЕНГШЩЗФЫВАПРОЛДЯЧСМИТЬйцукенгшщзфывапролдячсмить"
        , symb1 := "``~@#$^&{}:""|<>?[];',./"
        , symb0 := "ёЁ""№;:?ХЪЖЭ/БЮ.хъжэбю,"

    Loop, parse, Clipboard
    {
        If found := InStr(char1, A_LoopField, 1)
            temp .= SubStr(char0, found, 1), lastFound := 1

        Else If found := InStr(char0, A_LoopField, 1)
            temp .= SubStr(char1, found, 1), lastFound := 0

        Else If found := InStr(symb%lastFound%, A_LoopField, 1)
            lastFound_invert := !lastFound, temp .= SubStr(symb%lastFound_invert%, found, 1)

        Else temp .= A_LoopField
    }

    return !!temp && Clipboard := temp
}


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Google Feedfetcher, sks, Stigg and 13 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group