找回密码
 加入
搜索
查看: 1350|回复: 1

[AU3基础] 无聊删帖吧。为什么禁止回复

  [复制链接]
发表于 2017-1-11 09:39:01 | 显示全部楼层 |阅读模式
本帖最后由 229989799 于 2017-3-20 09:32 编辑

如何让鼠标移到控件处,文本改变颜色呢????/
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 381, 201, 192, 124)
$Label1 = GUICtrlCreateLabel("如何让鼠标移到此处,文本改变颜色呢", 40, 80, 280, 17)
GUICtrlSetCursor (-1, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $Label1
                        Msgbox(0,"hello","hello")
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
发表于 2017-1-11 12:42:20 | 显示全部楼层
提示: 该帖被管理员或版主屏蔽
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-3-29 14:45 , Processed in 0.079145 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表