Thanks Thom, I found a way to launch a shortcut file, if anybody is interested. Have to put the path to the .lnk file in a batch, then just shell the batch from VB. It works, and no problems with BWS seeing the screen. Not the most robust method, but if it works, hey.
From: [email protected] [mailto:[email protected]] Sent: Monday, February 04, 2013 9:20 AM To: [email protected] Subject: RE:[talkbws] Mainframe-Powerterm connection Working with emulators in general, I have had good success using the Shell_ command to directly to a stored session file. I do not have Powerterm on my PC so I don't have an exact example, but the below shows one for IBM Personal Communicator. I suspect you could do a similar thing with Powerterm. Shell_ "C:\Users\thomb\Desktop\HIS.ws" To build this, in BWS I used: Connect -> Launch an Application -> Browse (changing to All files so the profile file shows up) Thom C. Blackwell VP, Technical Services Boston Software Systems, Inc. Phone: 866.653.5105 x807 Mobile: 508.423.8463 Fax: 508.319.3015 www.bostonsoftwaresystems.com<http://www.bostonsoftwaresystems.com/> Healthcare Automation - Revolutionizing How You Work. The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. From: [email protected]<mailto:[email protected]> [mailto:[email protected]] Sent: Monday, February 04, 2013 8:58 AM To: Talk Subject: [talkbws] Mainframe-Powerterm connection Has anybody had any luck launching a shortcut icon via VB6? I'm having issue launching a Powerterm session where if I launch it manually via the shortcut, it works, but if I try to launch the actual executable via script, it prompts me to enter credentials, server etc. I've also noticed, if, off a fresh boot, I try to launch the executable, not the shortcut, it prompts me to enter credentials, host and everything, then if I launch the shortcut, then close, the executable will launch manually like the shortcut every time, as if the connection is cached. However, it won't launch via script at this point. I've tried to create my own psl script, but when it launches, BWS won't read the screen, it displays it, but when you try to read any characters, you get a blank string. The display, even though I've set all the settings like the shortcut, has the fields 'sunk in' like a VB textbox. I either need to figure out why my script isn't working, or figure out a way to launch the shortcut. What I've found in searches, never launches anything, such as using Shell Start, Shell Launch, or Shell Open. 'A leader is best when people barely know the leader exists. When the leader's work is done, the leader's aim fulfilled, they will say, 'We did it ourselves''.<http://www.brainyquote.com/quotes/quotes/l/laotzu121709.html> -- Lao Tzu<http://www.brainyquote.com/quotes/authors/l/lao_tzu.html> Jimmy Walker Office: 865-647-2906 Fax: 865-545-3016 --- To post a message to this list, send mail to: [email protected]<mailto:[email protected]> You are currently subscribed as: [email protected]<mailto:[email protected]> Unsubscribe in the customer center on our website: http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx --- To post a message to this list, send mail to: [email protected]<mailto:[email protected]> You are currently subscribed as: [email protected]<mailto:[email protected]> Unsubscribe in the customer center on our website: http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx --- To post a message to this list, send mail to: [email protected] You are currently subscribed as: [email protected] Unsubscribe in the customer center on our website: http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
