Author Topic: Help with QB64 code to resize and reposition apps (e.g.NotePad)  (Read 3154 times)

0 Members and 1 Guest are viewing this topic.

Offline Richard

  • Seasoned Forum Regular
  • Posts: 364
    • View Profile
Help with QB64 code to resize and reposition apps (e.g.NotePad)
« on: November 16, 2021, 11:34:12 am »
Anyone able to assist with QB64 code (or API or something) to allow the resizing and repositioning of an app (e.g. NotePad)?

Ideally, say NotePad is launched by


SHELL _dontwait "NotePad"

which despite previously having been sized/positioned often appears in a different position and to a lesser extent, a different size.

Assuming I can program calculate how far to move (to the desired location) - my problem is to in a program reposition the app (also maybe re re-size it).

So far I cannot seem to establish the handle via the SHELL _dontwait command - in any case when I can determine the handle (by a few methods, e.g. via PID, TaskManager,etc) and try to "plug-in" the handle into various API's (eg MoveWindow) - NOTHING seems to happen (no resizing/relocating).

Using Windows 10x64 Pro 21H1 (Nov updated)