How to launch Wealth-Lab from Perl
Author: topbooks
Creation Date: 3/2/2019 8:46 PM
profile picture

topbooks

#1
I need use Perl script to start Wealth-lab pro with user name and password, since my StrategyMonitor has tasks for introday jobs.

I know how to start Wealth-lab using Perl, but do not know syntax for user name and password for the Weath-lab, if do not ask password, below code works:

QUOTE:
system("C:\\Program Files\\Fidelity Investments\\Wealth-Lab Pro 6\\WealthLabPro.exe");


But in my case, it asks enter password.

Please advise.

Thank you so much.

William
profile picture

Eugene

#2
There is no parameter for setting account and password in WLP from command line. Authentication is performed via a dialog form window. Your best bet is to ask some Perl community on how to deal with this kind of thing.

But does it really have to be Perl? In Windows you can consider using more straightforward alternatives like...

1. PowerShell (built-in): Use powershell to populate dialog box from another program
2. VBScript (built-in): Enter Data into Pop-Up Window

Both scripting languages use SendKeys imported from Win32 API. And the Oscar goes to...

3. AutoIT (3rd party software): ControlSend. This is 'the mother of all' automation scripts in Windows.
profile picture

topbooks

#3
Thank you Eugene!
I will try out.
William
profile picture

Eugene

#4
William, you're welcome. Also, Cone and yours truly as well as several Wealth-Lab community members use AutoIT for automation tasks. Just my $0.02.
profile picture

topbooks

#5
Thanks for the tips, I will download AutoIT.
William
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).