hearmeout Posted March 15, 2005 Share Posted March 15, 2005 Hey guys, The subject title pretty much explains to my question so can someone shed some light? Thanks, Son Link to comment Share on other sites More sharing options...
CyberSlug Posted March 15, 2005 Share Posted March 15, 2005 Please post questions in the Support forum instead of Scripts and Scraps. But to answer your question: ; Example of external program Run("calc") WinWait("Calculator") $calcHwnd = WinGetHandle("Calculator") $menu = DllCall("user32.dll","hwnd","GetSystemMenu","hwnd", $calcHwnd, "int",0) DllCall("user32.dll", "int", "RemoveMenu", "hwnd", $menu[0] , "int", 0xF060, "int", 0x0);SC_CLOSE ; Example with own AutoIt GUI $GUI = GuiCreate("Example") $menu = DllCall("user32.dll","hwnd","GetSystemMenu","hwnd", $GUI, "int",0) DllCall("user32.dll", "int", "RemoveMenu", "hwnd", $menu[0] , "int", 0xF060, "int", 0x0);SC_CLOSE GuiSetState(@SW_SHOW) While 1 ; WE COULD ALSO CHOOSE NOT TO DO ANYTHING UPON A CLOSE EVENT sleep(100) WEnd Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
AUTTRY Posted November 10, 2011 Share Posted November 10, 2011 (edited) It is slow for Close button to be disabled. Could anybody accelerate the process? Thanks. Edited November 10, 2011 by AUTTRY Link to comment Share on other sites More sharing options...
JohnOne Posted November 10, 2011 Share Posted November 10, 2011 Seriously, a thread almost 7 years old? Oh My ! AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Valik Posted November 10, 2011 Share Posted November 10, 2011 It is slow for Close button to be disabled. Could anybody accelerate the process?Thanks.You are fail. Learn to pay attention. Thread locked to prevent any further necrophilia. Link to comment Share on other sites More sharing options...
Recommended Posts