x_files_x Posted June 12, 2013 Share Posted June 12, 2013 Mrb arkadaşlar benim elimde küçüçük bir gui var, sadece yapmak istedigim şey, bu gui açılınca araç cubugunda ismi ve ikonu olmasın istiyorum, sistem tray demiyorum yanlıs anlasılmasın, arka planda da calısılsın demiyorum, guinin penceresi ekrana gelsin ama altta menüde ismi ve simgesi olmasın, şunu yaparsanız ben kendime göre ayarlarım, #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 182, 79, 192, 124) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close") GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize") $Button1 = GUICtrlCreateButton("Button1", 8, 8, 163, 25) GUICtrlSetOnEvent(-1, "Button1Click") $Button2 = GUICtrlCreateButton("Button2", 8, 40, 163, 25) GUICtrlSetOnEvent(-1, "Button2Click") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func Button1Click() EndFunc Func Button2Click() EndFunc Func Form1Close() Exit EndFunc Func Form1Minimize() EndFunc Quote Link to comment Share on other sites More sharing options...
asmazh Posted June 12, 2013 Share Posted June 12, 2013 Koda Form Designer'ı biraz incelesen istediğin şeyi yaparsın. Misal: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 437, 192, 124, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Quote Link to comment Share on other sites More sharing options...
x_files_x Posted June 12, 2013 Author Share Posted June 12, 2013 kodada sadece forum olusturup butonlara kod filan yerlestirmeyi biliyom, acemi sayılırım autoit konusunda, acaba püf noktası nedir nerden, yok ettin o araç cubugundaki yerden, sanırım guiecreat in sonundaki kodlardan oluyordu, Quote Link to comment Share on other sites More sharing options...
asmazh Posted June 12, 2013 Share Posted June 12, 2013 $WS_EX_TOOLWINDOW Bu sabit değişken ile yapılıyor. Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted June 12, 2013 Share Posted June 12, 2013 (edited) #include <StaticConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> #include <Constants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 437, -1, -1) Global $hDesktop = ControlGetHandle("[CLASS:Progman]", "", "SysListView321") _WinAPI_SetWindowLong($Form1 , $GWL_HWNDPARENT, $hDesktop) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd ilgili yer Global $hDesktop = ControlGetHandle("[CLASS:Progman]", "", "SysListView321") _WinAPI_SetWindowLong($Form1 , $GWL_HWNDPARENT, $hDesktop) ilgili yerdeki kodu pek tavsiye etmiyorum ,bu şekildede oluyor ama bu özel durumlar içindir dediğiniz durumda göstermek için bazen stiller destek vermiyor , o zaman kullanılır bu kod özel durum için bir örnek kod http://www.tnctr.com/topic/218160-perforated-image-oernedhi/ ve asmazh dostumun dediği olabilir, $Form1 = GUICreate("Form1", 615, 437, -1, -1,-1, $WS_EX_TOOLWINDOW) şeklindede yapabilirsiniz Edited June 12, 2013 by mesale0077 Quote Link to comment Share on other sites More sharing options...
x_files_x Posted June 12, 2013 Author Share Posted June 12, 2013 Çok tşk ederim arkadaslar cevaplarınız için, öğrenmiş oldum sayenizde Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.