You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, huge thanks for your work! This has helped me immensely with quickly getting survey forms up in a clinical setting, filling out and pasting the resulting info.
However, one issue I am struggling with is that forms are not receiving focus after the GUI/Neutron app appears. I have to physically click the window with the Neutron app and the click tab in order for the cursor be positioned in the form (5 radio groups with 5 elements each) forcing me to use the mouse initially instead of keyboard only.
I have tried to play around with
WinActivate, neutron.ahk ; activating the window with the Neutron app
Sleep, 200
ControlClick, X170 Y170, neutron.ahk ; to send that needed click
Send, {tab} ; to get the cursor positioned
However a) it does not seem to work when code is placed within the app (as part of launching of the Neutron app) and it is also a bit brittle.
Is it possible to force focus on first form elements in a more elegant way?
The text was updated successfully, but these errors were encountered:
You actually don't even need the Send, {tab}, you can just set an id for the radio group (ex. "radio_group") and do neutron.doc.getElementById("radio_group").focus()
and you also don't need the window name in WinActivate, just give it the hWnd WinActivate, % "ahk_id " neutron.hWnd
First of all, huge thanks for your work! This has helped me immensely with quickly getting survey forms up in a clinical setting, filling out and pasting the resulting info.
However, one issue I am struggling with is that forms are not receiving focus after the GUI/Neutron app appears. I have to physically click the window with the Neutron app and the click tab in order for the cursor be positioned in the form (5 radio groups with 5 elements each) forcing me to use the mouse initially instead of keyboard only.
I have tried to play around with
WinActivate, neutron.ahk ; activating the window with the Neutron app
Sleep, 200
ControlClick, X170 Y170, neutron.ahk ; to send that needed click
Send, {tab} ; to get the cursor positioned
However a) it does not seem to work when code is placed within the app (as part of launching of the Neutron app) and it is also a bit brittle.
Is it possible to force focus on first form elements in a more elegant way?
The text was updated successfully, but these errors were encountered: