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
| สำคัญ | รหัส |
|---|---|
| แบ็คสเปซ | {BACKSPACE} หรือ {BS} |
| หยุดพัก | {หยุดพัก} |
| แคปล็อค | {แคปล็อค} |
| ชัดเจน | {ชัดเจน} |
| ลบ | {ลบ} หรือ {DEL} |
| ลูกศรลง | {ลง} |
| จบ | {จบ} |
| ENTER (แป้นพิมพ์ตัวเลข) | {เข้า} |
| เข้า | - |
| เอสซี | {ESCAPE} หรือ {ESC} |
| ช่วย | {ช่วย} |
| บ้าน | {บ้าน} |
| อิน | {แทรก} |
| ลูกศรซ้าย | {ซ้าย} |
| จำนวนล็อค | {NUMLOCK} |
| เลื่อนหน้าลง | {PGDN} |
| เลื่อนหน้าขึ้น | {PGUP} |
| กลับ | {กลับ} |
| ลูกศรขวา | {ขวา} |
| เลื่อนล็อค | {เลื่อนล็อค} |
| แท็บ | {แท็บ} |
| ลูกศรขึ้น | {ขึ้น} |
| 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