MENU "Global Commands" {
STATE "Global Commands" GLOBAL {
COMMAND "<NatSpeakMenu>" {
SCRIPT {
If mid$(_arg1, instr(_arg1, "\")) = "Save Speech Files" OR mid$(_arg1, instr(_arg1, "\")) = "Save User" Then
MsgBoxConfirm "Do you want to save your speech files?", 292, "Hey You!"
GoToSleep
END IF
IF mid$(_arg1, instr(_arg1, "\")) = "Exit Dragon NaturallySpeaking" THEN MsgBoxConfirm "Do you want to shut down NaturallySpeaking?", 292, "Warning!"
menu$ = mid$(_arg1, 0, instr(_arg1, "\") - 1)
SendSystemKeys "{NumKey*}"
SendKeys menu$
}
}
LIST "NatSpeakMenu" {
"e\\Exit Dragon NaturallySpeaking"
"wi\\Add Individual Words"
"wd\\Add Words from Documents"
"wt\\Train Words"
"ws\\Dictation Shortcuts"
"wu\\Numbers Mode"
"am\\Manage Users"
"an\\Open Recent User"
"ak\\Backup User Files"
"au\\Restore User Files"
"ai\\Train User Files"
"av\\Manage Vocabularies"
"aa\\Open Recently Vocabularies"
"ae\\Edit Vocabulary"
"ab\\Build Vocabulary"
"ac\\Check Audio"
"at\\Transcribe Recording"
"ar\\View Recognition History"
"ao\\Change Options"
"a\\NatSpeak Menu Advanced"
"cr\\Create Custom Commands"
"ce\\Edit Custom Commands"
"ci\\Import Custom Commands"
"cd\\Delete Custom Commands"
"af\\Save Speech Files"
"af\\Save User"
}
}
}