|
-
Sep 25th, 2000, 08:41 AM
#1
Thread Starter
Lively Member
Hi there all,
At work we develop in a basic software suite, and every program in the suite requires you wo log in. As you can imagine this is very annoying after 8 months of use, and damn right 'I Aint finished with you by a Damn Sight HILL BILLY BOY' madening after a year...
Or so Im told... I need to right an application to start the app's and fill in user details. The problem being that the applications must be run via shortcuts and not directly from the exe's. (due to the start in directory etc)
I believe there is some kind of API function to start up shortcuts?? Anybody know which API function?? and some sample code>>> : )
Also, while Im on the subject, I think there is also an API to create shortcuts.. Any Ideas???
THE DOUGSTER!!!!!!
*-MCSD-*
-
Sep 25th, 2000, 09:49 AM
#2
Junior Member
Hmmmm......
Have you considered simply shelling the shortcut to start it, and then using the sendkeys/sendmsg api's to type in the required info from another app?
-
Sep 25th, 2000, 09:58 AM
#3
Fanatic Member
I think you can use the ShellExecute API to execute a shortcut. And when the program is started, then you can use FindWindow to get the handles of the textboxes. Then you can use SetWindowText to fill in the boxes. And finally, use mouse_event to click the ok button. To get information on how the api's work, go to www.vbapi.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|