Adblock breaks this site

Reading seperate lines of a txt, silent typing, selecting textboxes in a browser...

Discussion in 'Programming General' started by Blupig, Apr 15, 2008.

  1. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    Reading seperate lines of a txt, silent typing, selecting textboxes in a browser...

    My project is a total secret, but I need to know how to do it before I make it. I've never really done anything complex like this before, so I hope some of you will be able to help me a little.

    What I need:

    -Loading seperate lines from a txt (could be loading the txt to a listbox first, then reading each line from the listbox)
    -Each line must be typed out into a webbrowser, which will need to have the proper text box selected (I think I can get this if I tried doing it)
    -When the lines are typed out into the browser, I want the user to be able to do other things while the application is running, without the bother of the application doing the sloppy sendkeys shit

    Thanks for your help.
     
  2. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    Reading seperate lines of a txt, silent typing, selecting textboxes in a browser...

    Experiment with this, I think it should do fine for what you want even though you haven't really mentioned any specifics. http://sythe.org/showthread.php?t=394256

    You'll want to look into the VB6 API SendMessage, try Google for some tutorials/sources and work from there. Maybe other members have something made that they wouldn't mind sharing either.
     
  3. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    Reading seperate lines of a txt, silent typing, selecting textboxes in a browser...

    If he's using the WebBrowser control inside VB then he can use Document.[Object].Value
    No need for un-needed API calls.
     
  4. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    Reading seperate lines of a txt, silent typing, selecting textboxes in a browser...

    Mind explaining this a little more? I'll look into the API call anyways, I'll need to learn it eventually.
     
  5. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    Reading seperate lines of a txt, silent typing, selecting textboxes in a browser...

    I means are you planning on using the VB6 Webbrowser control or do you plan on having it type out to Internet Explorer, Firefox, or something.
    If you used the VB6 control you could just do it by modifying it's parameters rather than having it type anything out but using an external browser (this is what I assumed you meant) would require using some API notably SendMessage. Just let us know more about what you want to do. :)
     
  6. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    Reading seperate lines of a txt, silent typing, selecting textboxes in a browser...

    To read separate lines from a text file you can try

    Code:
    Dim FF as Integer
    Dim Lines()
    FF=FreeFile
    Open "C:\File.txt" for Input as #FF
         Lines=Split(Input(LOF(ff), 1),vbNewLine)
    Close #FF
     
  7. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    Reading seperate lines of a txt, silent typing, selecting textboxes in a browser...

    Yea, I'm using the internet explorer control. If you really want to know what I'm making, it's a password cracker for...A game (not Runescape)...
     
< [VB 2008] Calculator and count down timer sources | [Help] text1 + label1 >


 
 
Adblock breaks this site