Jump to content

forward slash and question mark do not send


Jblz619
 Share

Recommended Posts

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

 

I know that I know nothing

Link to comment
Share on other sites

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

 

Musashi-C64.png

"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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...