Jump to content

Wierd Character


Recommended Posts

Hi,

Each time i try to WinGetText from Windows Messenger service, all works well except that when I capture the message and FileWriteLine to a text file, I get a weird character at the end of each capture. a funny looking small rectangle shape appears. i believe this is a "ENTER" cos when I directly copy and paste into a new notepad, it creates a line spacing in between the original lines.

can someone enlighten me as to how i can avoid this "ENTER"? Or maybe use String functions to remove this char?

thanks.

mouse not found....scroll any mouse to continue.

Link to comment
Share on other sites

  • Moderators

Hi,

Each time i try to WinGetText from Windows Messenger service, all works well except that when I capture the message and FileWriteLine to a text file, I get a weird character at the end of each capture. a funny looking small rectangle shape appears. i believe this is a "ENTER" cos when I directly copy and paste into a new notepad, it creates a line spacing in between the original lines.

can someone enlighten me as to how i can avoid this "ENTER"? Or maybe use String functions to remove this char?

thanks.

Local $sString = StringStripCR(WinGetText('Whatever title'))
FileWriteLine(FileLocation, $sString)oÝ÷ ØêÚºÚ"µÍØØ[ ÌÍÜÔÝ[ÈHÚ[Ù]^
    ÌÎNÕÚ]]]IÌÎNÊK   ÌÍÜÒÛØØ[ ÌÍÜÔÝ[ÈHÝ[ÔÜ]
Ý[ÔÝÔ   ÌÍÜÔÝ[ÊKBÜ   ÌÍÚPÐÈHHÈ ÌÍÜÔÝ[ÖÌBY   ÌÍÜÔÝ[ÖÉÌÍÚPÐ×H ÉÝÈ  ÌÎNÉÌÎNÈ[ ÌÍÜÒÛ  [ÏH    ÌÍÜÔÝ[ÖÉÌÍÚPÐ×B^[UÜ]J[SØØ][Û    ÌÍÜÔÝ[ÊoÝ÷ ØêÚºÚ"µÍÌÍÜÔÝ[ÈHÚ[Ù]^
    ÌÎNÕÚ]]]IÌÎNÊBÜ ÌÍÚPÐÈHHÈÌB  ÌÍÜÔÝ[ÈHÝ[ÔXÙJ ÌÍÜÔÝ[ËÚ ÌÍÚPÐÊK    ÌÎNÉÌÎNÊB^[]J[SØØ][Û    ÌÍÜÔÝ[Ê
I could keep going on and on lol.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

thanks SmOke_N.

well, your first eg looks easy and simple to understand. i will take tat.

will try to understand your other 2 advanced scripts some other time.

once again, thanks.

mouse not found....scroll any mouse to continue.

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