Good but autoit for Windows is more powerful

444 views
Skip to first unread message

Ronie

unread,
Jul 4, 2012, 1:32:10 PM7/4/12
to autokey-users
I discovered autokey for Linux but I believe autoit for windows is
more powerful.
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.

Evan Edwards

unread,
Jul 4, 2012, 1:45:18 PM7/4/12
to autoke...@googlegroups.com
On Wed, Jul 4, 2012 at 12:32 PM, Ronie <roni...@gmail.com> wrote:
> As far as I studied autokey still lacks of capabilities.

You can script it in Python, which is a full programming language,
capable of writing entire applications, websites and other major
server and client software. In fact, many major pieces of software
and web services are written in Python:

http://en.wikipedia.org/wiki/List_of_Python_software

Also see:

http://en.wikipedia.org/wiki/Python_(programming_language)

That's not to say that AutoIt might not have some great features
and be better in some ways, but in terms of scripting capabilities and
how powerful and supported the scripting language is, Python is one of
the top tier languages in the world currently. If you're interested
in scripting, I highly recommend learning it (regardless as to if you
use Autokey).

--
Evan Edwards
ev...@cheshirehall.net
814.889.8845

jos...@main.nc.us

unread,
Jul 4, 2012, 2:05:18 PM7/4/12
to autoke...@googlegroups.com
Just to belabor the obvious:

Autoit is for Windows. If you like it so much, see if it will install
under wine - although tools like that may be too Windows dependent to be
fully useful on Linux. At the moment there is no AutoKey version for
Windows, so it doesn't compete with Autoit, AutoHotKey, etc. Same goes
for Automator (on the Mac).

If you have ideas on what AutoKey could do better, then instead of generic
criticism, you can discuss possible new features here, submit bug and
feature requests, and even help develop the code. Don't be a troll.

At the moment, AFAIK, we have this wonderful tool because of the efforts
of one person, Chris, the unpaid developer.

If you know or are willing to learn python, then you can write AutoKey
scripts which can do most of the things you can do in python - which is
almost anything your system is capable of.

Having just had a bunch of overdue books, I could use a library script!

Joe

Ronie

unread,
Jul 4, 2012, 7:47:18 PM7/4/12
to autoke...@googlegroups.com, jos...@main.nc.us
Ok,

Not intending to be critic or a troll, maybe that's because my poor untrained english.
I was just speculating about it to see the comunity feedback.

Python, heard of but didn't know what it is used for. So I can script to automate things in Linux using python?
Surely I will look at it.

Thanks for the replys !

Att,
Ronie PP

Kevin

unread,
Jul 6, 2012, 12:45:44 AM7/6/12
to autokey-users
Chris doesn't *have* to be unpaid. :) There's a PayPal "donate" link
at the bottom of the project's Google Code page: https://code.google.com/p/autokey/

P.S.: For renewing library books (assuming that you mean via the
library's web site, and not, say, telnet or a dial-up system),
Selenium might be an interesting project to look into:

http://seleniumhq.org/

I wanted an iCal representation of all the due dates of my checked-out
library books, and Selenium was the tool I decided to use to
automatically log into the library web site and scrape due dates.
Selenium provides a Python module which appears to be able to automate
a full-featured, JavaScript-supporting web browser (Chrome/Chromium)
"headlessly," meaning you can run the job in the background without
even having a browser open. The fact that Selenium can handle
JavaScript is essential if your library uses a SirsiDynix product,
which is so rife with buttons and links with "onclick" events that you
can hardly get around without JavaScript enabled.

I never actually finished that project, but that's more due to a lack
of skill and will power rather than limitations of Selenium. The task
of automating a login to the library web site and clicking a "renew"
button should be a lot easier to manage with Selenium, in any case.
The Selenium project's browser plugin even provides a GUI for
developing simple scripts interactively. You'd need to be willing to
spend some time with the Selenium docs and dig around in the HTML
source of your library's OPAC web site to identify which elements need
to be checked/clicked for renewals, but once you figured it out, you'd
have yourself a cross-platform solution that should work for any
browser the Selenium project provides a plugin for.

jos...@main.nc.us

unread,
Jul 6, 2012, 8:03:36 PM7/6/12
to autoke...@googlegroups.com
Wow. That's way more than I would attempt. I'll have t take a look at
it, but with a renew all button on the site, I think an unintelligent
solution will probably work for me.

Joe

VoiceNext

unread,
Jul 6, 2012, 11:37:39 PM7/6/12
to autokey-users
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
Reply all
Reply to author
Forward
0 new messages