tags:

views:

35

answers:

1

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 may 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.

+1  A: 

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
Mike Woodhouse
Excellent and thanks for the reply.
Brett
By the way I have found out what to do and have got my code working, so thanks again for the pointers
Brett