Jump to content

Sending Alt Shift to Toggle Greek to English an vice versa


AthanBit
 Share

Recommended Posts

I am Using Windows 10 on 32 Operating System

On typing I use Alt + Shift so  to enable toggle typing in English and Greek

i find it impossible to achieve the same function using autoit3 using Send ("!+")

I would appreciate any help in solving this problem

Also I would appreciate any help in switching to Greek language using the CAPS Key

Thank you

 

 

Link to comment
Share on other sites

This works for me, toggling between Fra and Eng:

Send("{ALTDOWN}")
Send("{SHIFTDOWN}")
Send("{SHIFTUP}")
Send("{ALTUP}")

 

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

To use the Caps Lock key to toggle between input locales, use this:

#include <Misc.au3>

Local $hDLL = DllOpen("user32.dll")

While 1
    If _IsPressed(14, $hDLL) Then
        Send("{ALTDOWN}")
        Send("{SHIFTDOWN}")
        Send("{SHIFTUP}")
        Send("{ALTUP}")
        While _IsPressed(14, $hDLL)
            Sleep(50)
        WEnd
    EndIf
WEnd

Note that toggling requires two CapsLock keypresses.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Yes of course, choose the way you prefer. The idea is more about using ALTDOWN/ALTUP and SHIFTDOWN/SHIFTUP rather than !+

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

  • 2 weeks later...

I would recommend doing a DLL call to set the input language instead of automating the keystrokes.

#include <WinAPISys.au3>
Const $INPUTLANG_EN_US = 0x0409
Const $INPUTLANG_EL_GR = 0x0408
_WinAPI_SetKeyboardLayout(WinGetHandle("[active]"), $INPUTLANG_EL_GR)

 

Edited by spudw2k
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...