Hey guys, I was wondering if it is possible to draw a line on screeen.
I want to make a c++ program that would draw a line on my screen.
Nothing with graphics though.
It's been about 4 years since I dealt with WinApi, and I wish all the luck to you if you undertake that as a project.
WinApi Tutorials: ( http://www.winprog.org/tutorial/start.html )
I don't know if you have any experience yet in that direction, but here's several ways that you would draw to the root screen;
It appears that the option of drawing a tranparent window can be done in Qt. It's not really a common action, so there might be some issues with it being cross-platform and changes between versions of Qt (but that's also a caution with WinApi). Qt is much easier to learn than WinApi.
I thought you just needed to draw a line above that window. Mouse-click A to Mouse-Click B. The window below the line isn't moving, right?
Yes you can get to the point where the line is a part of the lower window, but that's an advanced topic for WinApi called Hooks and/or Pipes. (Basically a method of injecting your own code into pre-existing code, carefull, I think a lot of antivirus programs look for this kind of behavior). I never got that deep into the API. I'm not even sure that it's possible if you don't have access to the game's inner workings (such as through their dll's)... but I think you should look into Hooks as they pertain to the API.
You might want to move this to the Windows forum to get more specific answers. [ At the top hit "edit topic" and then hit the drop-down menu in the forum section. Select "Windows Programming" and hit submit at the bottom of the page ]