[已解决]如何将插入符从input的位置从输入字符串的首跳到尾
本帖最后由 oceanwind 于 2014-1-15 07:34 编辑如下代码 ,该如何改呢?#include <GUIConstantsEx.au3>
$main_Form = GUICreate("Test Caret", 300,70,300, 300)
$input1 = GUICtrlCreateInput("",1, 1, 298, 20)
GUISetState(@SW_SHOW)
While True
If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit
WEnd当前光标如图在"1"之前,如何移到字串尾即如图中"9"之后呢?
#include <GUIConstantsEx.au3>
$main_Form = GUICreate("Test Caret", 300,70,300, 300)
$input1 = GUICtrlCreateInput("",1, 1, 298, 20)
$button1 = GUICtrlCreateButton("跳到尾",100,30,70,30)
GUISetState(@SW_SHOW)
While True
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
Exit
Case $button1
GUICtrlSetState($input1,$GUI_FOCUS)
GUICtrlSendMsg($input1,0x00B1,-1,0)
EndSwitch
WEnd
风行者 发表于 2014-1-15 02:27 http://www.autoitx.com/images/common/back.gif
谢谢,非常不错
页:
[1]