Thread: drawing over the open program.

  1. #1
    Unregistered
    Guest

    Question drawing over the open program.

    I need to know how to make a windows prog in C that will stay in the background but still draw lines over the open program. The open program i am thinking about is a graphics rich game namely Quake3.

    I am thinking of making the program multi threaded. Any thoughts?

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    You can get a handle to a device context that will allow you to draw to any part of the screen by passing NULL into GetDC(). However, you wont be able to draw over any app that has exclusive control of the screen (using opengl,dx etc), so whatever idea you're having about Quake3 wont work.

  3. #3
    Unregistered
    Guest
    well i have seen something like it in another program so i know it can be done. That program constantly wrote some lines on the screen so that when quake3 refreshes the screen the lines would disappear. This caused a flicker effect, but it did work.

  4. #4
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Question Huh?

    I dont quite understand why you are asking a question, all that is happening is you're drawing lines over a part of the screen Quake3 is using... therefor Quake3 (running on a primative platform... windows) will draw back over those lines continuously. All you need for this is a program with exclusive contol and a context to the whole screen.

    Was the the correct Q+ A?

    SPH

  5. #5
    Registered User cppdude's Avatar
    Join Date
    Jan 2002
    Posts
    62
    yes my program will draw over quake3 continuosly to keep these lines that i want on the screen.

  6. #6
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    What purpose would this program serve? If you want lines on the screen while playing Quake3 may I suggest black string with tape holding it in place in either side of the monitor. This may not conform to ANSI C/C++ but it should do the trick

  7. #7
    Registered User cppdude's Avatar
    Join Date
    Jan 2002
    Posts
    62
    that is only the start. It is meant to scan what is on the screen while playing quake 3 (specifically a CS type mod) and magnify the area around the crosshair. This will serve as a zoom cheat.

    Yes i know quake3 has a zoom with every weapon but i am talking about one of its mods that only allows zooming with the sniper rifles. I want to be able to snipe with a machine gun.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic program design, passing pointer to a function
    By heras in forum C Programming
    Replies: 14
    Last Post: 04-02-2008, 03:21 AM
  2. Can't Open the program.
    By silhoutte75 in forum C Programming
    Replies: 1
    Last Post: 03-19-2008, 07:19 AM
  3. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 09:48 AM
  4. change this program to open a file
    By A F Army in forum C Programming
    Replies: 3
    Last Post: 04-05-2003, 05:25 PM
  5. How to write program to open picture window?
    By ooosawaddee3 in forum Windows Programming
    Replies: 1
    Last Post: 11-28-2002, 03:08 PM