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

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

Reading seperate lines of a txt, silent typing, selecting textboxes in a browser...
  1. Unread #1 - Apr 15, 2008 at 8:12 AM
  2. Blupig
    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

    Blupig BEEF TOILET
    $5 USD Donor

    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.
     
  3. Unread #2 - Apr 15, 2008 at 9:00 AM
  4. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    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.
     
  5. Unread #3 - Apr 15, 2008 at 10:58 AM
  6. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    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.
     
  7. Unread #4 - Apr 15, 2008 at 4:09 PM
  8. Blupig
    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

    Blupig BEEF TOILET
    $5 USD Donor

    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.
     
  9. Unread #5 - Apr 15, 2008 at 6:52 PM
  10. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    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. :)
     
  11. Unread #6 - Apr 15, 2008 at 7:02 PM
  12. jdsfighter
    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0

    jdsfighter Forum Addict
    Visual Basic Programmers

    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
     
  13. Unread #7 - Apr 16, 2008 at 4:26 PM
  14. Blupig
    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

    Blupig BEEF TOILET
    $5 USD Donor

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site