回复 3# 病毒专收员
变下思路
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WINAPI.au3>
#include <sendmessage.au3>
HotKeySet("ESC", "_Exit")
$hGUI = GUICreate("Test", 202, 52, -1, -1, $WS_POPUP, BitOR($WS_EX_LAYERED,$WS_EX_TOPMOST))
GUIctrlSetBkColor(-1,0xABCDEF)
GUICtrlCreateInput("", 2, 2,198,48)
GUIctrlSetBkColor(-1,0xABCDEF)
GUICtrlSetTip(-1,"abcdefg")
GUICtrlSetFont(-1, 14, 800, 1, '雅黑')
GUICtrlSetColor(-1, 0xbcdeaa)
GUISetState()
_WinAPI_SetLayeredWindowAttributes($hGUI, 0xABCDEF, 255)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $GUI_EVENT_PRIMARYDOWN
_SendMessage($hGUI, $WM_SYSCOMMAND, 0xF012, 0)
EndSwitch
WEnd
Func _Exit()
Exit
EndFunc
|