But if I type in ahk and then a space it shows as not found
How do I go about finding any word even if I entered a space?
Code: Select all
#NoEnv
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
Gui Add, Edit, hWndhEdit1 x60 y44 w120 h21 vTeststring
DllCall("SendMessage", "Ptr", hEdit1, "UInt", 0x1501, "Ptr", 1, "WStr", "Search for") ; Hint text
Gui Add, Button, x183 y43 w80 h23 gTestsearch, Test
testing = ahk
Gui Show, w423 h133, Window
Return
Testsearch:
gui, submit, nohide
if instr(testing, Teststring)
MsgBox, There
else
MsgBox, Not There
return
GuiEscape:
GuiClose:
ExitApp