Results 1 to 3 of 3

Thread: Anyone made something like this before?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    2

    Anyone made something like this before?

    I am looking to make for myself a similar, more simple, watered down version of a program that these fine gents have made:

    http://www.iopus.com/iim.htm

    Long story short, for starters I am seeking code samples to do the following 2 tasks:

    - programmatically move and click the mouse

    - programmatically type from the keyboard

    For example, if I wanted to set up a program that would log me into my Yahoo mail when the computer boots up, it would open a browser window, move to the username and password boxes, fill them in, then submit the form.

    I am having trouble finding anything concerning this, so if you've seen or done something like this, any help would be greatly appreciated.

    Best to all,
    Bjorn

  2. #2
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618
    Well, I haven't done it in dotnet, but you might look into SendKeys for simulating key strokes. As far as simulating the mouse, I would figure out how to do it via keystrokes. After all, in theory you can do just about everything in Windows without a mouse. Without trying, probably you'd have to launch the app from code, and then simulate <TAB> keystrokes to move between edit boxes on your app.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    2
    Ahhhhh

    It appears the keybd_event is the API I'm seeking. It figures... just a few more minutes of searching and that's all I needed.

    Now I just need to figure out what I'm going to use in order to read data off of Internet Explorer, something akin to a screen scrape I guess you could visualize it as.

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