AutoHotkey Community

It is currently May 27th, 2012, 12:53 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: August 10th, 2011, 5:39 pm 
Offline
User avatar

Joined: August 9th, 2011, 6:06 pm
Posts: 24
Location: Sweden
Well topic says it all. Download the file, rename or remove your current help file, and place the new one in the same folder as AutoHotkey.exe.

http://www.autohotkey.net/~HoGmasta/BlackHelp/AutoHotkey.chm

Image

default.css

Code:
/* styles tweaked from the original AutoHotkey.chm css by budRich */

body {
   font-family: Verdana, Arial, Helvetica, sans-serif, "MS sans serif";
   font-size: 75%;
   border: 0;
   color: #EEEEEE;
   background-color: #000000;
    line-height: 145%;
}
p {
   margin-top: 0.7em;
   margin-bottom: 0.7em;
}

h1 {
   font-size: 155%;
   font-weight: normal;
   margin: 0;
    padding: 0 0 0.5em 4px;
   border-bottom-style: ridge;
    border-bottom-color: #FFFFFF;
    border-bottom-width: 2px;
}
h2 {
   font-size: 144%;
   font-weight: bold;
   font-family: Arial, Helvetica, sans-serif, "MS sans serif";
   background-color: #405871;
   color: #FFFFFF;
   margin: 1.5em 0 0.5em 0;
   padding: 0.1em 0 0.1em 0.2em;
}
h3 {
   font-size: 111%;
   font-weight: bold;
   background-color: #222222;
   margin: 1.0em 0 0.5em 0;
   padding: 0.1em 0 0.1em 0.2em;
   border-top: 1px solid silver;
   border-bottom: 1px solid silver;
}
h4 {
    font-size: 100%;
    margin: 0.7em 0;
    border-bottom: 1px solid lightgrey;
}

ul, ol {margin-top: 0.7em; margin-bottom: 0.7em;}
li {margin-top: 0.2em; margin-bottom: 0.2em; margin-left: -0.75em;}

