Thread: Help

  1. #1
    Banned
    Join Date
    Sep 2004
    Posts
    4

    Help

    Some questions

    (( this is C++ win32 ))

    1. Is it possible to make like "if X position == color_red" (so you can see what color it is in a position), cause I wanna make a program that checks if a monster exists and if it exist then kill it?

    2. How do I write a string to a program? (sample code please)

    3. How I make a window not sizeable?

    4. (I/O question) how do I open "C:\Games" by a Win32 prog?

    If you know any of these questions it would be great
    Last edited by Dao; 09-11-2004 at 01:31 PM.

  2. #2

  3. #3
    Banned
    Join Date
    Sep 2004
    Posts
    4
    Thanks but I don't got any money at the moment, that is why I'm asking here ^.-
    Last edited by Dao; 09-11-2004 at 02:16 PM.

  4. #4
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    This sounds ominously like homework. Post any ideas you have. Also I'm not quite sure what you mean by the second question so please be a little more specific if you can. As a hint for #3, you can control it when you make your window class.

  5. #5
    Banned
    Join Date
    Sep 2004
    Posts
    4
    Quote Originally Posted by Draco
    This sounds ominously like homework. Post any ideas you have. Also I'm not quite sure what you mean by the second question so please be a little more specific if you can. As a hint for #3, you can control it when you make your window class.
    This is no homework, I'm only 14 years and hey, what I mean by the secound question is how you can make a program that does this:
    Start program "a.exe", write "a" to a game called Tibia.exe, and quit "a.exe", and the idea is making online cheats to a game called Tibia,
    and learning stuff that I can't learn on forger's site (I've read the whole tutorial),

    thanks in advance
    Noxir
    Last edited by Dao; 09-11-2004 at 02:47 PM.

  6. #6
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    well you can't write anything to an .exe file, but to write a string to a file, use these functions, fopen() and fwrite(). Some examples as well as a full explanation on the different ways you can go about it are on this FAQ link.
    Last edited by Draco; 09-11-2004 at 03:11 PM.

  7. #7
    Banned
    Join Date
    Sep 2004
    Posts
    4
    -.- Draco? I mean, write a string in an active window

  8. #8
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    Well, that's very different. I'm not quite sure if you can do that at all, or how you'd go about it. You might be able to use some sort of scripting.

  9. #9
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    That would probably depend entirely on the program.

    If the text is internal from within the progam then I would say no, theres no way to change it while its running.

    If the text is loaded from a script file maybe. But, I doubt it as it is probably loaded into a buffer before it is printed. I seriously doubt text would be streamed from a file at runtime and continuously updated.

    But then again I maybe missing your point.

    As for a window not being resizeable. I'll give you another hint... dwStyle...
    You can pass multiple variables to dwStyle,
    What is C++?

  10. #10
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Quote Originally Posted by Dao
    This is no homework, I'm only 14 years and hey, what I mean by the secound question is how you can make a program that does this:
    Start program "a.exe", write "a" to a game called Tibia.exe, and quit "a.exe", and the idea is making online cheats to a game called Tibia,
    and learning stuff that I can't learn on forger's site (I've read the whole tutorial),

    thanks in advance
    Noxir
    hey noxir, remember when you were banned? You're still banned, assbag.

Popular pages Recent additions subscribe to a feed