Re: Dragonfly/DNS global scripts
- From: John Doe <jdoe@xxxxxxxxxxxxxxxxxx>
- Date: 31 Jul 2009 20:39:39 GMT
My favorite recent script is a replacement for Click and Drag. The
set is labeled below in the following global group of scripts as
G1-G4. The script clicks and holds the mouse button down for a
corresponding (1, 2, 3, or 4 seconds) amount of time. A single
syllable would be best, but numbers cannot be used because they
are used for repetition and would be misinterpreted.
{#global scripts
#misc
"working [<n>]":
(
Mouse("[290,518],left")+
Pause("20")+
Mouse("[388,734],left")+
Pause("10")+
Key("c-c")+
Pause("10")+
Mouse("[760,15],left")+
Pause("20")+
Key("cs-left")+
Pause("10")+
Key("c-v,space")+
Pause("10")+
Key("ca-f3")+
Pause("40")
)*Repeat(extra="n"),
"testing":
Key("delete")+
Pause("10")+
Mouse("[286,517],left")+
Pause("20")+
Mouse("[390,738],left")+
Pause("10")+
Key("c-c")+
Pause("10")+
Mouse("[753,15],left")+
Pause("20")+
Mouse("[720,1075],left")+
Pause("20")+
Key("home,right,s-end")+
Pause("10")+
Key("c-v")+
Pause("10")+
Key("s-8")+
Pause("10")+
Key("enter"),
#FocusWindow
"editing":
Mouse("left:up")+
Key("win")+
Pause("20")+
FocusWindow(title="Komodo"),
"browser":
Mouse("left:up")+
Key("win")+
Pause("20")+
FocusWindow(title="Firefox"),
"programming":
Mouse("left:up")+
Key("win")+
Pause("20")+
FocusWindow(title="keypad"),
"scribbling":
Mouse("left:up")+
Key("win")+
Pause("20")+
FocusWindow(title="Notepad"),
#selection, selects text
"all":#select all under pointer
Mouse("left:up")+
Pause("10")+
Mouse("left")+
Pause("20")+
Key("c-a")+
Pause("20"),
"from":#begin selection
Mouse("left:up")+
Pause("10")+
Mouse("left:down")+
Pause("10")+
PlaySound(r"D:\files\wav\special effects\beep.wav"),
"grab":#select from point
Mouse("left:up")+
Pause("10")+
Key("shift:down")+
Pause("20"),
"there":#select to point
Mouse("left:up")+
Pause("10")+
Key("shift:down")+
Pause("20")+
Mouse("left")+
Key("shift:up")+
Pause("10"),
"line":#select line under pointer
Mouse("left:up")+
Pause("10")+
Mouse("left")+
Pause("20")+
Key("end,s-home")+
Pause("20"),
"word":#select word under pointer
Mouse("left:up")+
Pause("10")+
Mouse("left:2")+
Pause("20"),
#direction
"down [<n>]":
Mouse("left:up")+
Pause("10")+
Key("down:%(n)d")+
Key("shift:up"),
"east":
Mouse("left:up")+
Pause("10")+
Key("end")+
Key("shift:up"),
"left [<n>]":
Mouse("left:up")+
Pause("10")+
Key("left:%(n)d")+
Key("shift:up"),
"north":
Mouse("left:up")+
Key("c-home")+
Key("shift:up"),
"right [<n>]":
Mouse("left:up")+
Pause("10")+
Key("right:%(n)d")+
Key("shift:up"),
"south":
Mouse("left:up")+
Pause("10")+
Key("c-end")+
Key("shift:up"),
"up [<n>]":
Mouse("left:up")+
Pause("10")+
Key("up:%(n)d")+
Key("shift:up"),
"west":
Mouse("left:up")+
Pause("10")+
Key("home")+
Key("shift:up"),
#operates on preselected text
"big":
Mouse("left:up")+
Pause("10")+
Mimic("\\All-Caps","that")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"define":
#must have browser open
Mouse("left:up")+
Pause("10")+
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"),
"finder":#finds selected text from here down
Mouse("left:up")+
Pause("10")+
Key("c-c")+
Key("c-f")+
Pause("20")+
Key("c-v")+
Key("enter")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"get":
Mouse("left:up")+
Pause("10")+
Key("c-c")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"high":
Mouse("left:up")+
Pause("10")+
Mimic("\\Cap","that")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"low":
Mouse("left:up")+
Pause("10")+
Mimic("\\No-Caps","that")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"read":
Mouse("left:up")+
Pause("10")+
Key("f1")+
Pause("200")+
Mouse("left:up")+
Mouse("left"),
"take":
Mouse("left:up")+
Pause("10")+
Key("c-x")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"topper":#finds selected text from top of document
Mouse("left:up")+
Pause("10")+
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"),
#visible key press
"comma":
Mouse("left:up")+
Pause("10")+
Key("comma"),
"hyphen":#remove space first
Mouse("left:up")+
Pause("10")+
Mouse("left")+
Pause("20")+
Key("backspace")+
Key("hyphen"),
"plus":
Mouse("left:up")+
Pause("10")+
Key("plus"),
"mark":
Mouse("left:up")+
Pause("10")+
Key("apostrophe"),
"sign":
Mouse("left:up")+
Pause("10")+
Key("at"),
"slash":
Mouse("left:up")+
Pause("10")+
Key("slash"),
#key single
"escape":
Mouse("left:up")+
Pause("10")+
Key("escape"),
#key repeated
"back [<n>]":
Mouse("left:up")+
Pause("10")+
Key("backspace:%(n)d"),
"dell [<n>]":
Mouse("left:up")+
Pause("10")+
Key("delete:%(n)d"),
"go [<n>]":
Mouse("left:up")+
Pause("10")+
Key("enter:%(n)d")+
Pause("10"),
"next [<n>]":
Mouse("left:up")+
Pause("10")+
Key("f3:%(n)d"),
"space [<n>]":
Mouse("left:up")+
Pause("10")+
Key("space:%(n)d"),
"tab [<n>]":
Mouse("left:up")+
Pause("10")+
Key("tab:%(n)d"),
#key combination
"close it":
Mouse("left:up")+
Pause("10")+
Key("a-f4"),
"put [<n>]":
Mouse("left:up")+
Pause("10")+
(
Key("c-v")+
(
Pause("10")
)*Repeat(extra="t")
)*Repeat(extra="n"),
"save":
Mouse("left:up")+
Pause("10")+
Key("c-s")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"search":
Mouse("left:up")+
Pause("10")+
Key("c-f/10")+
Pause("10"),
"turnoff":
Mouse("left:up")+
Pause("10")+
Key("cs-f1")+
PlaySound(r"D:\files\wav\special effects\thewwoo1.wav"),
#mouse shortcuts
"click [<n>][<t>]":
Mouse("left:up")+
Pause("10")+
(
Mouse("left")+
(
Pause("10")
)*Repeat(extra="t")
)*Repeat(extra="n"),
"G1":#timed click and drag
Mouse("left:up")+
Pause("10")+
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:up")+
Pause("10")+
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"),
"G3":#timed click and drag
Mouse("left:up")+
Pause("10")+
Mouse("left:down")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("300")+
Mouse("left:up")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"G4":#timed click and drag
Mouse("left:up")+
Pause("10")+
Mouse("left:down")+
PlaySound(r"D:\files\wav\special effects\beep.wav")+
Pause("400")+
Mouse("left:up")+
PlaySound(r"D:\files\wav\special effects\boop.wav"),
"place":
Mouse("left:up")+
Pause("10")+
Mouse("left")+
Pause("20"),
#other
"closed":
Mouse("left:up")+
Pause("10")+
Key("rparen")+
Mouse("left")+
Pause("20")+
Key("lparen"),
"getname":
Mouse("left:up")+
Pause("10")+
Key("f2")+
Pause("20")+
Key("c-x")+
Key("escape"),
"quoted":
Mouse("left:up")+
Pause("10")+
Key("quote")+
Mouse("left")+
Pause("20")+
Key("quote"),
"recycle":
Mouse("left:up")+
Pause("10")+
Mouse("[59,37],right:1")+
Key("b")+
Key("y"),
"replace":
Mouse("left:up")+
Pause("10")+
Key("c-c")+
Key("c-h")+
Pause("20")+
Key("tab")+
Key("c-v"),
"switch [<n>]":
Mouse("left:up")+
Pause("10")+
Key("alt:down")+
(Key("tab"))*Repeat(extra="n")+
Key("alt:up/40"),
"type <text>":
Mouse("left:up")+
Pause("10")+
Text("%(text)s"),
"undo [<n>]":
Mouse("left:up")+
Pause("10")+
Key("c-z:%(n)d"),
},#global scripts
.
- Prev by Date: How to install Dragonfly for WSR
- Previous by thread: How to install Dragonfly for WSR
- Index(es):
Relevant Pages
|