a {text-decoration: none;}
a:link, a:active {color: #FFE000;}
a:visited {color: #DDC000;}
a:hover {text-decoration: underline; color: #FFE555;}

.Indent {
    margin-left: 2em;
}
.NoIndent {
   margin-left: 0;
   margin-right: 0;
}

/* pre: code blocks, code: inline code, .Syntax: syntax definition (block/pre or inline/span) */
pre, code, .Syntax {
   font-family: Consolas, Courier New, monospace;
}
pre, code { background-color: #111111; border: solid 1px #E3E3EF; }
.Syntax   { background-color: #222222; border: solid 1px #E8E89A; }
code, span.Syntax { padding: 0 1px; }
pre {
    margin: 0.7em 1.5em 0.7em 1.5em;
    padding: 0.7em 0 0.7em 0.7em;
    white-space: pre-wrap; /* works in IE8 but apparently not CHM viewer */
    word-wrap: break-word; /* works in CHM viewer */
}
pre.Syntax {
    margin: 0 0 1.0em 0;
    padding: 12px 0 12px 4px;
    line-height: 150%;
}
pre, pre.Short /*used with .Syntax*/ { line-height: 120%; }
/* comments */
pre em, code em { color: #008000; font-style: normal; }


/* table of command parameters */
table.info {
    border: solid 2px #C0C0C0;
    border-collapse: collapse;
    width: 100%;
    /*table-layout: fixed;*/
}
table.info td {
    border: solid 2px #C0C0C0;
    padding: 0.3em;
}
table.info th {
    background-color: #222222;
   padding: 0.3em;
}

/* version number/requirement tag */
h1 .ver, h2 .ver, h3 .ver {font-size: 65%; font-weight: normal; margin-left: 1em; vertical-align: top}
h2 .ver {color: lightgray; font-size: 80%;}
.ver,
/* de-emphasized */
.dull {color: gray;}
.red {color: red;} /* used for highlight in various places */
.blue {color: blue;}
/* emphasized note */
.note {border: 1px solid #99BB99; background-color: #E6FFE6;
   color: #005500; padding: 0 3px; }

/* styles for briefly documenting multiple methods on one page: */
.methodShort {
    border: solid thin #C0C0C0;
    padding: 0.5em;
    margin-bottom: 1em;
}
.methodShort h2 { margin-top: 0; }
.methodShort table.info { border: none; }
.methodShort table.info td {
    border: none;
    vertical-align: text-top;
}
.methodShort:target { /* non-essential, but helpful if it works */
    border-color: black;
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2011, 6:31 pm 
Offline

Joined: March 28th, 2010, 1:32 am
Posts: 681
Location: United States
I like it, but there's already a v1.1.02.00 help file released. :roll:

lulz


Report this post
Top
 Profile  
Reply with quote  
PostPosted: August 11th, 2011, 1:19 am 
I like the Black, don't like the Yellow...& for God's sake it spelled AutoHotkey!!! (lowercase k)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2011, 2:28 pm 
Offline
User avatar

Joined: August 9th, 2011, 6:06 pm
Posts: 24
Location: Sweden
Guest: Maybe i update this thread some day with a tutorial on how to change the css in a chm, it's a bit tricky. But once you know its easy to change the colors. And thanks. :oops:

Weston: Damn, I had totally missed that, i'll update this to the latest version soon. Thanks for pointing it out.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2011, 12:10 am 
budRich wrote:
Guest: Maybe i update this thread some day with a tutorial on how to change the css in a chm...

...I've been meaning to test if chm files can have cookies...then you can have a link/config page in the chm to set the colors, save them in a cookie & auto-load them on page load. I just don't know if chm files can have cookies.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2011, 7:42 am 
Offline
User avatar

Joined: August 9th, 2011, 6:06 pm
Posts: 24
Location: Sweden
Guest: A settings page, or at least a theme switcher would be awesome. I used HTML Help Workshop to compile/decompile the chm, its free from our friends at Microsoft. Try that and let us know what you find out.

I see a possibility where html based settings gui and help is in the same file. You could read the cookies with ahk and apply the values to vars in your scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2011, 9:19 am 
I still need to fully test it more, but I think cookies-in-a-chm are out (they would only stick until I closed the help window {even with "expires" set}). I think the next-best-thing (& possibly easier to write) would be an "AutoHotkey.css" or "AutoHotkey.chm.css" file outside the chm, but have the files inside the chm try to link to it, somehow.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2011, 8:27 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1718
Location: Somewhere near you
Easter Egg wrote:
Wintitle = AHK Hjälpen

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 14th, 2011, 7:31 pm 
Offline
User avatar

Joined: August 9th, 2011, 6:06 pm
Posts: 24
Location: Sweden
Guest: Loading an external css file, hope it works. Keep on testing.

tomoe_uehara: Oops.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: downloading files
PostPosted: September 5th, 2011, 5:59 am 
Offline

Joined: September 5th, 2011, 12:33 am
Posts: 3
Location: United States
If not being able to find the location to download the editor for the AHK scripts and not being able to read the small font in the help file means I'm not smart enough to use this ... OK ... because I don't see any messages from other newbies that are having a problem.

I find AHK to be amazing so far but I'm stuck .


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: downloading files
PostPosted: September 5th, 2011, 1:28 pm 
benvhoff wrote:
...download the editor for the AHK scripts...

...there is no specific "editor for AHK scripts"...Notepad or any other "text editor" will work.

I recommend Notepad2...just because it's better than Windows Notepad, but it don't have specific AutoHotkey support. However, this version does: Notepad2-mod (but I have not tried that version yet). By "AutoHotkey support" I just mean "syntax highlighting", you don't need "AutoHotkey support" for any "text editor" to be able to write scripts.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 27 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