Ronie <
roniep...@gmail.com> wrote:
> I discovered autokey for Linux but I believe autoit for windows
> is more powerful.
If you want real scripting power in Windows, try Dragon Naturally
Speaking combined with Dragonfly. Dragonfly is the part that's
like Autokey, it uses Python too. But Dragonfly doesn't get its
input activators from keystrokes, it's scripts are activated by
spoken words. Unfortunately, you must be an expert user or a
programmer just to install Dragonfly.
You also have to be a clear English speaker. Some people say that
you can train the computer to understand what you say, but that's
just not true. You have to train your voice. That is, unless you
don't want to do dictation and you just want to do command and
control of your computer. The vocabulary for controlling a
computer is tiny compared to a human vocabulary. That makes the
computer's job of understanding what you say much easier, compared
to your computer trying to transcribe your Internet conversation
with other people.
> I have wroten scripts that searches the web for movies I haven't
> seen and downloads it to me. I have scripts that would go to the
> library website and auto renew the books for me. As far as I
> studied autokey still lacks of capabilities.
Following is a list of my systemwide commands in Windows. The list
doesn't include the jillions more that are window/program specific.
By the way... I'm not trolling either. We use what we have. If I
hang around in Linux, I probably will use Autokey, since it
appears to be the most powerful macro utility for Linux.
Currently, I'm having fun configuring Linux. At some point, I plan
to use/play X-Plane 10 in there. Ubuntu Linux makes dual booting
very easy, and my new SSD (hopefully soon to arrive) should make
it even more fun.
I'm not a Python programmer. Some of this scripting might be the
Dragonfly author's format. But I know that some of it is Python,
like the line punctuation.
#edit after click
"stock":#click, copy
Mouse("left/10")+
Key("c-c/10"),
"steak[<n>]":#click, paste
(
Mouse("left/10")+
Key("c-v/10")+
Pause("130")
)
*Repeat(extra="n")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"stuck":#click, cut
Mouse("left/10")+
Key("c-x/10"),
#edit after click
#edit after double-click
"bop[<n>]":#double-click, backspace
Mouse("left:2/10")+
Key("backspace:%(n)d"),
"cop":#double-click, copy
Mouse("left:2/10")+
Key("c-c/10"),
"pop":#double-click, paste
Mouse("left:2/10")+
Key("c-v/10"),
"rop":#double-click, cut
Mouse("left:2/10")+
Key("c-x/10"),
#edit after double-click
#edit, line
"box[<n>]":#select line, backspace
Mouse("left/5")+
Key("end/5,s-home/5")+
Key("backspace:%(n)d"),
"cox":#select line, copy
Mouse("left/5")+
Key("end/5,s-home/5")+
Key("c-c/10"),
"pox":#select line, paste
Mouse("left/5")+
Key("end/5,s-home/5")+
Key("c-v/10"),
"rox":#select line, cut
Mouse("left/5")+
Key("end/5,s-home/5")+
Key("c-x/10"),
#edit, line
#edit, miscellaneous
"all":#select all under pointer
Mouse("left/20")+
Key("c-a/20"),
"angle":#put angle marks around text left of cursor, from cursor to
pointer
Key("rangle")+
Mouse("left/10")+
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"),
"grab":#select from point
Mouse("left/10")+
Key("shift:down/5"),
"parent":#put parenthesis around text left of cursor, from cursor to
pointer
Key("rparen")+
Mouse("left/10")+
Key("lparen")+
Key("end"),
"quoted":#quote text left of cursor, from cursor to pointer
Key("quote")+
Mouse("left/10")+
Key("quote")+
Key("end"),
"replace":#open find and replace
Mouse("left:up/1")+
Key("c-h/15")+
Key("tab"),
"search":#bring up find/search dialog
Key("c-f/15"),
"set[<n>]":#paste
Mouse("left:up/1")+
(
Key("c-v/10")
)
*Repeat(extra="n"),
"there":#select to point
Key("shift:down/5")+
Mouse("left/10")+
Key("shift:up/5"),
"undo[<n>]":#undo
Key("c-z:%(n)d/10"),
#edit, miscellaneous
#edit, navigation, shift-up is for "grab"
"bottom":#go to bottom of document
Key("c-end/10")+
Key("shift:up/5"),
"down[<n>]":#down
Key("down:%(n)d/10")+
Key("shift:up/5"),
"east":#select and copy right to end of line
Mouse("left/10")+
Key("shift:down")+
Key("end/10")+
Key("shift:up/5")+
Key("c-c"),
"eastern":#select and cut right to end of line
Mouse("left/10")+
Key("shift:down")+
Key("end/10")+
Key("shift:up/5")+
Key("c-x"),
"easting":#select and paste right to end of line
Mouse("left/10")+
Key("shift:down")+
Key("end/10")+
Key("shift:up/5")+
Key("c-v"),
#"left[<n>]":#left
# Key("left:%(n)d/10")+
# Key("shift:up/5"),
"north":#select and copy to top of document
Mouse("left/10")+
Key("shift:down")+
Key("c-home/10")+
Key("shift:up/5")+
Key("c-c"),
"northern":#select and cut to top of document
Mouse("left/10")+
Key("shift:down")+
Key("c-home/10")+
Key("shift:up/5")+
Key("c-x"),
"northing":#select and paste to top of document
Mouse("left/20")+
Key("shift:down")+
Key("c-home/10")+
Key("shift:up/5")+
Key("c-v"),
#"right[<n>]":#right
# Key("right:%(n)d/10")+
# Key("shift:up/5"),
"south":#select and copy to bottom of document
Mouse("left/10")+
Key("shift:down")+
Key("c-end/10")+
Key("shift:up/5")+
Key("c-c"),
"southern":#select and oncecut to bottom of document
Mouse("left/10")+
Key("shift:down")+
Key("c-end/10")+
Key("shift:up/5")+
Key("c-x"),
"southing":#select and paste to bottom of document
Mouse("left/10")+
Key("shift:down")+
Key("c-end/10")+
Key("shift:up/5")+
Key("c-v"),
"top":#go to top of document
Key("c-home/10")+
Key("shift:up/5"),
"up[<n>]":#up
Key("up:%(n)d/10")+
Key("shift:up/5"),
"west":#select and copy left to end of line
Mouse("left/10")+
Key("shift:down")+
Key("home/10")+
Key("shift:up/5")+
Key("c-c"),
"western":#select and cut left to beginning of line
Mouse("left/10")+
Key("shift:down")+
Key("home/10")+
Key("shift:up/5")+
Key("c-x"),
"westing":#select and paste left to beginning of line
Mouse("left/10")+
Key("shift:down")+
Key("home/10")+
Key("shift:up/5")+
Key("c-v"),
#edit, navigation, shift-up is for "grab"
#edit, selected text
#requires mouse up for "gee" command
"cut":#cut
Mouse("left:up/1")+
Key("c-x/10"),
"define":#define selected word
#must have browser open
Mouse("left:up/1")+
Key("c-c/10")+
Key("win/20")+
FocusWindow(None,"Firefox")+
Pause("60")+
Key("a-d/30")+
Text(r"
http://www.merriam-webster.com/dictionary/")+
Pause("40")+
Key("c-v/10")+
Key("enter"),
"finder":#finds selected text from here down
Mouse("left:up/1")+
Key("c-c/10")+
Key("c-f/15")+
Key("c-v/10")+
Key("enter/10")+
Key("escape")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"get":#copy
Mouse("left:up/1")+
Key("c-c/10")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"high":#make first letter of each word uppercase
Mouse("left:up/1")+
Mimic("\\Cap","that")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"highest":#make all uppercase
Mouse("left:up/1")+
Mimic("\\All-Caps","that")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"low":#make lowercase
Mouse("left:up/1")+
Mimic("\\No-Caps","that")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"read":#use TTS to read selected text
Mouse("left:up/1")+
Key("c-f1/300")+
Mouse("left"),
"replace it":#copy, for find and replace
Mouse("left:up/1")+
Key("c-c/10")+
Key("c-h/15")+
Key("tab/5")+
Key("c-v/10")+
Key("cs-home"),
"search it":#open search dialog with selected text
Key("c-f/25")+
Key("c-v"),
"topper":#finds selected text from top of document
Mouse("left:up/1")+
Key("c-c/10")+
Key("c-home/15")+
Key("c-f/15")+
Key("c-v/10")+
Key("enter/10")+
Key("escape")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
#edit, selected text
#FocusWindow
"browse":#bring browser to foreground
Mouse("left:up/1")+
Key("win/20")+
FocusWindow(None,"Firefox"),
"edit":#bring script editor to foreground
Mouse("left:up/1")+
Key("win/20")+
FocusWindow(None,"Komodo"),
"game":#return to AoE
Key("win/20")+
FocusWindow(None,"Spartan")+
Pause("100")+
Mouse("[963,488]/15,left/1")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"program":#bring IDE to foreground
Mouse("left:up/1")+
Key("win/20")+
FocusWindow(None,"keypad"),
"scribe":#bring scratchpad to foreground
Mouse("left:up/1")+
Key("win/20")+
FocusWindow(None,"Notepad"),
#FocusWindow
#mouse shortcuts
"click[<n>][<t>]":#click n times at t interval
Function(microphone_asleep)+
(
Mouse("left/10")+
(
Pause("200")
)
*Repeat(extra="t")
)
*Repeat(extra="n")+
Function(microphone_awake)+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"short[<n>]":#click quickly n times
(
Mouse("left/100")
)
*Repeat(extra="n")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"once":#click
Mouse("left:1/10"),
"twice":#double-click
Mouse("left:2/10"),
"thrice":#triple-click
Mouse("left:3/10"),
"quad":#quadruple-click
Mouse("left:4/10"),
"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"),
"long[<n>]":#click slowly n times
Function(microphone_asleep)+
(
Mouse("left/10")+
Pause("400")
)
*Repeat(extra="n")+
Function(microphone_awake)+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"left[<n>]":#timed left click and drag
Function(microphone_asleep)+
Mouse("left:down")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("100")+
(
Pause("100")
)
*Repeat(extra="n")+
Mouse("left:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav")+
Function(microphone_awake),
"right[<n>]":#timed right click and drag
Mouse("right:down")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("100")+
(
Pause("100")
)
*Repeat(extra="n")+
Mouse("right:up")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"ten":#double-click, timed
Mouse("left")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("100")+
Mouse("left/10")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"twenty":#double-click, timed
Mouse("left")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("200")+
Mouse("left/10")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"thirty":#double-click, timed
Mouse("left")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("300")+
Mouse("left/10")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"forty":#double-click, timed
Mouse("left")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("400")+
Mouse("left/10")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
#mouse shortcuts
#miscellaneous
"closet":#close current document/program
Key("a-f4"),
"escape[<n>]":#escape
(#timing
Key("escape")+
Pause("10")
)#timing
*Repeat(extra="n"),
"fresh":#refresh, browser or file manager
Key("f5")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"message":#replace Messages for Python Macros window
Function(get_position)+
Mouse("[163,15]/15,left:down/1")+
Mouse("[150,923]/15,left:up/1")+
Function(set_position)+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"off":#turn off microphone
Key("npdiv")+
PlaySound(r"C:\Program Files\VoiceWorks\boomz1.wav"),
"Windows":#after reboot, arrange desktop windows
Function(microphone_asleep)+
#Messages from Python Macros
Mouse("[201,12]/5,left:down/25")+
Mouse("[188,921]/5,left:up/25")+
#Performance
FocusWindow(title="Performance")+
Pause("20")+
Mouse("[158,395]/15,left:down/15")+
Mouse("[143,568]/15,left:up/15")+
##click on the window
#Mouse("[179,1090]/20,left/20")+
#switch to editor
#FocusWindow(title="Komodo Edit")+
#Pause("20")+
#Mouse("[934,573]/20,left/20")+
#Mimic("fold")+
Function(microphone_awake),
"recycle":#empty recycle bin
Function(get_position)+
Mouse("[59,37]/20,right/20")+
Key("b/20")+
Key("y/30")+
Key("a-tab")+
Function(set_position)+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"save":#save changes to document
Key("c-s")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"switch[<n>]":#switch between Windows
Key("alt:down/5")+
(
Key("tab/5")
)
*Repeat(extra="n")+
Key("alt:up"),
#miscellaneous
#press key, maybe click first
#some require mouse up for "gee" command
"go[<n>]":#enter
Mouse("left:up/1")+
Key("enter:%(n)d/5"),
"next[<n>]":#F3
Key("f3:%(n)d/5"),
"port[<n>]":#backspace
Mouse("left:up/1")+
Key("backspace:%(n)d"),
"space[<n>]":#click, space
(
Mouse("left/10")+
Key("space/120")
)
*Repeat(extra="n"),
"stack[<n>]":#click, backspace
Mouse("left/10")+
Key("backspace:%(n)d/10"),
"stacker":#click, backspace, space
Mouse("left/10")+
Key("backspace")+
Key("space"),
"tab[<n>]":#tab
Mouse("left:up/1")+
Key("tab:%(n)d/5"),
"trash[<n>]":#delete
Mouse("left:up/1")+
Key("delete:%(n)d/5"),
#press key, maybe click first
#press key, visible
"comma":#comma
Mouse("left:up/1")+
Key("comma"),
"hyphen":#insert hyphen
Mouse("left/10")+
Key("hyphen"),
"hyphens":#remove space, insert hyphen
Mouse("left/10")+
Key("left/1")+
Key("del/1")+
Key("hyphen")+
Key("end"),
"plus":#plus sign
Mouse("left:up/1")+
Key("plus"),
"quest":#question mark
Mouse("left:up/1")+
Key("s-slash"),
"sign":#at sign
Mouse("left:up/1")+
Key("at"),
#press key, visible
#programs
"shut down":#shutdown windows
Mimic("restart","Windows","immediately")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"four task":#Task Manager
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")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("200")+
Mouse("right/20")+#right-click on process
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"),
"high perf":#Performance Monitor
Function(get_position)+
Mouse("[10,673]/5,right/20")+
Key("r/15")+
WaitWindow(title="System Monitor Properties",timeout=4)+
Pause("20")+
Key("down:2/20")+#move down to the NIC
Key("a-s/20")+
#Key("tab/5:4/10")+
Key("down/40")+
Key("a-u/10")+#go back to adjust bytes sent
Key("down/10")+
Key("a-s/10")+
Key("down/40")+
Key("enter/10")+
Function(set_position)+
Mouse("left/15")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"look 1":
Mouse("right/40")+
Key("r")+
WaitWindow(title="Display Properties",timeout=4)+
FocusWindow(title="Display Properties")+
Pause("20")+
Mouse("(224,43)/5,left/20")+
Key("a-d/30")+
#Key("a-i/5")+
Key("end/5")+
Key("a-l/5")+
Key("space/20")+
Mouse("(13,14)/5,left/5")+
Key("a-r/5")+
Key("space/20")+
Mouse("(35,12)/5,left/20")+
Mouse("(250,392)/5,left/20")+
Key("a-a/5")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"look 2":
FocusWindow(title="Display Properties")+
Pause("20")+
Key("a-d/30")+
#Key("a-i/5")+
Key("end/5")+
Key("a-l/5")+
Key("space/20")+
Mouse("(36,13)/5,left/5")+
Key("a-r/5")+
Key("space/20")+
Mouse("(13,13)/5,left/5")+
Mouse("(250,392)/5,left/20")+
Key("a-a/80")+
Mouse("(197,428)/5,left/5")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"low perf":#Performance Monitor
Function(get_position)+
Mouse("[10,673]/5,right/20")+
Key("r/15")+
WaitWindow(title="System Monitor Properties",timeout=4)+
Pause("20")+
Key("down:2/20")+#move down to the NIC
Key("a-s/20")+
#Key("tab/5:4/10")+
Key("up/40")+
Key("a-u/10")+#go back to adjust bytes sent
Key("down/10")+
Key("a-s/10")+
Key("up/40")+
Key("enter/10")+
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/20")+
WaitWindow(title="Address Lookup",timeout=12)+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("300")+
Mouse("left/15")+
Key("c-v/20")+
Key("enter/5")+
PlaySound(r"C:\Program Files\VoiceWorks\boop.wav"),
"one task":#Task Manager
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")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("200")+
Mouse("right/20")+#right-click on process
Key("a/20")+#affinity
Key("space/80")+#toggle CPU 0
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"),
"three task":#Task Manager
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")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("200")+
Mouse("right/20")+#right-click on process
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"),
"speak":#Firefox, translate selected text
#must have browser open
Mouse("left:up/10")+
Key("c-c/20")+
FocusWindow(None,"Google Translate")+
Mouse("[400,600]/5")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("150")+
Mouse("left:2/20")+
Key("c-a/10")+
Key("c-v/10"),
#Key("tab:2/10")+
#Key("enter"),
"two task":#Task Manager
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")+
PlaySound(r"C:\Program Files\VoiceWorks\beep.wav")+
Pause("200")+
Mouse("right/20")+#right-click on process
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