2

I want to write a helper program to display some text on the other program. e.g.: I can display my guess on tiles in minesweeper in windows.

update 0906: I don't need inject a program, I can just check pixels on screen and show some text on screen. Is there some idea?

How can I do this?

John Riselvato
  • 12,854
  • 5
  • 62
  • 89
MoreFreeze
  • 2,856
  • 3
  • 24
  • 34
  • This isn't an easy task, as far as I know you would have to inject the process. Also Minesweeper probably doesn't use OpenGL. – Appleshell Sep 05 '13 at 15:54
  • @AdamS how about directX? C# code something? – MoreFreeze Sep 05 '13 at 15:59
  • Why don't you write a program that takes a image of minesweeper, and your own program writes the texts over the image. – John Riselvato Sep 05 '13 at 16:05
  • @JohnRiselvato I want to display it real time. I don't know if my image can keep minesweeper out? – MoreFreeze Sep 05 '13 at 16:08
  • Well, I've seen what you want done in java before but that was a runescape macro. I don't know how to help you but I'm interested in seeing the responses you get. – John Riselvato Sep 05 '13 at 16:10
  • 1
    This might be of interested http://stackoverflow.com/questions/1768062/how-to-create-an-overlay-window-in-java – John Riselvato Sep 05 '13 at 16:14
  • @JohnRiselvato yeah, that gives me some inspire – MoreFreeze Sep 05 '13 at 16:19
  • @MoreFreeze: what you want to do is completely outside the scope of OpenGL. And injecting a DLL into the other process is the only way to go, because processes are protected from each other by the OS. So you need some hook to do what you want from the inside. – datenwolf Sep 05 '13 at 16:20
  • I might be mistaken but in early days one could paint anywhere on the screen in Windows. So the idea is that the screen is not protected, it does not belong to any specific process. Just choose Your location right and start setting pixels... – Roland Pihlakas Sep 06 '13 at 10:58

0 Answers0