Jump to content

Recommended Posts

Posted

I wrote a quick script to parse a file and print a report out to notepad. One of the descriptions in the report has a # in it, but it's not appearing in notepad! Check this out...

$sMsg = "This is the octothorpe -> #"

Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send($sMsg & @CR)

Do I have to escape it somehow or ? I've tried using the Chr() function too but still doesn't work!

Thanks!

Posted (edited)

If you want to send an octothorpe than it needs to be in brackets, try this:

$sMsg = "This is the octothorpe -> {#}"

Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send($sMsg & @CR)oÝ÷ Ø(ºWlº²Û¬xºÚ"µÍÛÛÛÙ]^
    ][ÝÕ[]YHÝY   ][ÝË  ][ÝÉ][ÝË    ][ÝÑY]I][ÝË ÌÍÜÓÙÈ    [ÈÔ
Edited by Gabburd

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
×
×
  • Create New...