开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