Jump to content

Sending special char as text - (Moved)


Arabiata
 Share

Recommended Posts

1 hour ago, Arabiata said:

I've tried with flag 1 but the # won't show up.

With Notepad, this works :

#include <AutoItConstants.au3>
#include <WinAPISys.au3>
Run("notepad.exe")
Local $hWnd = WinWaitActive("[CLASS:Notepad]", "", 5)
If Not WinWaitActive($hWnd, "", 5) Then Exit MsgBox (BitOR(4096, 16),"","Error starting Notepad")

; >>> sending keys :
Local $work = "Fragmentocyta #"
Send($work, $SEND_RAW)
Sleep(2000)
WinClose($hWnd)

; to answer the "Save Question" automatically :
WinWaitActive("[CLASS:#32770]")
Sleep(500)
Send("{TAB}{ENTER}")

 

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

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...