AutoHotkey Community

It is currently May 26th, 2012, 6:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: February 12th, 2009, 1:24 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2009, 10:44 am 
Quote:
I searched the scripts forum in vain
What about the AHK Help? :x

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 &pound;). In addition, the four characters "&<> are translated to &quot;&amp;&lt;&gt;. Finally, each linefeed (`n) is translated to <br>`n (i.e. <br> followed by a linefeed).


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2009, 1:59 pm 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
@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


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 13th, 2009, 3:40 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
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>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2009, 6:34 pm 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
@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:
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2009, 1:51 am 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
@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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2009, 2:31 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
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) :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2009, 3:03 am 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
@jak

Thanks for your feedback.
Enjoy k-html!

_________________
Normand Lamoureux


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Google Feedfetcher and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group