Simple script for hiding the title bar doesn't work

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
gimpo
Posts: 1
Joined: 23 Jun 2021, 06:12

Simple script for hiding the title bar doesn't work

Post by gimpo » 23 Jun 2021, 06:26

Hi all,

the script below works fine for hiding the title bar from ordinary applications like notepad.exe, unfortunately it doesn't work for the application I'm interested the most: Mach3. This application is a Windows-based program to control a CNC machine by using a graphical interface.
Since my screen is quite small (1024x768) it would great if I could save all of that pixels wasted for the useless title bar.

Mach3 starts normally, unfortunately the title bar is still there... :(

P.S.
There is a little splash-screen window displayed before the program starts. Could be that the problem? :?

Code: Select all

SetWorkingDir C:\Mach3  ; Ensures a consistent starting directory.
Run, C:\Mach3\Mach3.exe /p Mach3Mill
WinWaitActive, ahk_exe Mach3.exe
WinSet, Style, -0xC00000, ahk_exe Mach3.exe
User avatar
Smile_
Posts: 858
Joined: 03 May 2020, 00:51

Re: Simple script for hiding the title bar doesn't work

Post by Smile_ » 23 Jun 2021, 11:19

There is a little splash-screen window displayed before the program starts. Could be that the problem?
Yes it is, you are actually applying that style to that splash image as I can see.
Try with

Code: Select all

SetWorkingDir C:\Mach3  ; Ensures a consistent starting directory.
Run, C:\Mach3\Mach3.exe /p Mach3Mill
WinWaitActive, Mach3 CNC ahk_exe Mach3.exe
WinSet, Style, -0xC00000, ahk_exe Mach3.exe
Post Reply

Return to “Ask for Help (v1)”