Results 1 to 4 of 4

Thread: something a little difficult, Please help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Guayaquil, Guayas, Ecuador
    Posts
    87
    i have one application that you need to input a login name, a password and click a button to login.
    And i want with an external application to execute that appl and input the user id, the password and make click to login to that application automaticaly.
    Thanks

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Guayaquil, Guayas, Ecuador
    Posts
    87

    FantastichenEin:

    Yes i know about that but i need to know exactli where to send the text because some times the user are writed because the app log the user id
    it must be with api i think

  3. #3
    New Member
    Join Date
    Apr 2000
    Posts
    9

    Talking

    Yeah..it does...I'm trying to do about the same thing(login in everything...seems like you're game scripting..=) ). Well, here's some stuff that can help. Assuming it's on a website, it will take your computer a while to load, but, here's what I'm doing:

    I opened Internet Explorer and set the preferences to Home page being the place with the login.
    In my VB program I wrote in shell like this:
    APPACTIVATE SHELL("c:\explorer.exe")
    This launches the explorer.exe file(not sure of my exact location at the moment). Anyway, it's loading. Now the problem is if you use sendkeys it will send them before the page is done loading. Big problem. And most loops on visual basic tend to lock up for me. =(. Anyway, it's loading, hopefull the cursor is already on the textbox for input. Now, you've got it loaded, and if your computer is fast just add
    SENDKEYS and your password here, but like this:
    "P" & "a" & "s" & "s" & "w" & "o" & "r" & "d"
    Iz kinda funny..I think help has a nice little annoying example for sendkeys(calculator pressing buttons on it's own). Experiment with this and tell me if you find anything with API, because I can't get it to go from VB to gaining focus on the page.
    [email protected]

  4. #4
    New Member
    Join Date
    Apr 2000
    Posts
    9

    Talking

    Yeah..it does...I'm trying to do about the same thing(login in everything...seems like you're game scripting..=) ). Well, here's some stuff that can help. Assuming it's on a website, it will take your computer a while to load, but, here's what I'm doing:

    I opened Internet Explorer and set the preferences to Home page being the place with the login.
    In my VB program I wrote in shell like this:
    APPACTIVATE SHELL("c:\explorer.exe")
    This launches the explorer.exe file(not sure of my exact location at the moment). Anyway, it's loading. Now the problem is if you use sendkeys it will send them before the page is done loading. Big problem. And most loops on visual basic tend to lock up for me. =(. Anyway, it's loading, hopefull the cursor is already on the textbox for input. Now, you've got it loaded, and if your computer is fast just add
    SENDKEYS and your password here, but like this:
    "P" & "a" & "s" & "s" & "w" & "o" & "r" & "d"
    Iz kinda funny..I think help has a nice little annoying example for sendkeys(calculator pressing buttons on it's own). Experiment with this and tell me if you find anything with API, because I can't get it to go from VB to gaining focus on the page.
    Oh, and for the Submit button, try "{TAB}" & "{ENTER}" it should tab the focus onto the button and select it.
    [email protected]

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