เรามีวิธีทำให้ gui ที่สร้างขึ้นมา ไม่ให้มันขึ้นตรง taskbar (ไม่ใช่ system tray นะครับ)
ปล.จะเอาไปใส่ TempDelete (ที่จริงใน koda ก็มี...แต่..ลืมไปแล้ว)
ปล.จะเอาไปใส่ TempDelete (ที่จริงใน koda ก็มี...แต่..ลืมไปแล้ว)
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("PSsix", 271, 204,-1 ,-1)
$Button1 = GUICtrlCreateButton("Button1", 152, 24, 75, 25)
GUISetState(@SW_SHOW) ;แสดง
Sleep (3000);หน่วง 3 วิก่อนซ่อน
GUISetState(@SW_HIDE) ;ซ่อน
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("PSsix", 271, 204, -1, -1, -1, -1, WinGetHandle("[CLASS:Progman]"))
$Button1 = GUICtrlCreateButton("Button1", 152, 24, 75, 25)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|
|