AutoitMike Posted March 26, 2011 Posted March 26, 2011 I have noticed that the text in a form(using AutoInfo.exe) has the text for the window titlebar. Spaces are represented by %20, an apostrophe is %27, a slash is _xF8FF_. Is there a list anywhere of all values used? Thanks
funkey Posted March 26, 2011 Posted March 26, 2011 You can find an ASCII table everywhere, even in the AutoIt documentation. http://www.autoitscript.com/autoit3/docs/appendix/ascii.htmBut I don't know why this should be a slash: _xF8FF_ ???? Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning.
GEOSoft Posted March 26, 2011 Posted March 26, 2011 (edited) Generally speaking you can convert them by replacing the % with 0x00 In fact here is a simple RegEx Replace that would do it. $sStr = "%20 %27 %FC" $sStr = StringRegExpReplace($sStr, "%([[:xdigit:]]+)", "0x00$1") Also take a look in the help file for Opt("WinTitleMatchMode") and Opt("WinTextMode") And another EDIT: Here is yet another example $sStr = "%2b" $sStr = StringRegExpReplace($sStr, "%([[:xdigit:]]+)", "0x00$1") MsgBox(0, "TEST", ChrW($sStr)) Edited March 26, 2011 by GEOSoft George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
AutoitMike Posted March 28, 2011 Author Posted March 28, 2011 What I actually meant was, what characters are represented by a "Percent {something}" or the "Underscore" process. The slash and white spaces I can understand cant be in something that probably refers to a path or is in a path. but are there other characters that I can expect to see in a window title bar that are characters that can be easily typed on the keyboard but Substituted with % something or hex values in the form of _xxxx_ Thanks
GEOSoft Posted March 28, 2011 Posted March 28, 2011 If you are talking about what characters may appear in the title bar of a browser then you are talking about "HTML Entities". See this page for details.Should you require it; I have a function for converting the entities to plain text. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
jvanegmond Posted March 28, 2011 Posted March 28, 2011 Actually, %20 is percent encoding OR also URL encoding: http://en.wikipedia.org/wiki/Percent-encoding & http://www.w3schools.com/TAGS/ref_urlencode.asp _xF8FF_ can mean various things, read here: http://en.wikipedia.org/wiki/U%2BF8FF but the way it should be written is %uF8FF and not _xF8FF_ . I found some usage of converting \ to _xF8FF_ but can't find where it came from. Here is an example: http://www.msexchange.org/tutorials/Migrating_POP3_SMTP_Servers_M_Drive.html contains S = Replace (S,"/","_xf8ff_") github.com/jvanegmond
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