Jump to content
Sign in to follow this  
AZJIO

Offers for the help file compiler

Recommended Posts

AZJIO

1. Need to do so that the compiler was multilingual. All texts were inserted at the beginning of the script. For translators it simplifies updating of scripts. It isn't required to look for automatic change of texts again.
2. Need to do to be able to change the compilation settings, or in the GUI, or via the com-line

3. Need to make to the color theme can be changed to black. About 20% are using a black theme to eyes do not get tired. Allow the user to provide information in the form in which it wants to see it.

4. Need to do so that the compiler was as the independent program. That any beginner could use. It will give the chance to those who want to translate the help file to start it doing.

Compilation options which can be added in GUI:
1. Color of syntax.
2. Color in the description
3. Links in examples
4. Links in the description
5. Choosing a theme

Edited by AZJIO

Share this post


Link to post
Share on other sites
FireFox

3. Need to make to the color theme can be changed to black. About 20% are using a black theme to eyes do not get tired. Allow the user to provide information in the form in which it wants to see it.

Not a good idea, you will kill your eyes trying to read what's on the screen. Use light tools like f.lux instead.

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
AZJIO

I used the manual set profiles for monitor. It does not help me.

After 6 hours of work, I noticed fatigue in eyes. When I changed to the black theme, I was mentally tired, even before the tired eyes. I mean, I could spend 18 hours at the computer. I'm used to the black theme for 2 days

Share this post


Link to post
Share on other sites
FireFox

It does not do the same thing as the profiles monitor do.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
AZJIO

I adjusted not the monitor, I adjusted the videocard. With the help of hot keys switched profile

Edited by AZJIO

Share this post


Link to post
Share on other sites
MHz

On item 3. If that is about changing the CSS attributes of the chm styles then the try the conditionalchm download here. Ignore the name and info stuff and just click the button to download the zip file. You will find that changing the external CSS files supplied changes the text color in the chm file. The text color changes from green to red. It looks like javascript handles the external CSS path. This seems like a nice idea to customize a chm file for personal use.

Share this post


Link to post
Share on other sites
AZJIO

MHz
Thanks. I long looked for a similar way

Browser is also possible to switch a global style. Opera is supported by a global CSS

C:Program FilesOperastylesuser.css

body, div, span, p, table, H1, H2, H3, H4, pre
{
    color:#999999;
    background-color:#303030;
    font-family: Arial, Verdana, 'Segoe UI', 'Lucida Grande', Helvetica, 'MS sans serif';
}

Share this post


Link to post
Share on other sites
MHz

AZJIO,

Tried that CSS code in IE. Thankyou, It looks interesting. All text in code boxes is grey. It is rather consistent.

Tried in Firefox and experienced some background color missed in the code boxes so extra CSS code is needed to complete it.

In both browsers, I experienced issues with seeing popup images.

Global CSS files exist with both of these browsers. For IE, Internet Options -> Accessibility -> User Style Sheet. For Firefox, %APPDATA%MozillaFirefoxProfilesxxxxxxx.defaultchromeuserContent.css

I use Stylish extension which can do by website url and can also do global. It is available for Firefox, Chrome and Opera. Stylish can update the CSS with out needing to restart the browser, disable it, etc. IMO, it is quite good.

Here is a default light theme with some of the AutoIt code colors changed that I use in Firefox using Stylish. Perhaps not a great theme but what I use at the moment.

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("autoitscript.com") {

.autoit{
    font-family:Consolas,'Courier New',Courier,'Nimbus Mono L',monospace;
    font-size:12px !important;
    background-color:#f8f8f8;
    /*background-color:#F6FAFF !important;*/
    color:#000;
    line-height:110%;
}

.autoit .de1, .autoit
.de2{
    font-weight:normal;
    background:transparent;
    color:#000;
}

/* Variables */
.autoit
.re0{
    color:#AA2727 !important;
}

.autoit
.re1{
    color:#5A5A5A;
}

/* Keywords */
.autoit
.kw1{
    color:#00F;
}

/* Macros */
.autoit
.kw2{
    color:#AC00A9 !important;
}

/* Functions */
.autoit
.kw3{
    color:#000090 !important;
}

/* Standard UDFs */
.autoit
.kw4{
    color:#000090 !important;
}

/* Directives */
.autoit
.kw5{
    color:#AC00A9 !important;
}

/* Special e.g. #Region */
.autoit
.kw6{
    color:#DC143C;
}

/* ? */
.autoit
.kw7{
    color:#5A5A5A;
}

/* <Text> (directives) */
.autoit
.co0{
    /*color:#F00;
    font-style:italic;*/
    color:#626288 !important;
    font-style:normal !important;
}

/* Comment text starting with semicolon*/
.autoit
.co1{
    /*color:#008000;
    font-style:italic;*/
    color:#626288 !important;
    font-style:italic !important;
}

/* ? */
.autoit
.co2{
    color:#008000;
    font-style:italic;
}

/* ? */
.autoit
.coMULTI{
    color:#008000;
    font-style:italic;
}

/* ? */
.autoit
.coREGEXP{
    color:#008000;
    font-style:italic;
}

/* Braces */
.autoit
.br0{
    color:#00F !important;
}

/* Text strings */
.autoit
.st0{
    color:#626288 !important;
}

/* Numbers */
.autoit
.nu0{
    color:#AC00A9 !important;
}

/* COM Variable */
.autoit
.me1{
    color:#F00;
    color:#550000 !important;
}

/* Operaters */
.autoit
.sy0{
    color:#00F !important;
}

/* Underscore */
.autoit
.sy1{
}

.autoit
.li1{
}

.autoit
ol{
    line-height:67%;
}

}

