Guest Matx Posted April 8, 2006 Report Posted April 8, 2006 (edited) Hi, I've _almost_ sorted out the ability to open email and then send/receive with one push of a button. It works with one push when email is open in the background, but with two (repeated) button pushes most other times. Here's what I did: Step 1: I set up a shortcut file to open up my Yahoo account email. Just substitute the Yahoo name with your account name. Create a text file with the following text inside: 37#"\Windows\tmail.exe" -service "Yahoo" Rename the file to Yahoo.lnk (or what ever name you want but with .lnk as the extension). As far as I know it is not possible to open tmail.exe with a switch to send/receive email. Would be great if there was. Anyhow, it is for this reason I use MortScript (free PPC macro scripter) to create a macro. Step 2: Create a .mscr (MortScript) file with the following contents: Run "/Windows/Start Menu/Programs/Yahoo.lnk" WaitFor "Yahoo", 50 Sleep 500 MouseClick "Yahoo", 230, 318 Sleep 500 MouseClick "Yahoo", 230, 210 Of course the 'Run' command points to where you've placed the tmail.exe .lnk file and the "Yahoo" title must be replaced by the name of your email account window. Note that the 50 in the WaitFor command is in seconds and the 500 in the Sleep command is milliseconds. Step 3: Now create a shortcut, similar to Step 1, to the MortScript .mscr file and place it in the Start Menu/Programs directory and then use Settings/Buttons to assign the shortcut to a button. Problem: I've found this method to work (i.e. one button push) when tmail.exe is open in the background or when a few other programs are open (weird). However, if no other app is running I have to press once to load my email and then after it is open it is press again to send/receive email. It seems the script stops before the WaitFor or MouseClick commands. I've tried a Sleep command instead of a WaitFor command (my email account takes about 8 seconds to load) but it still doesn't work. I've also messed around with the WaitFor and Sleep timings. Any ideas? Cheers, Matx Edited April 8, 2006 by Matx
Guest Webreaper Posted April 8, 2006 Report Posted April 8, 2006 On a related note, anyone know how to remove Hotmail from the list of email services?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now