2

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.

Mike Woodhouse
  • 51,832
  • 12
  • 88
  • 127
Brett
  • 21
  • 1

1 Answers1

2

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
Community
  • 1
  • 1
Mike Woodhouse
  • 51,832
  • 12
  • 88
  • 127
  • 1
    By the way I have found out what to do and have got my code working, so thanks again for the pointers – Brett Jul 16 '10 at 07:03