application console interface

This is a discussion on application console interface within the Windows Programming forums, part of the Platform Specific Boards category; I am looking for ways to interact with a console application, more specifically, an online game. The first one, is ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    2

    application console interface

    I am looking for ways to interact with a console application, more specifically, an online game.

    The first one, is merely trivial, a way to enter mouse clicks on a certain location. As a form of RSi protection everyone uses mouse clickers sometimes only I'd like to code my own to practice windows programming a bit and prepare for the second more difficult task.

    That second task is to get the in game chat and log it. This functionality is NOT included for users and I think it is really a bad thing, sometimes it would be really nice to look back at the funnier exchanges. The chat comes in a specific window and it is colored letters on a black background. I could think of no better solution than storing that part of the screen as an image... on a keystroke... or just automatically. then it could be OCRed to real texts, or at least I hope it can

    What I would like to know is basically just how to do the interaction with windows consoles, where to find the functions that interface with low level things like mouse control and screen output. Unfortunately i have little experience at programming in a windows environment, just unix. Perhaps the best thing would be a link to source code that does something related to these tasks?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    It sounds like you want to cheat or similar. You won't get much help for that here.

    I have a Windows Console Programming Tutorial starting there which will introduce console programming, but if the "console" you are looking at is embedded in another application, it will almost certainly not be done in the same way.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Maybe if you use CreateProcess() to run that online game you will gain access over the console window?
    Just a thought...

  4. #4
    Registered User
    Join Date
    Nov 2005
    Posts
    2
    the mouseclicker is the only thing that can be considered 'cheating' but like I said, only purpose is training myself. Besides, these programs are not hard to find. The real killer is logging the chat window. Which is nothing more than a more elegant and doable way of pressing print screen a lot of times and saving the image. I am sure no one will object to that

    The question is mainly I/O related because mouse clicking (simulated output) and screen capture (automated input) must be available somehow in the windows operating system, only question is where and how to find and adress it.

  5. #5
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    look for winsocket programming for how to make chat programs across the internet or a LAN. Here are a whole set of console functions that can be used to access mouse and other windows events.

    http://msdn.microsoft.com/library/de..._functions.asp

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 07-13-2008, 08:16 PM
  2. Console User Interface : A Project
    By ra21vi in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 02-01-2006, 12:41 PM
  3. splitting the screen in a Win32 console application
    By watcher_b in forum C Programming
    Replies: 1
    Last Post: 10-19-2002, 05:22 PM
  4. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 09:19 AM
  5. Visual C++ 6.0 Console Application
    By satch in forum Windows Programming
    Replies: 1
    Last Post: 12-25-2001, 06:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21