First off, i am just a sales guy and not a code guy, so even this code below took months of caveman configuring....and it still is not reliable.
summary of job: sales job to individuals.
restrictions: company says"no mass emails or blasting, but sending one at a time is fine."
the challenge:15000 customer records with email addresses inside a customer vb application and i want to let them know of our special quickly.
i built this script and it works...sometimes...grrrrrr! It just takes too damn long or it just doesnt send the email and I have over 50 new emails in my sys tray when I check it. Yeah..I know. I am over my head, but least I am tryin!
the vb application, we sales force use, has a "send email" button i activate with an LClick
the problem is the total script takes about 28 seconds to complete.
28 seconds * 15000=GOOD GOSH!
Is there a smarter way to write this code?
Is there a quicker way to send these emails?
Would it be better to Ctrl C the email addresss and then send emails thru a diiferent macro involving Outlook?
okay here it is...I welcome your input!
Code: Select all
(THIS IS THE NUMBER OF LOOPS)
Let>NumTimesToLoop=400
Let>Counter=0
Label>StartOfLoop
//Recorded Events
Let>WW_TIMEOUT=5
Let>WW_TIMEOUT=5
CapsOff
MouseMove>38,406
Let>RP_WAIT=1
Wait>1
LDblClick
Let>RP_WAIT=1
MouseMove>50,405
Let>RP_WAIT=1
Wait>1
Press ALT
Let>RP_WAIT=1
Send>w
Let>RP_WAIT=1
Press Down
Let>RP_WAIT=1
Press Up
Let>RP_WAIT=1
Press Enter
wait>1.2
Let>RP_WAIT=1
MouseMove>201,325
Let>RP_WAIT=1
wait>1.2
LClick
Let>RP_WAIT=1
Send>ab
Let>RP_WAIT=1
Press Enter
MouseMove>447,325
Let>RP_WAIT=1
LClick
Let>RP_WAIT=1
wait>1.2
WaitWindowOpen>CUSTOM COMPANY APPLICATION- 3.3.36
MoveWindow>CUSTOM COMPANY APPLICATION- 3.3.36,-4,-4
ResizeWindow>CUSTOM COMPANY APPLICATION- 3.3.36,1032,742
Let>RP_WAIT=1
Let>RP_WAIT=2
Press ALT
WaitWindowOpen>Untitled Message
MoveWindow>Untitled Message,54,76
ResizeWindow>Untitled Message,906,564
WaitWindowOpen>TaskSwitchXP Pro 2.0
MoveWindow>TaskSwitchXP Pro 2.0,196,96
ResizeWindow>TaskSwitchXP Pro 2.0,632,392
Let>RP_WAIT=1
wait>1.2
Release ALT
Let>RP_WAIT=1
wait>2.2
Press ALT
Let>RP_WAIT=1
WaitWindowOpen>CUSTOM COMPANY APPLICATION- 3.3.36
MoveWindow>CUSTOM COMPANY APPLICATION- 3.3.36,-4,-4
ResizeWindow>CUSTOM COMPANY APPLICATION- 3.3.36,1032,742
WaitWindowOpen>TaskSwitchXP Pro 2.0
MoveWindow>TaskSwitchXP Pro 2.0,196,96
ResizeWindow>TaskSwitchXP Pro 2.0,632,392
Let>RP_WAIT=1
wait>1.2
Release ALT
Let>RP_WAIT=1
Press CTRL
Let>RP_WAIT=1
Press ALT
Let>RP_WAIT=1
Release ALT
Let>RP_WAIT=1
Release CTRL
Let>RP_WAIT=1
Release Shift
Let>RP_WAIT=1
PRESS TAB
Let>RP_WAIT=1
Let>RP_WAIT=1
Press ALT
Let>RP_WAIT=1
Let>RP_WAIT=1
Send>i
Let>RP_WAIT=2
Release ALT
Let>RP_WAIT=1
Press Down
Let>RP_WAIT=1
Press Right
Let>RP_WAIT=1
Press Down * 6
Let>RP_WAIT=1
Press Right
Let>RP_WAIT=1
Press Down * 1
Let>RP_WAIT=1
Press Enter
Let>RP_WAIT=1
wait>1.2
Let>RP_WAIT=1
Let>RP_WAIT=1
press shift
Let>RP_WAIT=1
press tab
Let>RP_WAIT=1
release shift
Let>RP_WAIT=1
Send>Your 2006 Special!
Let>RP_WAIT=1
Press Tab
Let>RP_WAIT=1
Let>RP_WAIT=1
Press ALT
Let>RP_WAIT=1
Send>s
Let>RP_WAIT=1
Release ALT
WaitWindowOpen>Untitled Message
MoveWindow>Untitled Message,54,76
ResizeWindow>Untitled Message,906,564
Let>RP_WAIT=1
MouseMove>222,469
Let>RP_WAIT=1
LClick
Let>RP_WAIT=1
(this is the disposition)
Send>cnnnn
Let>RP_WAIT=1
Press Enter
Let>RP_WAIT=1
Press Tab
Let>RP_WAIT=1
(this the priority)
Send>1
Let>RP_WAIT=1
Let>RP_WAIT=1
MouseMove>451,510
Let>RP_WAIT=1
LClick
Let>RP_WAIT=1
Let>RP_WAIT=1
Let>RP_WAIT=1
MouseMove>460,481
Let>RP_WAIT=1
LClick
Let>RP_WAIT=1
Let>RP_WAIT=1
MouseMove>912,62
Wait>1
Let>RP_WAIT=1
LClick
Let>RP_WAIT=1
Let>RP_WAIT=1
MouseMove>870,64
Let>RP_WAIT=1
LClick
Let>RP_WAIT=1
Let>RP_WAIT=1
MouseMove>777,76
Let>RP_WAIT=1
Let>RP_WAIT=1
Press ALT
Let>RP_WAIT=1
Send>w
Let>RP_WAIT=1
Press Down
Let>RP_WAIT=1
Press Up
Let>RP_WAIT=1
Press Enter
Let>RP_WAIT=1
Let>RP_WAIT=1
MouseMove>442,274
Let>RP_WAIT=1
Let>RP_WAIT=1
LClick
Wait>0.87
MouseMove>41,405
Let>RP_WAIT=1
Wait>1.0
LClick
Let>RP_WAIT=1
MouseMove>64,387
Let>RP_WAIT=1
Add>Counter,1
If>Counter=NumTimesToLoop,FinishLoop
Goto>StartOfLoop
Label>FinishLoop
Thanks guys!
C
[/code]