Re: Dragonfly scripts for Windows
- From: John Doe <jdoe@xxxxxxxxxxxxxxxxxx>
- Date: 21 Dec 2009 10:49:28 GMT
Making some adjustments to my macro recorder, otherwise nothing very new.
#misc
"place windows":#after reboot, arrange desktop windows and adjust microphone volume
#on Windows startup
#Messages from Python Macros
Mouse("[201,12],left:down")+
Pause("25")+
Mouse("[187,925],left:up")+
Pause("25")+
#Date and Time Properties
Mouse("[1880,1188],left:2")+
Pause("100")+
#move it using the menu
Key("a-space")+
Pause("25")+
Key("m")+
Pause("25")+
Mouse("left:down")+
Pause("25")+
Mouse("[171,682],left:up")+
Pause("25")+
#Performance
Mouse("[155,461],left:down")+
Pause("25")+
Mouse("[139,461],left:up")+
Pause("25")+
#click on window
Mouse("[179,1090],left")+
Pause("20")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
#misc
#FocusWindow
"editing":#bring script editor to foreground
Key("win")+
Pause("20")+
FocusWindow(title="Komodo"),
"browser":#bring browser to foreground
Key("win")+
Pause("20")+
FocusWindow(title="Firefox"),
"programming":#bring IDE to foreground
Key("win")+
Pause("20")+
FocusWindow(title="keypad"),
"scribbling":#bring scratchpad to foreground
Key("win")+
Pause("20")+
FocusWindow(title="Notepad"),
#FocusWindow
#select
"all":#select all under pointer
Mouse("left")+
Pause("20")+
Key("c-a")+
Pause("20")+
Key("control:up"),
"from":#begin selection
Mouse("left:down")+
PlaySound(r"D:\files\wav\special effects\beep.wav"),
"grab":#select from point
Key("shift:down")+
Pause("20"),
"there":#select to point
Key("shift:down")+
Pause("20")+
Mouse("left")+
Key("shift:up")+
Pause("10"),
"line":#select line under pointer
Mouse("left")+
Pause("20")+
Key("end,s-home")+
Pause("20"),
"word":#select word under pointer
Mouse("left:2")+
Pause("20"),
#select
#direction
"down [<n>]":#down arrow key, with multiplier
Key("down:%(n)d")+
Key("shift:up"),
"east":#move to end of line
Key("end")+
Key("shift:up"),
"left [<n>]":#left arrow Key, with multiplier
Key("left:%(n)d")+
Key("shift:up"),
"north":#move to top of document
Key("c-home")+
Key("shift:up")+
Key("control:up"),
"right [<n>]":#right arrow key, with multiplier
Key("right:%(n)d")+
Key("shift:up"),
"south":#move to bottom of document
Key("c-end")+
Key("shift:up")+
Key("control:up"),
"up [<n>]":#up arrow key, with multiplier
Key("up:%(n)d")+
Key("shift:up"),
"west":#move to beginning of line
Key("home")+
Key("shift:up"),
#direction
#operates on preselected text
#requires mouse up, for "from" command
"define":#define selected word
#must have browser open
Mouse("left:up")+
Pause("15")+
Key("c-c")+
Pause("10")+
Key("win")+
Pause("10")+
FocusWindow(None,"Firefox")+
Pause("20")+
Key("a-d")+
Pause("10")+
Key("h,t,t,p,colon,slash,slash,w,w,w,dot,m,e,r,r,i,a,m,hyphen,w,e,b,s,t,e,r,dot,c,o,m,slash,d,i,c,t,i,o,n,a,r,y,slash")+
Pause("10")+
Key("c-v")+
Key("enter")+
Key("control:up"),
"finder":#finds selected text from here down
Mouse("left:up")+
Pause("15")+
Key("c-c")+
Key("c-f")+
Pause("20")+
Key("c-v")+
Key("enter")+
PlaySound(r"D:\files\wav\special effects\boop.wav")+
Key("control:up"),
"get":#copy selected text
Mouse("left:up")+
Pause("15")+
Key("c-c")+
PlaySound(r"D:\files\wav\special effects\boop.wav")+
Key("control:up"),
"high":#make first letter of each word uppercase
Mouse("left:up")+
Pause("15")+
Mimic("\\Cap","that")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"highest":#make all uppercase
Mouse("left:up")+
Pause("15")+
Mimic("\\All-Caps","that")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"low":#make lowercase
Mouse("left:up")+
Pause("15")+
Mimic("\\No-Caps","that")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"read":#use TTS to read selected text
Mouse("left:up")+
Pause("15")+
Key("c-f1")+
Pause("200")+
Mouse("left"),
"replace":#opens find/replace dialog with selected text
Mouse("left:up")+
Pause("15")+
Key("c-c")+
Key("c-h")+
Pause("20")+
Key("tab")+
Key("c-v")+
Key("control:up"),
"take":#cuts selected text
Mouse("left:up")+
Pause("15")+
Key("c-x")+
PlaySound(r"D:\files\wav\special effects\boop.wav")+
Key("control: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")+
PlaySound(r"D:\files\wav\special effects\boop.wav")+
Key("control:up"),
"translate [<n>]":#translate selected text, with pause
Mouse("left:up")+
Pause("15")+
Key("c-c")+
Pause("20")+
FocusWindow(None,"Babel Fish")+
Pause("40")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
(#timing
Pause("100")
)#timing
*Repeat(extra="n")+
Mouse("left:2")+
Pause("30")+
Key("c-a")+
Pause("20")+
Key("c-v")+
Pause("20")+
Key("tab:2")+
Pause("20")+
Key("enter")+
Key("control:up"),
#operates on preselected text
#visible key press
"comma":#press Key
Key("comma"),
"hyphen":#insert hyphen under pointer
Mouse("left")+
Pause("20")+
Key("hyphen"),
"hyphen 2":#remove space left of pointer, insert hyphen
Mouse("left")+
Pause("20")+
Key("backspace")+
Key("hyphen"),
"plus":#press Key
Key("plus"),
"mark":#press Key
Key("apostrophe"),
"sign":#press Key
Key("at"),
"slash":#press Key
Key("slash"),
#visible key press
#key repeated
#some require mouse up, for "from" command
"buck [<n>]":#key, with multiplier
Mouse("left:up")+
Pause("15")+
Key("backspace:%(n)d"),
"trash [<n>]":#delete key, with multiplier
Mouse("left:up")+
Pause("15")+
Key("delete:%(n)d"),
"go [<n>]":#enter key, with multiplier
Mouse("left:up")+
Pause("15")+
Key("enter:%(n)d"),
"next [<n>]":#find next search criteria instance, with multiplier
Key("f3:%(n)d"),
"space [<n>]":#key, with multiplier
Mouse("left:up")+
Pause("15")+
Key("space:%(n)d"),
"tab [<n>]":#key, with multiplier
Key("shift:up")+
Mouse("left:up")+
Pause("15")+
Key("tab:%(n)d"),
#key repeated
#key combination
"close it":#close current document
Key("a-f4"),
"put [<n>]":#paste, with multiplier
(
Key("c-v")+
(
Pause("10")
)
*Repeat(extra="t")
)
*Repeat(extra="n")+
Mouse("left:up")+
Key("control:up"),
"save":#save changes to document
Key("c-s")+
PlaySound(r"D:\files\wav\special effects\boop.wav")+
Key("control:up"),
"search":#bring up find/search dialog
Key("c-f/10")+
Pause("10")+
Key("control:up"),
"search it":#bring up find/search dialog and paste selected text
Key("c-f")+
Pause("30")+
Key("c-v")+
Key("control:up"),
"turnoff":
Key("s-f1")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
#key combination
#mouse shortcuts
#some letter-number combinations must be spelled out
"click [<n>][<t>]":#click n times at t interval
(
Mouse("left")+
(
Pause("25")
)
*Repeat(extra="t")
)
*Repeat(extra="n")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"C1":#timed click twice
Mouse("left")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("100")+
Mouse("left")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"C2":#timed click twice
Mouse("left")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("150")+
Mouse("left")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"C3":#timed click twice
Mouse("left")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("200")+
Mouse("left")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"C4":#timed click twice
Mouse("left")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("250")+
Mouse("left")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"G1":#timed click and drag
Mouse("left:down")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("100")+
Mouse("left:up")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"G2":#timed click and drag
Mouse("left:down")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("150")+
Mouse("left:up")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"G3":#timed click and drag
Mouse("left:down")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("200")+
Mouse("left:up")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"G4":#timed click and drag
Mouse("left:down")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("250")+
Mouse("left:up")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"place":#single click at pointer location
Mouse("left")+
Pause("20"),
#mouse shortcuts
#other
"angled":
Key("rangle")+
Mouse("left")+
Pause("20")+
Key("langle"),
"bracketed":#put brackets around text left of cursor, from cursor to pointer
Key("rbracket")+
Mouse("left")+
Pause("20")+
Key("lbracket"),
"closed":#put parenthesis around text left of cursor, from cursor to pointer
Key("rparen")+
Mouse("left")+
Pause("20")+
Key("lparen"),
"escape [<n>]":#press escape key, with multiplier
(#timing
Key("escape")+
Pause("20")
)#timing
*Repeat(extra="n"),
"getname":#get selected filename in Windows Explorer
Key("f2")+
Pause("20")+
Key("c-x")+
Key("escape")+
Key("control:up"),
"quoted":#quote text left of cursor, from cursor to pointer
Key("quote")+
Mouse("left")+
Pause("20")+
Key("quote"),
"recycle":#empty recycle bin
store_position+
Pause("10")+
Mouse("[59,37],right:1")+
Pause("10")+
Key("b")+
Key("y")+
move_to_position+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"switch [<n>]":#switch between Windows, with multiplier
Key("alt:down")+
(
Key("tab")
)
*Repeat(extra="n")+
Key("alt:up/40"),
"type <text>":#forces text entry
Text("%(text)s"),
"undo [<n>]":#undo last action, same as Windows shortcut key, with multiplier
Key("c-z:%(n)d")+
Key("control:up"),
#other
.
- References:
- Dragonfly scripts for Windows
- From: John Doe
- Dragonfly scripts for Windows
- Prev by Date: Dragonfly scripts for Windows
- Next by Date: Dragonfly scripts for Forged Alliance
- Previous by thread: Dragonfly scripts for Windows
- Next by thread: Dragonfly scripts for Forged Alliance
- Index(es):
Relevant Pages
|