找回密码
 加入
搜索
查看: 62|回复: 2

[图形处理] ADB虚拟遥控器

[复制链接]
发表于 3 天前 | 显示全部楼层 |阅读模式
悬赏1金钱未解决
请问一下怎么在图片上添加或创建透明的按钮,还有就是使用图片二进制函数内嵌时调用图片无法进行缩放,有没有其它的方法内嵌图片在代码内?


附上遥控器的代码







 楼主| 发表于 3 天前 | 显示全部楼层
#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("虚拟遥控器", 448, 657, 334, 207) $MenuItem1 = GUICtrlCreateMenu("设备") $MenuItem2 = GUICtrlCreateMenuItem("连接", $MenuItem1) $MenuItem3 = GUICtrlCreateMenu("控制") $MenuItem4 = GUICtrlCreateMenuItem("发送文本", $MenuItem3) $MenuItem5 = GUICtrlCreateMenuItem("发送键值", $MenuItem3) $Pic1 = GUICtrlCreatePic("C:\Users\Administrator\Desktop\ykq.jpg", 8, 8, 209, 593) $Combo1 = GUICtrlCreateCombo("Combo1", 232, 32, 137, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) $Label1 = GUICtrlCreateLabel("设备:", 232, 8, 40, 17) $Input1 = GUICtrlCreateInput("Input1", 232, 88, 121, 21) $Label2 = GUICtrlCreateLabel("文本:", 232, 72, 40, 17) $Label3 = GUICtrlCreateLabel("键值:", 237, 123, 40, 17) $Input2 = GUICtrlCreateInput("Input1", 229, 147, 121, 21) $Button1 = GUICtrlCreateButton("刷 新", 376, 32, 49, 25) $Button2 = GUICtrlCreateButton("发 送", 373, 91, 49, 25) $Button3 = GUICtrlCreateButton("发 送", 373, 147, 49, 25) $Group1 = GUICtrlCreateGroup("", 40, 56, 57, 25) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlSetCursor (-1, 0) $Label4 = GUICtrlCreateLabel("             ", 124, 80, 62, 24, BitOR($SS_BLACKRECT,$SS_NOPREFIX,$WS_BORDER,$WS_CLIPSIBLINGS)) GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif") GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###  While 1         $nMsg = GUIGetMsg()         Switch $nMsg                 Case $GUI_EVENT_CLOSE                         Exit                  Case $Pic1         EndSwitch WEnd
 楼主| 发表于 3 天前 | 显示全部楼层

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2025-4-2 19:43 , Processed in 0.105317 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

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