Results 1 to 3 of 3

Thread: Executing Short Cuts!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    68

    Wink

    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-*

  2. #2
    Junior Member
    Join Date
    Jul 2000
    Location
    Posts
    28

    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?

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    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
  •  



Click Here to Expand Forum to Full Width