AutoHotkey Community

It is currently May 27th, 2012, 7:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: September 21st, 2006, 11:54 pm 
Offline

Joined: July 25th, 2006, 7:37 pm
Posts: 490
Location: Midwest, USA
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: nothing, Yahoo [Bot] and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group