What programming languages have access to the WinAPI?
I'm looking to start a new programming language and for my first task I want to overlay some text on another applications window, 开发者_JS百科similar to the guy in this post:
Overlay text on some else's window - HUD
Clearly from that post, this can be done in VB.NET, and extrapolating from that, I can probably safely assume that C++\C# can also do this similarly.
My question is; are there any other languages that can do the same? Can Ruby do it? :)
I'm looking for the following capabilities:
- Enumerate open windows to find the one I want to overlay on top of.
- Overlay text on the 3rd party apps window. (Rich text is a bonus)
- Detect window bounds so I can resize the text when the user resizes the window.
- Allow click-through of my created text so it doesn't interfere with the 3rd party apps functionality.
Any ideas?
If you want to use Ruby, you have two options: IronRuby and "classic Ruby".
I guess IronRuby would be the preferred option on Windows as it runs on top of .NET and has access to full Windows API through that.
If .NET is too much for your needs and you need to do something simple, then classic Ruby might be a better fit.
For classic Ruby, check out these pages:
- Ruby and Microsoft Windows
- Microsoft Windows Support
Beware: argument packing and unpacking is not very convenient.
精彩评论