slew77 / hle-ofx-quotes

Automatically exported from code.google.com/p/hle-ofx-quotes
0 stars 1 forks source link

Make it possible to run as scheduled task in background #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Investigate how to run as schedule task in background:

  . If MsMoney is running, don't do anything
  . Else run tool to update. Will have to be non-interactive: handle cases where dialog is prompting.

Nice to have:
  . update currency rate
  . deleting existing quote price for today so that new price will be accepted.

Original issue reported on code.google.com by hle...@gmail.com on 2 Jul 2011 at 2:13

GoogleCodeExporter commented 8 years ago
Sub tasks:
  . Create command-line version
  . Auto-click import dialog
  . Figure out if MsMoney is running
  . Update currency rate
  . Deleting today existing quote price

Original comment by hle...@gmail.com on 2 Jul 2011 at 2:15

GoogleCodeExporter commented 8 years ago
Schedule a task

http://windows.microsoft.com/en-US/windows7/schedule-a-task

Original comment by hle...@gmail.com on 2 Jul 2011 at 5:33

GoogleCodeExporter commented 8 years ago
From George (Thanks).

Hung…

regarding the Auto-click. Some updates that I’ve been running with in my own 
tool since after my original posting over on PocketSense blog.

FindWindow(TEXT(“MSMoney Frame”), NULL) – Is Money actually running?

FindWindow(L”#32770″, “Microsoft Money”) – dialog that appears when 
Money is not running during import.
Respond with:
wParam = 7; // BN_CLICKED
lParam = 90552L; // IDNO
PostMessage(hwndMoneyDlg, WM_COMMAND, wParam, lParam)

I look for these if the test for Money running says it is not.

And…
FindWindow(L”#32770″, “Import a file”) – the original dialog for 
import.

Thanks for integrating this & helping people automate this. I’ve had pretty 
good luck automating PocketSense as a scheduled task everyday with autoclicking 
enabled (albeit, using my C++ version).

Original comment by hle...@gmail.com on 2 Jul 2011 at 5:39