Metspitzer said:
That would be a sweet idea. My fingers don't work very well.
Voice commands would rule.
I use about 95 global Windows voice-activated macros, and a
multitude of program specific scripts. The vocabulary is
constantly changing/evolving, for years. Using voice for playing
real-time strategy (RTS) too. Speech recognition for dictation is
difficult, but a relatively tiny vocabulary for command and
control of a PC or a game is much easier.
Unfortunately, just getting everything setup is rocket science.
And then you must speak clearly enough for a stupid computer to
understand what you say (that IMO is the only real deterrent for a
skilled PC user). The system works great here, though. The stuff
almost never confuses words I am trying to type with commands.
When I voice a short word or phrase for typing, I hold the control
key to force dictation. Most of my commands are single syllables,
and the system always correctly interprets them as a command if
control is not being held down. Usually commands can be strung
together, but every once in a while that fails in Windows for some
unknown reason I haven't taken the time to figure out. I think
continuous command recognition only fails in a text editor. In a
game like RTS, stringing commands together never fails.
Using the stuff is a simple matter of memorization by practice.
When you keep changing stuff around, you have to keep relearning
it, but you get used to that too.
These are my global Windows voice-activated macros. Some of them
allow for repetition.
#edit after click
"stack[<n>]":#click, backspace
Mouse("left/1")+
Key("backspace:%(n)d"),
"steak[<n>]":#click, paste
Mouse("left/1")+
(
Key("c-v/10")
)
*Repeat(extra="n"),
"stock":#click, copy
Mouse("left/1")+
Key("c-c/10"),
"stuck":#click, cut
Mouse("left/1")+
Key("c-x/10"),
#edit after click
#edit after double-click
"bop[<n>]":#double-click, backspace
Mouse("left:2/1")+
Key("backspace:%(n)d"),
"cop":#double-click, copy
Mouse("left:2/1")+
Key("c-c/10"),
"pop":#double-click, paste
Mouse("left:2/1")+
Key("c-v/10"),
"rop":#double-click, cut
Mouse("left:2/1")+
Key("c-x/10"),
#edit after double-click
#edit, line
"box":#select line and backspace
Mimic("line")+
Mimic("port"),
"cox":#select line and copy
Mimic("line")+
Mimic("get"),
"pox":#select line and paste
Mimic("line")+
Mimic("set"),
"rox":#select line and cut
Mimic("line")+
Mimic("set"),
#edit, line
#edit, miscellaneous
"and it":#change "and" to "end"
Mouse("left:2/10")+
Key("e,n,d/10")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"set[<n>]":#paste
(
Key("c-v/15")
)
*Repeat(extra="n")+
Mouse("left:up")+
Key("ctrl:up"),
#edit, miscellaneous
#edit, navigation, use with "grab" requires shift up
"down[<n>]":#down
Key("down:%(n)d/15")+
Key("shift:up"),
"east[<n>]":#move to end of line
Key("end:%(n)d/15")+
Key("shift:up"),
"left[<n>]":#left
Key("left:%(n)d/15")+
Key("shift:up"),
"north":#move to top of document
Key("c-home/15")+
Key("shift:up")+
Key("ctrl:up"),
"right[<n>]":#right
Key("right:%(n)d/15")+
Key("shift:up"),
"south":#move to bottom of document
Key("c-end/15")+
Key("shift:up")+
Key("ctrl:up"),
"up[<n>]":#up
Key("up:%(n)d/15")+
Key("shift:up"),
"west[<n>]":#move to beginning of line
Key("home:%(n)d/15")+
Key("shift:up"),
#edit, navigation, use with "grab" requires shift up
#edit selected text
"cut":#cut
Mouse("left:up/1")+
Key("c-x/10"),
"get":#copy
Mouse("left:up/1")+
Key("c-c/10")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav"),
#edit selected text
#FocusWindow
"script":#bring script editor to foreground
Mouse("left:up")+
Key("win")+
Pause("20")+
FocusWindow(None,"Komodo"),
"browse":#bring browser to foreground
Mouse("left:up")+
Key("win")+
Pause("20")+
FocusWindow(None,"Firefox"),
"program":#bring IDE to foreground
Mouse("left:up")+
Key("win")+
Pause("20")+
FocusWindow(None,"keypad"),
"scribe":#bring scratchpad to foreground
Mouse("left:up")+
Key("win")+
Pause("20")+
FocusWindow(None,"Notepad"),
#FocusWindow
#key
#some require mouse up for "G" command
"go[<n>]":#enter
Mouse("left:up/1")+
Key("enter:%(n)d"),
"next[<n>]":#F3
Key("f3:%(n)d"),
"port[<n>]":#backspace
Mouse("left:up/1")+
Key("backspace:%(n)d"),
"space[<n>]":#space
Mouse("left:up/1")+
Key("space:%(n)d"),
"tab[<n>]":#tab
Mouse("left:up/1")+
Key("tab:%(n)d"),
"trash[<n>]":#delete
Mouse("left:up/1")+
Key("delete:%(n)d"),
#key
#select
"all":#select all under pointer
Mouse("left/10")+
Pause("20")+
Key("c-a")+
Pause("20")+
Key("ctrl:up"),
"grab":#select from point
Mouse("left/1")+
Key("shift:down/1"),
"there":#select to point
Key("shift:down/1")+
Mouse("left/1")+
Key("shift:up/1"),
"line":#select line under pointer
Mouse("left/1")+
Key("end,s-home/1"),
#select
#operates on preselected text
#requires mouse up for "G" command
"define":#define selected word
#must have browser open
Mouse("left:up")+
Pause("15")+
Key("c-c/10")+
Key("win/10")+
FocusWindow(None,"Firefox")+
Pause("40")+
Key("a-d/20")+
Text(r"
http://www.merriam-webster.com/dictionary/")+
Pause("20")+
Key("c-v/10")+
Key("enter")+
Key("ctrl:up"),
"finder":#finds selected text from here down
Mouse("left:up")+
Key("c-c")+
Key("c-f")+
Pause("20")+
Key("c-v")+
Key("enter/10")+
Key("escape")+
Key("ctrl:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"high":#make first letter of each word uppercase
Mouse("left:up")+
Mimic("\\Cap","that")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"highest":#make all uppercase
Mouse("left:up")+
Mimic("\\All-Caps","that")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"low":#make lowercase
Mouse("left:up")+
Mimic("\\No-Caps","that")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"read":#use TTS to read selected text
Mouse("left:up")+
Key("c-f1")+
Pause("300")+
Mouse("left/10")+
Key("ctrl:up"),
"replace":#opens find/replace dialog with selected text
Mouse("left:up")+
Pause("15")+
Key("c-h")+
Pause("20")+
Key("tab")+
Pause("10")+
Key("ctrl:up"),
"replace it":#opens find/replace dialog with selected text
Mouse("left:up")+
Pause("15")+
Key("c-c")+
Key("c-h")+
Pause("20")+
Key("tab")+
Pause("10")+
Key("c-v")+
Pause("10")+
Key("cs-home")+
Key("ctrl:up")+
Key("shift:up"),
"topper":#finds selected text from top of document
Mouse("left:up")+
Pause("15")+
Key("c-c")+
Key("c-home")+
Pause("10")+
Key("c-f")+
Pause("20")+
Key("c-v")+
Key("enter")+
Key("escape")+
Key("ctrl:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
#operates on preselected text
#visible key press
"comma":#comma
Key("comma"),
"hyphen":#insert hyphen
Key("hyphen"),
"hyphens":#remove space, insert hyphen
Mouse("left/1")+
Key("left/1")+
Key("del/1")+
Key("hyphen"),
"plus":#plus sign
Key("plus"),
"quest":#question mark
Key("s-slash"),
"sign":#at sign
Key("at"),
#visible key press
#key shortcuts
"closet":#close current document/program
Key("a-f4"),
"save":#save changes to document
Key("c-s")+
Key("ctrl:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"search":#bring up find/search dialog
Key("c-f/10")+
Pause("10")+
Key("ctrl:up"),
"search it":#bring up find/search dialog and paste selected text
Key("c-f")+
Pause("30")+
Key("c-v")+
Key("ctrl:up"),
"off":#turn off microphone
Key("npdiv")+
PlaySound(r"C:\Program Files\VoiceWorks\boomz1.wav"),
#key shortcuts
#mouse shortcuts
"click[<n>][<t>]":#click n times at t interval
(
Mouse("left/10")+
(
Pause("100")
)
*Repeat(extra="t")
)
*Repeat(extra="n")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"once":#click
Mouse("left/5"),
"twice":#double-click
Mouse("left:2/5"),
"trip":#triple-click
Mouse("left:3/5"),
"quad":#triple-click
Mouse("left:4/5"),
"gee":#mouse button down
Mouse("left:down")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav"),
"ex":#mouse button up
Mouse("left:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"G1":#timed click and drag
Mouse("left:down")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("100")+
Mouse("left:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"G2":#timed click and drag
Mouse("left:down")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("200")+
Mouse("left:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"G3":#timed click and drag
Mouse("left:down")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("300")+
Mouse("left:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"G4":#timed click and drag
Mouse("left:down")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("400")+
Mouse("left:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"ten":#double-click, timed
Mouse("left/5")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("100")+
Mouse("left/5")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"twenty":#double-click, timed
Mouse("left/5")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("200")+
Mouse("left/5")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"thirty":#double-click, timed
Mouse("left/5")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("300")+
Mouse("left/5")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"forty":#double-click, timed
Mouse("left/5")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("400")+
Mouse("left/5")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
#mouse shortcuts
#miscellaneous
"angle":#put angle marks around text left of cursor, from cursor to pointer
Key("rangle")+
Mouse("left/10")+
Pause("20")+
Key("langle"),
"braces":#put braces around text left of cursor, from cursor to pointer
Key("rbrace")+
Mouse("left/10")+
Key("lbrace"),
"bracket":#put brackets around text left of cursor, from cursor to pointer
Key("rbracket")+
Mouse("left/10")+
Key("lbracket"),
"escape[<n>]":#press escape key
(#timing
Key("escape")+
Pause("20")
)#timing
*Repeat(extra="n"),
"fresh":#refresh, browser or file manager
Key("f5/10")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"parent":#put parenthesis around text left of cursor, from cursor to pointer
Key("rparen")+
Mouse("left/1")+
Key("lparen")+
Key("end")+
Key("space"),
"place windows":#after reboot, arrange desktop windows
#Messages from Python Macros
Mouse("[201,12]/5,left:down/25")+
Mouse("[188,921]/5,left:up/25")+
#Date and Time Properties
Mouse("[1880,1188]/5,left:2/5")+
WaitWindow(title="Date and Time Properties",timeout=4)+
FocusWindow(title="Date and Time Properties")+
Pause("100")+
#move it using the menu
Key("a-space/20")+
Key("m/20")+
Mouse("left:down/20")+
Mouse("[172,678]/20,left:up/5")+
#Performance
Mouse("[159,400]/20,left:down/20")+
Mouse("[143,398]/20,left:up/20")+
#click on the window
Mouse("[179,1090]/20,left/20")+
#switch to editor
FocusWindow(title="Komodo Edit")+
Pause("20")+
Mouse("[934,573]/20,left/5")+
Mimic("fold")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"quoted":#quote text left of cursor, from cursor to pointer
Key("quote")+
Mouse("left/10")+
Pause("20")+
Key("quote"),
"recycle":#empty recycle bin
Function(get_position)+
Pause("20")+
Mouse("[59,37]/20,right/20")+
Key("b/20")+
Key("y/20")+
Function(set_position)+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"switch[<n>]":#switch between Windows
Key("alt:down")+
(
Key("tab")
)
*Repeat(extra="n")+
Key("alt:up"),
"undo[<n>]":#undo last action, same as Windows shortcut key
Key("c-z:%(n)d")+
Key("ctrl:up"),
#miscellaneous
#programs
"four task":#Task Manager, for Starcraft 2
StartApp(r"C:\WINDOWS\system32\taskmgr.exe")+
WaitWindow(title="Windows Task Manager",timeout=4)+
FocusWindow(title="Windows Task Manager")+
Pause("20")+
Mouse("(109,68)/5,left/20")+#processes tab
Mouse("(204,104)/5,left/60")+#virtual memory size
Mouse("(204,104)/5,left/60")+#virtual memory size
Mouse("(111,120),right/20")+
Key("a/20")+#affinity
Key("down:3/40")+
Key("space/80")+#toggle CPU 3
Key("enter/10")+#exit dialog
Key("escape/10")+#exit task manager
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"higher":#Performance Monitor
Function(get_position)+
Mouse("[19,605]/10,right/20")+
Key("r/15")+
WaitWindow(title="System Monitor Properties",timeout=4)+
Pause("20")+
Key("tab/15:4")+
Key("down/40")+
Key("enter/10")+
Function(set_position)+
Mouse("left/15")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"lower":#Performance Monitor
Function(get_position)+
Mouse("[19,605]/10,right/10")+
Key("r/15")+
Mouse("right/25")+
Key("r/5")+
WaitWindow(title="System Monitor Properties",timeout=4)+
Pause("20")+
Key("tab/15:4")+
Key("up/40")+
Key("enter/100")+
Function(set_position)+
#Mouse("left/15")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"number":#Firefox, look up DNS
#must have browser open
Mouse("left:up/15")+
Key("c-c/10")+
Key("win/10")+
FocusWindow(None,"Mozilla Firefox")+
Pause("20")+
Key("c-t/40")+
Text(r"
http://www.ipchecking.com/")+
Key("enter/400")+
Key("c-v/10")+
Key("enter/5")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"one task":#Task Manager, for Starcraft 2
StartApp(r"C:\WINDOWS\system32\taskmgr.exe")+
WaitWindow(title="Windows Task Manager",timeout=4)+
FocusWindow(title="Windows Task Manager")+
Pause("20")+
Mouse("(109,68)/5,left/20")+#processes tab
Mouse("(204,104)/5,left/60")+#virtual memory size
Mouse("(204,104)/5,left/60")+#virtual memory size
Mouse("(111,120),right/20")+
Key("a/20")+#affinity
#Key("down:1/20")+
Key("space/80")+#toggle CPU 0
Key("enter/10")+#exit dialog
Key("escape/10")+#exit task manager
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"three task":#Task Manager, for Starcraft 2
StartApp(r"C:\WINDOWS\system32\taskmgr.exe")+
WaitWindow(title="Windows Task Manager",timeout=4)+
FocusWindow(title="Windows Task Manager")+
Pause("20")+
Mouse("(109,68)/5,left/20")+#processes tab
Mouse("(204,104)/5,left/60")+#virtual memory size
Mouse("(204,104)/5,left/60")+#virtual memory size
Mouse("(111,120),right/20")+
Key("a/20")+#affinity
Key("down:2/40")+
Key("space/80")+#toggle CPU 2
Key("enter/10")+#exit dialog
Key("escape/10")+#exit task manager
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"translate":#Firefox, translate selected text
Mouse("left:up")+
Pause("15")+
Key("c-c")+
Pause("20")+
FocusWindow(None,"Babel Fish")+
Mouse("[874,682]/5")+
Pause("20")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("150")+
Mouse("left:2")+
Pause("30")+
Key("c-a")+
Pause("20")+
Key("c-v")+
Pause("20")+
Key("tab:2")+
Pause("20")+
Key("enter")+
Key("ctrl:up"),
"two task":#Task Manager, for Starcraft 2
StartApp(r"C:\WINDOWS\system32\taskmgr.exe")+
WaitWindow(title="Windows Task Manager",timeout=4)+
FocusWindow(title="Windows Task Manager")+
Pause("20")+
Mouse("(109,68)/5,left/20")+#processes tab
Mouse("(204,104)/5,left/60")+#virtual memory size
Mouse("(204,104)/5,left/60")+#virtual memory size
Mouse("(111,120),right/20")+
Key("a/20")+#affinity
Key("down:1/40")+
Key("space/80")+#toggle CPU 1
Key("enter/10")+#exit dialog
Key("escape/10")+#exit task manager
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
#programs