Jblz619 Posted October 28, 2023 Share Posted October 28, 2023 Forward slash and question mark do not work with controlsend. Link to comment Share on other sites More sharing options...
ioa747 Posted October 28, 2023 Share Posted October 28, 2023 where does this conclusion come from? It seems that it works for me Example() Func Example() ; Run Notepad Run("notepad.exe") Local $hWnd = WinWait("[CLASS:Notepad]", "", 10) Local $hControl = ControlGetHandle($hWnd, "", "Edit1") ControlSend($hWnd, "", $hControl, "This \ is ok" & @CR) ControlSend($hWnd, "", $hControl, "and this / is ok" & @CR) ControlSend($hWnd, "", $hControl, "and this ? is ok" & @CR) EndFunc ;==>Example Jblz619 1 I know that I know nothing Link to comment Share on other sites More sharing options...
Jblz619 Posted October 28, 2023 Author Share Posted October 28, 2023 yes maybe in notepad its working for me as well but not working for my java application Link to comment Share on other sites More sharing options...
Musashi Posted October 28, 2023 Share Posted October 28, 2023 Does it make a difference if you send the corresponding ASCII codes ? Example() Func Example() Run("notepad.exe") Local $hWnd = WinWait("[CLASS:Notepad]", "", 10) Local $hControl = ControlGetHandle($hWnd, "", "Edit1") ControlSend($hWnd, "", $hControl, "This " & Chr(92) & " is ok" & @CR) ; \ ControlSend($hWnd, "", $hControl, "This " & Chr(47) & " is ok" & @CR) ; / ControlSend($hWnd, "", $hControl, "This " & Chr(63) & " is ok" & @CR) ; ? EndFunc ;==>Example "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
Jblz619 Posted October 28, 2023 Author Share Posted October 28, 2023 11 hours ago, Musashi said: Does it make a difference if you send the corresponding ASCII codes ? Example() Func Example() Run("notepad.exe") Local $hWnd = WinWait("[CLASS:Notepad]", "", 10) Local $hControl = ControlGetHandle($hWnd, "", "Edit1") ControlSend($hWnd, "", $hControl, "This " & Chr(92) & " is ok" & @CR) ; \ ControlSend($hWnd, "", $hControl, "This " & Chr(47) & " is ok" & @CR) ; / ControlSend($hWnd, "", $hControl, "This " & Chr(63) & " is ok" & @CR) ; ? EndFunc ;==>Example I tried this already as well no it doesn't work. I've also tried winapi_post_message and _sendmessage niether can send foward slash but all other char keys work. Normal send does work to send the forward slashes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now