Thread: implementing code i've written to varioius applications?

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    30

    implementing code i've written to varioius applications?

    first off i am extremely out of my element here, i have no idea how this works or if it even can work at all so if i say something stupid forgive me i just think this would be fun. say i wanted to write a program for world of warcraft...how do i get my code from visual c++ express into world of warcraft to where i can actually use it. is it the "attach to process" option in vb c++ express? also if this is possible to move code to other applications what is some useful code i could write to experiment with to move to any other common application. i'm just interested in practicing applying programming to other applications besides just compiling and seeing if it works in vb. any advice would be great. thanks in advance.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Unless a program is specifically designed to be extended, getting something like that to work would not be very easy to do (besides being somewhat unorthodox). Not impossible, of course, just impractical.

  3. #3
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    This is actually quite popular. At least, on certain other message boards.

    When you're writing your program, think about it in terms of any generic program rather than WoW, so you can easily re-use it later (library).

    The terms you are looking for are injection, hooking, memory reading, packet manipulation, etc. Google will do the rest.

    Just to be clear, this topic alone isn't automatically unethical, immoral, unorthodox. Plenty of legitimate tools (such as thottbot) use these methods.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Injection isn't necessary for WoW. But of course, that depends on what you want to achieve? What is it that you're trying to achieve with your code? Is it an extension, or something else?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    30
    no i am not an advance coder AT ALL. i just want to make a vey simple program and just be able to see the results inside an application besides vb...something like if i type something then make it appear twice in chat...and if this is too hard (i dont know) could someone tell me what type of code would be easy to write??

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Making "results" appear inside something else is not easy programming.
    You realize that programming is a lot about creating stand-alone applications, right?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    May 2009
    Posts
    30
    no i dont really know overall how to apply programming. i have just recently learned c++ over the past year.

  8. #8
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    First, you must decide on what you want to do.
    What is it that you wish to accomplish with your program in the end?
    Saying "I want to attach to WoW" isn't enough because it isn't descriptive enough. It doesn't actually explain what the program is supposed to do.

    For example, do you want to do a chat program? A calculator? Etc? Etc?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by Elysia View Post
    First, you must decide on what you want to do.
    What is it that you wish to accomplish with your program in the end?
    Saying "I want to attach to WoW" isn't enough because it isn't descriptive enough. It doesn't actually explain what the program is supposed to do.

    For example, do you want to do a chat program? A calculator? Etc? Etc?
    I understand what you're saying Elysia, but maybe you missed the part where he said he wants to send keystrokes to the WoW window. Sending text to a window is pretty common. There's the window must be active versions and the win32 api so it doesn't matter versions.

    Sending keystrokes to other *non-focus* application

    Fake keystrokes to another process

    More: send keystrokes site:cboard.cprogramming.com - Google Search

    You should try something and show some code, or explain the problem better before asking for help.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I didn't miss the original post. The question is still why the OP wants to send keystrokes.
    Not to mention it's usually against the rules with effy things like this, but the OP has expressed not being so familiar with programming environment.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by Elysia View Post
    I didn't miss the original post. The question is still why the OP wants to send keystrokes.
    Not to mention it's usually against the rules with effy things like this, but the OP has expressed not being so familiar with programming environment.
    It wasn't in the original post, it was the 5th post. We don't need to know what he's sending. He wants to send keystrokes to the WoW chat. That's more than enough information. I wouldn't pre-judge. There's plenty of reasons for something like this, and Blizzard does a great job of banning anybody "effy." I did this years ago, when I was learning the win32 api.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  12. #12
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I have read all the posts, and I don't really pre-judge. I do not like when people shoots something down because it "looks" effy. I would know the real reason before shutting it down.
    But it's not all just about the rules, as I said. It's to provide insight into what the OP wants and why to help with some approach.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  13. #13
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    WoW might have protections against this kind of thing, and some of it might be against the terms of use. It probably won't be able to do anything for another application faking keystrokes, but I would still look at the terms of use.

    Wow has extra security because it's a multiplayer game, and the makers don't want you to cheat.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Your biggest project: how many lines have you written?
    By happyclown in forum A Brief History of Cprogramming.com
    Replies: 44
    Last Post: 04-29-2009, 07:30 AM
  2. Replies: 14
    Last Post: 11-23-2005, 08:53 AM
  3. Writing Code
    By ILoveVectors in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2005, 12:27 AM
  4. Replies: 4
    Last Post: 01-16-2002, 12:04 AM
  5. Big Code, Little Problem
    By CodeMonkey in forum Windows Programming
    Replies: 4
    Last Post: 10-03-2001, 05:14 PM