Of course! I never would have thought that a "Gui, Add, Edit" could have a call to a subroutine. The typical OK button is not needed, with this solution.
(I don't want to open another thread to resolve the following, since part of the answer here has already been given.)
I'm working on my own script:
Code: Select all
Gui, -border -caption +toolwindow +LastFound
hI := DllCall( "LoadLibrary", Str,"RichEd20.dll" ), Gui1 := WinExist(), W:=500, H:=30
RE1 := RichE( Gui1, 5, 15, W, H, hI )
Gui, Add, Button, x350 y9 w150 h20 gRetriveText, OK
Gui, Show, URL ; w800 h640
Return
RetriveText:
Gui +OwnDialogs
ControlGetText, RET1,, ahk_id %RE1%
Return
Data entry is "drag and drop" type. How to integrate your script within this possibility, from what I see it is not possible. The button is required. Is there any other way to integrate a drag and drop into a dialog window?
Well!, I have the line
ControlGetText, RET1,, ahk_id %RE1%, maybe I can integrate it with the solution of the first post and through a
SetTimer