mIRC Homepage
Posted By: XGamerAMD resize windows - 23/01/23 08:38 AM
//echo -a $window(@desktop).w $window(@desktop).h

detect the size of windows, how can i resize in smalller one?



thnx
Posted By: maroon Re: resize windows - 23/01/23 07:52 PM
see https://en.wikichip.org/wiki/mirc/commands/window
like /window @name 0 0 400 200
Posted By: XGamerAMD Re: resize windows - 24/01/23 05:16 PM
Originally Posted by maroon
see https://en.wikichip.org/wiki/mirc/commands/window
like /window @name 0 0 400 200

i know ,thats the reason of post
Posted By: maroon Re: resize windows - 24/01/23 06:07 PM
If that's not the answer to your question, then can you restate your question more clearly?
You wanted to be able to set the existing window's size to something smaller, so the size is changed the same way you created the size in the first place.
You can change the width by using $calc to subtract something from the existing width, and same for changing the existing height.
As for whether you want to move the left/top of the smaller window somewhere else, that is up to you. In some cases you might want to move the left edge (x) of the window by half the amount you are changing the width, and move the top edge (y) of the window by half the change for the height
Posted By: XGamerAMD Re: resize windows - 24/01/23 11:10 PM
Originally Posted by maroon
If that's not the answer to your question, then can you restate your question more clearly?
You wanted to be able to set the existing window's size to something smaller, so the size is changed the same way you created the size in the first place.
You can change the width by using $calc to subtract something from the existing width, and same for changing the existing height.
As for whether you want to move the left/top of the smaller window somewhere else, that is up to you. In some cases you might want to move the left edge (x) of the window by half the amount you are changing the width, and move the top edge (y) of the window by half the change for the height

i dont know how i do it friend maroon
Posted By: Epic Re: resize windows - 25/01/23 01:46 PM
Originally Posted by XGamerAMD
i know ...
i dont know ...
[Linked Image from i.ibb.co]
Posted By: Epic Re: resize windows - 25/01/23 02:03 PM
Originally Posted by XGamerAMD
//echo -a $window(@desktop).w $window(@desktop).h

detect the size of windows, how can i resize in smalller one?

You cannot resize "desktop" window or resize your monitor via mIRC. This can only be done through the Windows OS settings or buy a new monitor in a different size.

If you want to do something different, then if you please formulate your question properly so that it is as clear as maximum possible for those who are trying to help you.
Otherwise, no one can help you.
Posted By: XGamerAMD Re: resize windows - 25/01/23 05:42 PM
the mirc windows i nedd to resize
Posted By: maroon Re: resize windows - 25/01/23 06:14 PM
This creates a custom window
//window @resize 100 200 300 400

This resizes it to be taller, 500 instead of 400

//window @resize 100 200 300 500

This instead resizes it to be slightly wider, width 350 instead of 300

//window @resize 100 200 300 400 | //window @resize 100 200 350 400

If you are wanting the script to change the size of the main mirc window itself, that is not possible. The
/help /showmirc
command can do some things to the main window, but not changing its size
Posted By: Epic Re: resize windows - 25/01/23 06:28 PM
You can use this command to both create or change the position and size of a window at the same time:

    "/window @name horizontal vertical width height"

Example:
Code
/window @test 300 400 700 500

    "@test" - window name (this can also be "#test").
    "300" - is the horizontal position in pixels on screen.
    "400" - is the vertical position in pixels on screen.
    "700" - is the width of the window in pixels.
    "500" - is the height of the window in pixels.


Note: This will only work when the mIRC window is open separate desktop window mode "/window -d @test".

Also you should not give such names to custom windows as: "@mirc", "@mdi", "@desktop" - these names are reserved by mIRC for identifying other windows.

More information on this command can and MUST need to be read here: https://en.wikichip.org/wiki/mirc/commands/window


P.S. "Documentation is an extremely crucial part of any software project, yet it is often overlooked or ignored. This can be a mistake, as documentation can provide valuable information that can help you complete your project successfully. Colleagues will be much more inclined to help you if you've done your due diligence - google search, documentation, and the like - don't just immediately ask others when an unknown problem pops up!" Why is it important to read the help documentation
Posted By: maroon Re: resize windows - 25/01/23 06:43 PM
Epic, can you clarify what you're saying?
It seems like you're saying that you can't resize a window or channel unless it's in desktop mode, and that's not so, as my other post shows an example of doing so to a non-desktop window
Posted By: XGamerAMD Re: resize windows - 25/01/23 10:56 PM
all ready new , this but thnx
© mIRC Discussion Forums