vbs
1.0.0
import vbs
vbs . tts ( "words to speak" )
import vbs
vbs . alert ( "alert body" , boxtype = "yesno" , title = "title text" )
import vbs
vbs . sendkeys ( "keys to send" )
vbs.sendkeys:
acts as if all keys in string are pressed in order near instantly.
script contiunes once all keys are sent.
sending special keys such as backspace ({bs}) or enter (~) can be found by referencing
鑰匙 | 程式碼 |
---|---|
退格鍵 | {退格}或{BS} |
休息 | {休息} |
大寫鎖定 | {大寫鎖定} |
清除 | {清除} |
刪除 | {刪除}或{刪除} |
向下箭頭 | {向下} |
結尾 | {結尾} |
ENTER(數字鍵盤) | {進入} |
進入 | ~ |
ESC鍵 | {ESCAPE} 或 {ESC} |
幫助 | {幫助} |
家 | {家} |
慣性導航系統 | {插入} |
向左箭頭 | {左邊} |
數位鎖定 | {數字鍵} |
往下翻頁 | {PGDN} |
向上翻頁 | {PGUP} |
返回 | {返回} |
右箭頭 | {正確的} |
滾動鎖 | {滾動鎖定} |
TAB | {製表符} |
向上箭頭 | {向上} |
F1 至 F15 | {F1} 至 {F15} |
vbs.警報:
alert times out by default after 100 minutes.
this can be changed by passing a different value to the timeout optional argument.
which is passed as an integer number of secounds.
you can change the type of alert by a value to the optional argument boxtype.
possible values are
"okay", "cancel", "cancelable", "retry", "yesnocancel", "yesno", "warning", "critical", "info"
this function then returns one of the following strings:
"ok", "cancel", "abort", "retry", "ignore", "yes", "no"
you can change the title of the alert by passing a string to the option title argument
vbs.tts:
calling tts freezes execution path untill entire messege is spoken
then returns "done" as a string