CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Join Date
    Apr 2007
    Posts
    14

    Is this possible to make in C++?

    I want to make a red dot that centers in the very middle of the screen..i play these shooting games that im not very good at..and there are cross hairs but they do not go all the way to the middle..and haveing the dot there helps me aim better..

    is this possible in C++? if so..how?

    I just want to have a red dot centered in the very middle..lol..thats all

    anyone know?

  2. #2
    Join Date
    Feb 2006
    Location
    Croatia - Zagreb
    Posts
    459

    Re: Is this possible to make in C++?

    Please elaborate the question, and how is it connected to VC
    You just divided by zero, didn't you?

  3. #3
    Join Date
    Apr 2007
    Posts
    14

    Re: Is this possible to make in C++?

    I want to be able to have a red dot in the middle of my screen..

    is there some way to code this in c++(make a script that makes a red dot appear in the middle of your screen)

    that is my question..it seems very simple to me..i just dont know how to do it

    http://i136.photobucket.com/albums/q...ins/reddot.jpg

    here is a picture of what i am talking about...see the white lines?(cross hairs) well that is already in the game..i want to make a script that adds a red dot the middle of my screen so it is in the cross hairs..and when you look around the cross hairs are always in the middle of the screen so thats where i need the red dot to be
    Last edited by Seife; April 25th, 2007 at 03:16 AM.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Is this possible to make in C++?

    Quote Originally Posted by Seife
    I want to be able to have a red dot in the middle of my screen..

    is there some way to code this in c++(make a script that makes a red dot appear in the middle of your screen)
    What screen/"my screen"/"your screen" do you mean? Is it a monitor screen (then - which monitor in the case of using more than one)?
    Or you mean the middle of some window of the user process?

    that is my question..it seems very simple to me..i just dont know how to do it
    If you "dont know how to do it" - why do you write that it is "very simple to you"?

  5. #5
    Join Date
    Apr 2007
    Posts
    14

    Re: Is this possible to make in C++?

    ok i am just baseing all of this off a little simple program i used to have but have lost..when I opened it it put a red dot in the middle of MY screen..

    well i would *think* it would be simple..i have looked at c++ codeing stuff before..and i have scripted stuff in other languages..

    adding a red dot to the middle of your screen seems like it would be a simple script..thats all im saying
    Last edited by Seife; April 25th, 2007 at 03:22 AM.

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Is this possible to make in C++?

    1. You still haven't explain what you mean by "screen".
    2. If you indeed be able to do what you want with some script - why don't you do it? Why are you looking for some more complicated way (using vc++) of doing the same?

  7. #7
    Join Date
    Apr 2007
    Posts
    14

    Re: Is this possible to make in C++?

    ok sorry by the middle of the "screen" i mean the middle of the monitor "screen"..

    i figured this would be my best bet to start..is there an easier way i can do this? like another language?

  8. #8
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Is this possible to make in C++?

    You could try to place an icon with your red dot in the middle of the desktop window.

  9. #9
    Join Date
    Apr 2007
    Posts
    14

    Re: Is this possible to make in C++?

    i need it to appear in my game though..so it would have to be ontop of it..wich is why i think i need some kind of scripting to make this work :-/

  10. #10
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Is this possible to make in C++?

    Quote Originally Posted by Seife
    ok sorry by the middle of the "screen" i mean the middle of the monitor "screen"..
    Quote Originally Posted by Seife
    i need it to appear in my game though..so it would have to be ontop of it..wich is why i think i need some kind of scripting to make this work :-/
    Sh...t!
    1. Please, learn to correctly ask your questions!
    2. Please, choose at last where you want to show your dot: at the center of the (main) monitor screen of of the center of your game window!?

  11. #11
    Join Date
    Apr 2007
    Posts
    14

    Re: Is this possible to make in C++?

    ok..i am sorry for this confusion..to me these questions make sence i guess -.-

    the game is a Full screen game..so it takes up the whole screen..i want it to appear IN my game in the middle..



    does that make sence?
    Last edited by Seife; April 25th, 2007 at 03:59 AM.

  12. #12
    Join Date
    Feb 2006
    Location
    Croatia - Zagreb
    Posts
    459

    Re: Is this possible to make in C++?

    no, LOL.
    Did you wrote that game (I don't think so) but saying things like "my game" here alludes to writing that game your self.

    But lets make it simple, you can't do it if you don't have the source code of the game.
    It's not impossible though.
    You just divided by zero, didn't you?

  13. #13

    Re: Is this possible to make in C++?

    An idea...

    Move your game provided cross-hairs to where they are easily visible, then physically place a small stick-on dot of the color of your choosing on your monitor where the cross-hairs are.

    There... that oughta work.

  14. #14
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Is this possible to make in C++?

    Red Sharpee Marker?

  15. #15
    Join Date
    Apr 2005
    Posts
    221

    Re: Is this possible to make in C++?

    As I understand it you have a game that is NOT written by you that you play on your computer and you somehow want to add a graphic, a dot, to the very center of the game window.

    Firs of all, if you're writing in C++, it's not a SCRIPT that you're writing, it's a program. Secondly, C++ by itself will not be of much help. You need something like MFC, the Microsoft Foundation Classes, which provide much of the windowing and graphics capabilities for a Windows program.

    The only way I could think of doing what you have in mind (aside from pasting that red dot on the screen as suggested by another forum writer) is to write an MFC C++ application program that consists of a single transparent window in which you draw the red dot in the center, and then run that application so that it overlays the game program that you're running. You will also probably have to set the Z-level of the window so that it is an always-on-top window.

    But if you've never written MFC C++ programs before, even this "simple" program is going to be a lot of learning and work for you.

Page 1 of 2 12 LastLast

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

Featured