0

How to set focus on next editbox? I have dialog with focused first editobx, I filled data by SendKey() function. But I don't know, how to switch to next editbox. I am using Winbatch.

Code:

Delay(3);for switch app
top = WinGetactive( )
SendKeysTo(top, "my data")

SendKeysTo(top, "{TAB}") and also ENTER doesn't work. I don't know why... Maybe using something like setFocus function. But there is only cSetFocus(), working with ID's. But IDs are generated after running dialog every time.

Jerry1
  • 249
  • The Tab key is normally used to move between fields on a dialog. – DavidPostill Jan 14 '15 at 11:11
  • sorry DavidPostill, forgot to say, that: SendKeysTo(top, "{TAB}") and also ENTER doesn't work. I don't know why... Maybe using something like setFocus function. But there is only cSetFocus(), working with ID's. But IDs are generated after running dialog every time. – Jerry1 Jan 14 '15 at 11:14
  • OK. Please [edit] the question to include the new information. – DavidPostill Jan 14 '15 at 11:19

0 Answers0