Showing posts with label VB6 SendKeys 基本應用 吳清輝老師 程式設計 影音教學 線上教學. Show all posts
Showing posts with label VB6 SendKeys 基本應用 吳清輝老師 程式設計 影音教學 線上教學. Show all posts

Saturday, June 13, 2009

VB6中SendKeys的基本應用

SendKeys
類比鍵盤操作,將一個或多個按鍵指令發送到指定Windows視窗來控制應用程式運行,
其使用格式為:object.SendKeys string
“object”:表示WshShell物件
“string”:表示要發送的按鍵指令字串,需要放在英文雙引號中。

1.基本鍵
  一般來說,要發送的按鍵指令都可以直接用該按鍵字元本身來表示,例如要發送字母“x”,使用“WshShell.SendKeys "x"”即可。
當然,也可直接發送多個按鍵指令,只需要將按鍵字元按順序排列在一起即可,例如,要發送按鍵“happy”,可以使用
“WshShell.SendKeys "happy"”。

更多.........

http://docs.google.com/View?id=dfh4b3dv_1366g8g5wgft






更多影音教學與討論,請上[溫馨論壇]

VB6中SendKeys的基本應用

SendKeys
類比鍵盤操作,將一個或多個按鍵指令發送到指定Windows視窗來控制應用程式運行,
其使用格式為:object.SendKeys string
“object”:表示WshShell物件
“string”:表示要發送的按鍵指令字串,需要放在英文雙引號中。

1.基本鍵
  一般來說,要發送的按鍵指令都可以直接用該按鍵字元本身來表示,例如要發送字母“x”,使用“WshShell.SendKeys "x"”即可。
當然,也可直接發送多個按鍵指令,只需要將按鍵字元按順序排列在一起即可,例如,要發送按鍵“happy”,可以使用
“WshShell.SendKeys "happy"”。

更多.........

http://docs.google.com/View?id=dfh4b3dv_1366g8g5wgft






更多影音教學與討論,請上[溫馨論壇]