Results 1 to 10 of 10

Thread: Is it possible

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    3

    Is it possible

    I'm not sure if this is the proper area to ask this question, but since the program that I want to write is like a cheat program I thought this would a good place to start.

    I was just curious if it is possible to write a program (called Program A) that runs parallel with another program (called Program B) that will:

    1. Grab information from a database of some form prob. Access
    2. Input the data into certain fields in Program B
    3. Simulate keystrokes that cause Program B to use the information and start whatever process it was designed to do.
    4. Take the information presented, parse it and then input it into another database.
    5. Have Program A loop until EOF

    Also would it be possible for someone who only has experience with VBScript to write this program in Visual Basic.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    In theory yes its possible.
    But bear in mind, in theory anything's possible.

    Short answer though is no, not really
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Short question: Why do you want to? It sounds like you are asking how to do a little unauthorized tampering.

  4. #4
    Addicted Member
    Join Date
    Apr 2000
    Location
    England
    Posts
    246
    simulating key presses to a program is easy enough, and parsing infomation back from a WINDOWED program is easy aswell. if it is a game or uses graphics to display text, (VERY VERY hard)
    Some Days, i just get this feeling that i'm helping to write dozens of Viruses...

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    3

    Just wanting to make a manual process run automatically

    Not trying to do unauthorized programing. I'm just trying to make a manual process run automatically.

    Thanks for the replies.

  6. #6
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485
    Sounds like xml to me. DotNet might be an easier direction. What your talking about may be time consuming but doesn't sound hard if your up on your parsing skills. Just write the x,y's to the files and add checking to make sure the app is Maximized and you've got the correct resolution. Better yet send tab keys to navigate in the app before input or manipulation. If your talking graphics give different regions tab order. Good luck, post the code when it's done, sounds cool!

  7. #7
    Addicted Member
    Join Date
    Apr 2000
    Location
    England
    Posts
    246
    I wrote automation code for a living, for over a year (it gets very repetitive after a while).

    if your target application is win32 , then theres no problem.

    Standard controls such as text boxes, buttons, combos and lists are no trouble at all. Labels are close to impossible.

    32bit controls such as listview (explorer type thing), and treeview and tabs are harder, to get infomation back from these, you need to place your code in a DLL and hook it into your targets application process.


    SendMessage API covers most of what you need

    And try to avoid using sendkeys, its bad and can have un predictable results in random situations.
    Some Days, i just get this feeling that i'm helping to write dozens of Viruses...

  8. #8
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Nicres, probably asked you before, but what part of dublin you from ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  9. #9
    Addicted Member
    Join Date
    Apr 2000
    Location
    England
    Posts
    246
    I was in Sandyford, working in lepoard's town, i'm in wolverhampton atm, finishing off my degree.

    I would like to go back, but the job market has dropped out and grad wages (even with a years experiance) is too little in ireland.
    Some Days, i just get this feeling that i'm helping to write dozens of Viruses...

  10. #10
    Addicted Member Janus's Avatar
    Join Date
    Aug 2001
    Location
    California
    Posts
    221
    you'll wanna use AppActivate, GetWindowText, Sleep, SendKeys, and possibly mouse_event.
    "1 4m 4 1337 #4xz0r!'
    Janus

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