The problem with CHM files is that they are self contained. The IE global CSS file seems to do nothing to CHM files. That is why I posted about the conditionalchm example.

Share this post


Link to post
Share on other sites
AZJIO

I replaced the line:
<link href="css/default.css" rel="stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="../css/default.css">
<link href="../../css/default.css" rel="stylesheet" type="text/css">

<script language="javascript" src="css/style.js" type="text/javascript"></script>
<script language="javascript" src="../css/style.js" type="text/javascript"></script>
<script language="javascript" src="../../css/style.js" type="text/javascript"></script>

test.js -> style.js (replace "test.css" to "default.css")
test.css -> default.css

Did a search default.css, to determine the row in which the order of parameters differs.
There is a problem: The images do not match the color.

I did for Russian help file, since I already have 2 themes, you can try AutoItHelp.7z

Share this post


Link to post
Share on other sites
MHz

I can see by the View Source option of how you have included the javascript code. I see that you chose not to embed a stylesheet and just use external stylesheet which is OK. I have viewed the 2 CSS files in WinMerge and see the differences. The 2 CSS files seem to work good when viewing the CHM. I do not understand the problem with the images that you have mentioned. So much to look at in the CHM file for me to know what the actual problem is.

Share this post


Link to post
Share on other sites
AZJIO

MHz

1.Take a look here.

2. The problem is that if the black theme, the images should not be white. 

Share this post


Link to post
Share on other sites
MHz

With using the black theme, I see the "Open this Script" link has a white background. The "Copy to clipboard" link is black. Is that the problem?

Share this post


Link to post
Share on other sites
AZJIO

I did not find the option to change. I would have made icons (24x24). It is easier to perceive an icon, than the text.

Share this post


Link to post
Share on other sites
MHz

I have a simple solution. Remove the problem object. Is "Open this script" needed any more when "Copy to clipboard" now exists? This also reduces the size of the installer and the au3 examples are no longer needed. I do not install the au3 examples as it just clogs up the master file table on the drive. The au3 examples can go the same way the UDF headers went.

James, themes are also a Windows convention. lmao.

Share this post


Link to post
Share on other sites
AZJIO

MHz

Is "Open this script" needed any more when "Copy to clipboard" now exists?

I benefited from this. This button calls "Open" in registry. If the update entries in the registry, you can configure so that this command starts an example from the help file.

Only path to fix

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Open]
@="Run the script"

[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Open\Command]
@="\"C:\\AutoIt3\\AutoIt3.exe\" \"%1\" %*"

[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Run]
@="Open in SciTE"

[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Run\Command]
@="\"C:\\AutoIt3\\SciTE\\SciTE.exe\" \"%1\""

[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Edit]
@="Open in Notepad++"

[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Edit\Command]
@="\"C:\\AutoIt3\\Notepad++\\notepad++.exe\" \"%1\""

[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\AutoIt3Wrapper]
@="Compilation with AutoIt3Wrapper"

[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\AutoIt3Wrapper\Command]
@="\"C:\\AutoIt3\\SciTE\\AutoIt3Wrapper\\AutoIt3Wrapper.exe\" /in \"%l\""

[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Tidy]
@="Tidy"

[HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Tidy\Command]
@="\"C:\\AutoIt3\\SciTE\\Tidy\\Tidy.exe\" \"%1\""

Share this post


Link to post
Share on other sites
guinness

I don't like the suggestion of removing 'Open this Script'.


UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Share this post


Link to post
Share on other sites
FireFox

Is "Open this script" needed any more when "Copy to clipboard" now exists?

It's faster to open and run the script if you want to check the example without any edit. Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
mLipok

I don't like the suggestion of removing 'Open this Script'.

 

It's faster to open and run the script if you want to check the example without any edit.

 

I agree with previous speakers


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-03-17

Share this post


Link to post
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
Sign in to follow this  

×