Username: Password:

怎样在PB中转换中英文输入法数-数据库专栏,其他相关
来源:作者: 发布时间:2007-12-26 02:02:28


怎样在pb中转换中英文输入法数

函数声明:

function boolean immsimulatehotkey (ulong hwnd, ulong dwhotkeyid) library "imm32.dll"

function ulong getkeyboardlayout(ulong dwlayout) library "user32.dll"

function boolean immisime(ulong hklkeyboardlayout) library "imm32.dll"

脚本如下:

constant int ime_thotkey_ime_nonime_toggle=112

ulong hklcurrent

ulong hnd

 

//转换到英文输入法

hklcurrent=getkeyboardlayout(0)

if immisime(hklcurrent) then

hnd=handle(parent)

immsimulatehotkey(hnd,ime_thotkey_ime_nonime_toggle)

end if

 

//转换到中文输入法

hklcurrent=getkeyboardlayout(0)

if not immisime(hklcurrent) then

hnd=handle(parent)

immsimulatehotkey(hnd,ime_thotkey_ime_nonime_toggle)

end if




喜欢本文,那就收藏到:

    Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网
相关评论  我也要评论
还没有关于此文章的相关评论!
  • 昵称: (为空则显示guest)
  • 评论分数: ★ ★ ★★★ ★★★★ ★★★★★
  • 评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
  • 导航
    赞助商
    文章类别
    订阅