Hi Catventure,
as usual, I have only "dirty" solution, but it works
The trick is following:
Add to the dialog button, positioned at location, which cannot be viewed
%MY_SECRET_BUTTON
CONTROL ADD BUTTON, hDlg, %MY_SECRET_BUTTON, "", 10000, 10000, 20, 20, %BS_DEFAULT
... the %BS_DEFAULT makes ENTER to automatically click it
In the windows message checking routine just add this :
CASE %WM_COMMAND
'Alternative try to get player input with <return> press
SELECT CASE wParam
CASE %MY_SECRET_BUTTON
'---If player hits <RETURN> get text and clear input textbox
IF GetAsyncKeyState(%VK_RETURN) <> 0 THEN
CONTROL GET TEXT hDlg,%ID_TEXTBOX TO tempstr
CONTROL SET TEXT hDlg,%ID_RICHEDIT,""
CONTROL SET TEXT hDlg,%ID_TEXTBOX,""
CONTROL SET TEXT hDlg,%ID_RICHEDIT," You typed: " & tempstr
END IF
END SELECT
And the program starts to work !
Bye,
Psch
Bookmarks