| View previous topic :: View next topic |
| Author |
Message |
jak
Joined: 28 Feb 2006 Posts: 159
|
Posted: Thu Feb 12, 2009 12:24 am Post subject: ahk text-to-html parser - it *must* exist? |
|
|
I searched the scripts forum in vain. I refuse to believe no one has done this yet.
Where you type hotstring or hotkey shortcuts for common html tags. (I'm actually looking for bbc tags, but I didnt find those either).
Surely my search keywords were wrong. Please help me out.
Isnt there something like this that people have already written in ahk?
(I tried k-html, the only one i found, and it absolutely did not work, variety of errors and most of documentation in french which i cant read). So my need remains... I also tried one written by adam pash at lifehacker (blogging.exe and blogging.ahk), problem there is its from 2006 and the links for the ahk file there dont work. So my need remains...
Thanks! |
|
| Back to top |
|
 |
BoBo³ Guest
|
Posted: Thu Feb 12, 2009 9:44 am Post subject: |
|
|
| Quote: | | I searched the scripts forum in vain | What about the AHK Help?
| Quote: | Transform
--------------------------------------------------------------------------------
Performs miscellaneous math functions, bitwise operations, and tasks such as ASCII/Unicode conversion.
Transform, OutputVar, Cmd, Value1 [, Value2]
[...]
Asc, String: Retrieves the ASCII code (a number between 1 and 255) for the first character in String. If String is empty, OutputVar will also be made empty. For example: Transform, OutputVar, Asc, %VarContainingString%. Corresponding function: Asc(String).
Chr, Value1: Retrieves the single character corresponding to the ASCII code indicated by Value1. If Value1 is not between 1 and 255 inclusive, OutputVar will be made blank to indicate the problem. For example: Transform, OutputVar, Chr, 130. Corresponding function: Chr(Number).
[...]
HTML, String: Converts String into its HTML equivalent by translating characters whose ASCII values are above 127 to their HTML names (e.g. £ becomes £). In addition, the four characters "&<> are translated to "&<>. Finally, each linefeed (`n) is translated to <br>`n (i.e. <br> followed by a linefeed). |
|
|
| Back to top |
|
 |
Normand
Joined: 21 May 2007 Posts: 85
|
Posted: Fri Feb 13, 2009 12:59 pm Post subject: |
|
|
@jak
Which version of k-html did you tried?
The last one (4.2.1) fix the problem with Vista.
Now, it works. At least for me. _________________ Normand Lamoureux |
|
| Back to top |
|
 |
soggos
Joined: 27 Mar 2008 Posts: 129 Location: France
|
Posted: Fri Feb 13, 2009 2:40 pm Post subject: i don't understand how to record the clipBoard with the htm |
|
|
hello, i have see help, but i try to recording a clipboard with <html> balise
| Code: |
; in my browser html
send ^c
Transform , OutputVar, HTML, %clipboard%
FileAppend , %OutputVar%, %NomNouveau%.html |
but the files is in pure Texte! i don't understand how to record the clipBoard with the html code...
¿ Who can me give little help ¿ _________________ with ahk, all is different!...<img> |
|
| Back to top |
|
 |
jak
Joined: 28 Feb 2006 Posts: 159
|
Posted: Fri Feb 13, 2009 5:34 pm Post subject: |
|
|
@bobo - I dont mean html values, I mean hotstrings that produce html code tags. For instance, typing in ".bold" to produce "<b></b>". Like that for all the common html tags (which with things like href can get a bit more complex and will go beyond merely hotstrings). I would have thought that someone would have written up a comprehense html tag shortcuts ahk file by now.
@normand, I tried the latest one from the website (same one that you gave the link to). I have winxp. I'm getting the following error:
 |
|
| Back to top |
|
 |
Normand
Joined: 21 May 2007 Posts: 85
|
Posted: Sat Feb 14, 2009 12:51 am Post subject: |
|
|
@jak
The problem occured with the English version only. My apologize.
A new fixed English version is now available.
Same link as previous post, but new file to download.
(Since the file has the same name and the same weight, clear your browser cache memory before downloading.)
To make the kind of replacement you are looking for:
1. Install k-html.
2. Press Windows + H.
3. Type .bold, press Tab, type <b></b>{left 4}, and press OK button.
After that, you just have to type .bold in any editing zone to get <b>|</b>. _________________ Normand Lamoureux |
|
| Back to top |
|
 |
jak
Joined: 28 Feb 2006 Posts: 159
|
Posted: Sat Feb 14, 2009 1:31 am Post subject: |
|
|
thanks much
I'll try it out. I'll post if I have any issues.
by the way this is an *immensely* helpful script and I'm genuinely surprised there arent more versions of this type of thing on these forums (and out there in general)  |
|
| Back to top |
|
 |
Normand
Joined: 21 May 2007 Posts: 85
|
Posted: Sat Feb 14, 2009 2:03 am Post subject: |
|
|
@jak
Thanks for your feedback.
Enjoy k-html! _________________ Normand Lamoureux |
|
| Back to top |
|
 |
|