rezise window in different direction

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

rezise window in different direction

19 Mar 2018, 03:22

I've been toying around with WinSpy in attempt to test the possibility of rezising the default window of an app.
it seems that it is possible to resize a non-resizable UI and specifying a custom cuts elements from the window (making them invisible wich is exactly what I want).
the problem is that it goes from the bottom to the top. Any way I could make it go top to bottom?
Rohwedder
Posts: 7616
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: rezise window in different direction

19 Mar 2018, 06:51

Hallo,
try:

Code: Select all

Run, Notepad.exe
WinWaitActive, ahk_class Notepad,,1
WinMove, ahk_class Notepad,,,, 300, 300
WinActivate, ahk_class Progman
q::
WinSet, Region, 0-0 300-0 300-300 0-300 0-0   100-100 200-100 200-200 100-200 100-100, ahk_class Notepad
Return
Hotkey q makes a hole but the window stays on the bottom.
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

Re: rezise window in different direction

19 Mar 2018, 16:28

unfortunately it's still the same.
the script begins cutting from the bottom of the window
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

Re: rezise window in different direction

21 Mar 2018, 02:47

Would something like this be possible via DllCall?
I have disabled the menubar via " DllCall("SetMenu", uint, WinExist(), uint, 0) " and the other elements of the window shifted to the top.
could this be done with other elements of the window? ex: remove an element to make those after it take its place
Really unfamiliar with DllCall. Tried ready the guide on it, but it's "chinese" for me :(

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: hiahkforum and 187 guests