如何选取GUICtrlCreateEdit内的指定内容
本帖最后由 病毒专收员 于 2009-8-21 18:30 编辑#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 633, 454, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 0, 0, 625, 449)
GUICtrlSetData(-1, "我要选取那个字呢?")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
我想选取 ( 取那 ) 这两个字,我该如何操作呢? #include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <GuiEdit.au3>
$Form1 = GUICreate("Form1", 633, 454, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 0, 0, 625, 449)
GUICtrlSetData(-1, "我要选取那个字呢?")
GUISetState(@SW_SHOW)
_GUICtrlEdit_SetSel($Edit1, 3,5)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd 正解,非常感谢.!
#include
#include
#include
#Include
$Form1 = GUICreate("Form1", 633, 454, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 0, 0, 625, 449)
GUICtrlSetData(-1, "我要选取那个字呢?")
GUISetState(@ ...
大绯狼 发表于 2009-8-21 16:13 http://www.autoitx.com/images/common/back.gif
页:
[1]