AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Adding Email to Junk Sender List in Outlook 2003

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
silveredge78



Joined: 25 Jul 2006
Posts: 481
Location: Midwest, USA

PostPosted: Thu Sep 21, 2006 10:54 pm    Post subject: Adding Email to Junk Sender List in Outlook 2003 Reply with quote

I get a lot of spam in my inbox. So I created these two hotkeys to quickly add emails to my Junk Sender List, and thus move them to my Junk E-mail folder.

Ctrl+Alt+F1 moves a single email.

Ctrl+Alt+F2 asks how many you want to move, and then moves them all. Note, to use this, they need to be consecutively all junk. As in, selecting the first of 40 spam emails that are all together in your email folder.

I have also limited the hotkey to only work in the main window of Outlook 2003 so as to not conflict with other hotkeys in other applications.

Code:
#IfWinActive ahk_class rctrl_renwnd32  ; Outlook Main Window Only
^!F1::Send !ajb   ; Add to Outlook Junk Email list
^!F2::
  InputBox, Iterations, Block Sender, Enter the number of times to loop:
  If ErrorLevel <> 0
    Return
  Loop
  {
    SendInput, !ajb   ; Add to Outlook Junk Email list
    If A_Index = %Iterations%
      Break
  }
Return

#IfWinActive

If you have any comments, please let me know.
_________________
SilverEdge78
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group