Resizing windows using Ruby?
I am trying to resize the window of another open application via ruby but I am not sure how to go about doing this.
I am guessing this ma开发者_开发百科y be possible using the Ruby Win32API, but to be honest I don't really know where to start looking.
If one of you guys could point me in the right direction it would be greatly appreciated.
You're probably going to need some combination of APIs for locating/identifying your target window and for getting the resize message to them.
- There may be something in this thread, and
- This entry from the Pickaxe book looks like a promising example (scroll down to the Win32API part), and
- one of the answers to this SuperUser question also looks like it might be useful
精彩评论