I want to make a find words function in an editwindow. After I input the words ddd and press find button the mouse will Located on the left side of bbbeeeeeeeeee. How to write the button code?
thanks a lot
Code: Select all
#SingleInstance force
fileencoding,UTF-8
SetBatchLines -1
#NoEnv
txtstr=aaaaaaa bbbeeeeeeeeee`ncccccccc ddd`neeeee`n
Gui, Add, Edit, vMyEdit r10 ,%txtstr%
gui,Add,Edit,veefindstr x1 y180 w80,
gui,Add,button,gokbtn x100 y180,Find
Gui, Show,w200 h220
Return
Okbtn:
return
GuiClose:
ExitApp
[Mod edit: Removed excessive space between text and code. Added [code][/code] tags. Please use them yourself when posting code.]