Page 2 of 2
Re: Options to remove Windows Close & Maximise buttons.
Posted: 22 Jan 2014 17:02
by binocular222
Very simple AHK script:
Code: Select all
#Ifwinactive, ahk_class Notepad
^o::
XYplorerID := WinExist("ahk_class ThunderRT6FormDC")
NotepadID := WinExist("ahk_class Notepad")
DllCall("SetParent", "uint", XYplorerID, "uint", NotepadID)
Ctrl+O in Notepad will make XY window become child to Notepad
Re: Options to remove Windows Close & Maximise buttons.
Posted: 23 Jan 2014 12:21
by admin
AHK is really cool, wow.
But I'm not ready to give up my trademark titlebar for it, sorry.

Re: Options to remove Windows Close & Maximise buttons.
Posted: 23 Jan 2014 14:36
by mkolaski
One other feature that I'd like to ask about (which fits into my overall goal of using XYplorer to replace an in-application browser) is; can XYplorer also have a toggle added so that it always remains on top of all other applications (similar to Windows Task Manager)? That way when the below application (with the crap in house file browser) is being manipulated/used, XYplorer will remain on top in it's own corner, ready for interaction at any given time.
@Burningfeetman: I use AHK to do this - can't remember where I got the script but I use the following (invoked with Win + T):
Code: Select all
#t::
ActiveHwnd := WinExist("A")
WinGetTitle, WindowTitle, ahk_id %ActiveHwnd%
WinGet, ExStyle, ExStyle, ahk_id %ActiveHwnd%
if (ExStyle & 0x8)
OnTop=1
else
OnTop=0
Winset, AlwaysOnTop, Toggle, ahk_id %ActiveHwnd%
StringReplace, WindowTitle, WindowTitle, %A_Space%- (Pinned)
if not OnTop
WindowTitle:=WindowTitle . " - (Pinned)"
WinSetTitle, ahk_id %ActiveHwnd%,,%WindowTitle%
return
As you don't like title bars, you could just do this
HTH
Cheers,
Michael
Re: Options to remove Windows Close & Maximise buttons.
Posted: 23 Jan 2014 15:19
by klownboy
Hi Don, I can see why
admin wrote:I'm not ready to give up my trademark titlebar for it, sorry
but, it would be nice to be able to go completely minimalistic temporarily via scripts especially for viewing thumbnails in various photo folders.
thumbs_cap.png
We can remove all the other bars via scripting but the not titlebar. It would be great if we could remove the titlebar temporarily even if it was only through scripting. Obviously, we wouldn't use it for normal operations in XYplorer. Those thumbs are from my camera, not internet wallpaper this time.
Thanks,
Ken
Re: Options to remove Windows Close & Maximise buttons.
Posted: 23 Jan 2014 15:26
by binocular222
How many more vote do we need to change Don's mind?
Re: Options to remove Windows Close & Maximise buttons.
Posted: 23 Jan 2014 20:00
by admin
Wow, beautiful foggy shots.
binocular222 wrote:How many more vote do we need to change Don's mind?
12,000?
Re: Options to remove Windows Close & Maximise buttons.
Posted: 23 Jan 2014 21:16
by klownboy
Thanks for comment on the camera shots (Fujifilm X100S), bummer on the titlebar 12,000 comment.

Re: Options to remove Windows Close & Maximise buttons.
Posted: 24 Jan 2014 02:37
by binocular222
while($Index < 12000) {msg Please remove title bar!; incr $Index}
Re: Options to remove Windows Close & Maximise buttons.
Posted: 10 Feb 2020 10:35
by dimon157
Seems I have found solution! Just using
-0x80000 value instead of
-0xC30000 both leaves title and hides all other gui elements, semi-solving what topic starter asked and solving what i wanted.
Leaving title bar besides eating space has its own advantages, as lets to move window (without border that is a problem) and visually serves as a "dock" for information inside XYplorer.
highend wrote: ↑21 Jan 2014 23:31
Why not just use a SetTimer command in Autohotkey?
Code: Select all
#NoTrayIcon
#SingleInstance force
#Persistent
SetTimer, RemoveWindowElements, 100
return
RemoveWindowElements:
;WS_MAXIMIZEBOX 0x10000 + WS_MINIMIZEBOX 0x20000 + WS_CAPTION 0xC00000 = 0xC30000
WinSet, Style, -0xC30000, ahk_class ThunderRT6FormDC
return
100 msecs should be enough (this app won't consume any noticable amount of cpu power with it)...