Sign in to follow this  
Followers 0
TargetCell

Resize this window or something else?

2 posts in this topic

Yesterday, I posted on a scripting and programming forum with several million members.  I was
reluctant to post because my problem is "too simple" for this type of advanced forum.  So far,
no one has replied.

I've been using batch files and other types of scripts for many years.  I've got a window resizing
problem, and there may be no solution.

This example from NirCmd is typical of all the apps I use:

nircmd.exe win setsize class "TMainForm" x, y, width, height

When a command is given to "resize" the window always rolls up from the bottom.  The attached
image is the window I'm trying to resize.  A is the full window.  I want to resize so that B is the
only visible area.  B is a simulated instrument display for testing electrical components.  It shows
"Not Active" in the upper left corner.

Image C is the final result, and that's my problem.  Resize commands always reduce the height
of a window from the bottom up.  I need to reduce this window from the top down, so that the
instrument display (B) is the only visible part of this window.  It would be nice to keep the title
bar (class TMainForm), but I don't need to see it.

I know how to create basic scripts, but I'm not a programmer.  What I want probably requires
dismantling and reassembling the code for this app.  I don't have those skills.

I was thinking, is there an applet that can hide part of a window?  If there is, that would be similar
to resizing a window.  Not the perfect solution, but it could be a good workaround.

Any ideas would be helpful.

Thanks guys.

 

A-B-C Window.jpg

Share this post


Link to post
Share on other sites



Maybe the black control can be moved up ?


Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0