替换文字

OnMessage(0x201, "WM_LBUTTONDOWN")
WM_LBUTTONDOWN(wParam, lParam)
{
	X := lParam & 0xFFFF
	Y := lParam >> 16
	if A_GuiControl
		Control := "`n(in Control " . A_GuiControl . ")"
	MouseGetPos, OutputVarX, OutputVarY, OutputVarWin, OutputVarContr
	GuiControlGet, Content, , %A_GuiControl%
	if  OutputVarContr = Edit1               ; 第三个输入框点击左键自动改变内容
	{
		CoordMode, Mouse, Screen
		MouseGetPos, mrX, mrY,, msCtrl
		ControlGetText, ctrlTxt, %msCtrl%
		Haystack = %ctrlTxt%
		Needlesss = 故障
		Needlessss = 状态
		Needlesssss = 跳闸
		IfInString, Haystack, %Needlesss%  ;查找故障这个汉字是否在变量2中
		{
			ControlSetText, Edit1, 状态, 复制粘贴+ JLNB开关配置工具  v2.0, , ,
		}
		IfInString, Haystack, %Needlesssss%  ;查找故障这个汉字是否在变量2中
		{
			ControlSetText, Edit1, 状态, 复制粘贴+ JLNB开关配置工具  v2.0, , ,
		}
		IfInString, Haystack, %Needlessss%  ;查找故障这个汉字是否在变量2中
		{
			ControlSetText, Edit1, 故障, 复制粘贴+ JLNB开关配置工具  v2.0, , ,
		}
	}
	; if  OutputVarContr = Edit1               预留接口
	; {
	;   MsgBox 222
	; }
}


Gui Font, s13 cblack
Gui Add, Edit,-VScroll  x10 y19 w220 h50 vA, 状态

Gui Show, x1 y1 w480 h160 , 复制粘贴+ JLNB开关配置工具  v2.0
return

给TA捐赠
共{{data.count}}人
人已捐赠
其他

瞬取两边窗口ID

2021-12-2 16:09:33

其他

调出文件夹选择对话框

2021-12-2 16:11:47

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索