I know this may not be the right forum but have not been able to get much
info on the other forums.

Am trying to change the IME method when a control has focus and then set it
back to its original state.
Basically my problem is I have an sle control that accepts the scanned data
from a barcode scanner and when this data is scanned into this control the
IME setting must be direct input or lIME must be English
see example below in pseudo code.

SUBROUTINE keybd_event( int bVk, int bScan, int dwFlags, int dwExtraInfo)
LIBRARY "user32.dll"
//sle_1 getfocus event
call user defined event "IME"


change the input mode to direct input
simulate the Shift+Alt key press (Shift+Alt changes the IME to Eng)