[pmmail-list] Forcing PMMail/2 to fetch mail

Steve Marvin pmmail-list@blueprintsoftwareworks.com
Mon, 12 Mar 2001 21:34:24 -0500 (EST)


On Mon, 12 Mar 2001 03:05:05 +0000 (GMT), Paul Ratcliffe wrote:

>
>On Sun, 11 Mar 2001 17:25:29 -0500 (EST), Soren Ager wrote:
>
>>I would like to force PMMail/2 to fetch mail (just as if I had pressed
>>F2/Alt-F2) from a batch file (when it is already running). Is there 
>any
>>way to do that? A semaphore file I can create. A program that can talk 
>to
>>the running instance and make it fetch mail. Or maybe a 3rd party 
>program
>>that can send keystrokes to running program? Any other way? If not I
>>would like to suggest that for a future improvement.
>
>This is very easy to do. It would take me about 15 minutes to code and 
>test a utility to do this. What's it worth? :-))
>

About a US quarter,

  WinInitialize
  WinQuerySwitchList,
  find "PMMail/2 - " in the list (just check the first 11 chars the rest
  is the account name)
  WinPostMsg  WM_CHAR (F2 with or without KC_ALT flag)
  WinTerminate

  plus a little housekeeping

- pmmail-list - The PMMail Dicussion List ---------------------------
To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com with the first 
line of the message body being...
UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com