Archiv der Kategorie: Programmieren

Benutzer definierte Abkürzungen

Benutzer definierte Abkürzungen

Infos: http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/abbrev-manager.html

Man kann im SciteEditor4Autoit Abkürzungen definieren, die beim Schreiben viel Zeit sparen können.

z.B.:

man tippt mb<Leertaste> und es wird "MessageBox()" angezeigt, wobei der Cursor zwischen den Klammern steht.

Den AbkürzungsEditor erreicht mann über das Menü im SciteEditor:
Tools – Scite Config (Ctrl + 1) – Other Tools – Run Abbrev Manager


http://landesk14.de.flg.int:1234/wiki/files/global/SciteAbk_1.jpg


http://landesk14.de.flg.int:1234/wiki/files/global/SciteAbk_2.jpg

Um neue Abkürzungen zu erstellen, schreibt man die Abkürzung (kleine Buchstaben) in das Eingabefeld und klickt den "Create" Button.
In der neuen Eingabe gibt man nun die Zeichen ein, die später in den Editor eingefügt werden sollen.
Um den Cursor an einer bestimmten Stelle zu plazieren, fügt man dort einen senkrechten Strich | ein.

Mit Save werden die Einstellungen übernommen und können sofort genutzt werden.

Viele Abkürzungen sind schon im System vorhanden: Abk. Liste

TIDY

TIDY

Your can run Tidy in 3 ways:

  1. Run it from within SciTE by pressing "Ctrl" + "T".
  2. Just start the program Tidy.exe and you will be prompted for the filename.
  3. Right Mouse Click on your AU3 script and select Tidy.
This is only available when you have used the SciTE4AutoIt3 installer.


When Tidy is run without any parameter you will be prompted for the input file.

Compiler Anweisungen

Compiler Anweisungen

#Region AutoIt3Wrapper directives section
;** This is a list of compiler directives used by AutoIt3Wrapper.exe.
;** comment the lines you don't need or else it will override the default settings
;===============================================================================================================
;** AUTOIT3 settings
#AutoIt3Wrapper_UseX64= ;(Y/N) Use X64 versions for AutoIt3_x64 or AUT2EXE_x64. Default=N
#AutoIt3Wrapper_Version= ;(B/P) Use Beta or Production for AutoIt3 and AUT2EXE. Default is P
#AutoIt3Wrapper_Run_Debug_Mode= ;(Y/N) Run Script with console debugging. Default=N
#AutoIt3Wrapper_Run_SciTE_Minimized= ;(Y/N) Minimize SciTE while script is running. Default=n
#AutoIt3Wrapper_Run_SciTE_OutputPane_Minimized= ;(Y/N) Toggle SciTE output pane at run time so its not shown. Default=n
#AutoIt3Wrapper_Autoit3Dir= ;Optionally override the base AutoIt3 install directory.
#AutoIt3Wrapper_Aut2exe= ;Optionally override the Aut2exe.exe to use for this script
#AutoIt3Wrapper_AutoIt3= ;Optionally override the Autoit3.exe to use for this script
;===============================================================================================================
;** AUT2EXE settings
#AutoIt3Wrapper_Icon= ;Filename of the Ico file to use
#AutoIt3Wrapper_OutFile= ;Target exe/a3x filename.
#AutoIt3Wrapper_OutFile_Type= ;a3x=small AutoIt3 file; exe=Standalone executable (Default)
#AutoIt3Wrapper_OutFile_X64= ;Target exe filename for X64 compile.
#AutoIt3Wrapper_Compression= ;Compression parameter 0-4 0=Low 2=normal 4=High. Default=2
#AutoIt3Wrapper_UseUpx= ;(Y/N) Compress output program. Default=Y
#AutoIt3Wrapper_UPX_Parameters= ;Override the default setting for UPX.
#AutoIt3Wrapper_Change2CUI= ;(Y/N) Change output program to CUI in stead of GUI. Default=N
#AutoIt3Wrapper_Compile_both= ;(Y/N) Compile both X86 and X64 in one run. Default=N
;===============================================================================================================
;** Target program Resource info
#AutoIt3Wrapper_Res_Comment= ;Comment field
#AutoIt3Wrapper_Res_Description= ;Description field
#AutoIt3Wrapper_Res_Fileversion= ;File Version
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement= ;(Y/N/P) AutoIncrement FileVersion After Aut2EXE is finished. default=N
; P=Prompt, Will ask at Compilation time if you want to increase the versionnumber
#AutoIt3Wrapper_Res_ProductVersion= ;Product Version. Default is the AutoIt3 version used.
#AutoIt3Wrapper_Res_Language= ;Resource Language code . default 2057=English (United Kingdom)
#AutoIt3Wrapper_Res_Language=1031 ;Resource Language code . 1031=Deutsch (Standard)
#AutoIt3Wrapper_Res_LegalCopyright= ;Copyright field
#AutoIt3Wrapper_res_requestedExecutionLevel= ;None, asInvoker, highestAvailable or requireAdministrator (default=None)
#AutoIt3Wrapper_res_Compatibility= ;Vista,Windows7 Both allowed separated by a comma (default=None)
#AutoIt3Wrapper_Res_SaveSource= ;(Y/N) Save a copy of the Scriptsource in the EXE resources. default=N
; If _Res_SaveSource=Y the content of Scriptsource depends on the _Run_Obfuscator and #obfuscator_parameters directives:
;
; If _Run_Obfuscator=Y then
; If #obfuscator_parameters=/STRIPONLY then Scriptsource is stripped script & stripped includes
; If #obfuscator_parameters=/STRIPONLYINCLUDES then Scriptsource is original script & stripped includes
; With any other parameters, the SaveSource directive is ignored as obfuscation is intended to protect the source
; If _Run_Obfuscator=N or is not set then
; Scriptsource is original script only
; Autoit3Wrapper indicates the SaveSource action taken in the SciTE console during compilation
; See SciTE4AutoIt3 Helpfile for more detail on Obfuscator parameters
;
;
; free form resource fields … max 15
; you can use the following variables:
; %AutoItVer% which will be replaced with the version of AutoIt3
; %date% = PC date in short date format
; %longdate% = PC date in long date format
; %time% = PC timeformat
; eg: #AutoIt3Wrapper_Res_Field=AutoIt Version|%AutoItVer%
#AutoIt3Wrapper_Res_Field= ;Free format fieldname|fieldvalue
#AutoIt3Wrapper_Res_Field= ;Free format fieldname|fieldvalue
#AutoIt3Wrapper_Res_Field= ;Free format fieldname|fieldvalue
; Add extra ICO files to the resources which can be used with TraySetIcon(@ScriptFullPath, 5) etc
; list of filename of the Ico files to be added, First one will have number 5, then 6 ..etc
#AutoIt3Wrapper_Res_Icon_Add= ; Filename[,LanguageCode] of ICO to be added.
#AutoIt3Wrapper_Res_Icon_Add= ; Filename[,LanguageCode] of ICO to be added.
; Add extra files to the resources
#AutoIt3Wrapper_Res_File_Add= ; Filename[,Section [,ResName[,LanguageCode]]] to be added.
#AutoIt3Wrapper_Res_File_Add= ; Filename[,Section [,ResName[,LanguageCode]]] to be added.
;===============================================================================================================
; Tidy Settings
#AutoIt3Wrapper_Run_Tidy= ;(Y/N) Run Tidy before compilation. default=N
#AutoIt3Wrapper_Tidy_Stop_OnError= ;(Y/N) Continue when only Warnings. default=Y
#Tidy_Parameters= ;Tidy Parameters…see SciTE4AutoIt3 Helpfile for options
;===============================================================================================================
; Obfuscator
#AutoIt3Wrapper_Run_Obfuscator= ;(Y/N) Run Obfuscator before compilation. default=N
#obfuscator_parameters=
;===============================================================================================================
; AU3Check settings
#AutoIt3Wrapper_Run_AU3Check= ;(Y/N) Run au3check before compilation. Default=Y
#AutoIt3Wrapper_AU3Check_Parameters= ;Au3Check parameters
#AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 ;Au3Check parameters
Possible Parameters:

-q : quiet (only error/warn output)
-d : as Opt("MustDeclareVars", 1)
-I dir : additional directories for searching include files
-U -|file : output unreferenced UDFs and global variables
-w 1 : already included file (on)
-w 2 : missing #comments-end (on)
-w 3 : already declared var (off)
-w 4 : local var used in global scope (off)
-w 5 : local var declared but not used (off)
-w 6 : warn when using Dim (off)
-v 1 : show include paths/files (off)
-v 2 : show lexer tokens (off)


#AutoIt3Wrapper_AU3Check_Stop_OnWarning= ;(Y/N) N=Continue on Warnings.(Default) Y=Always stop on Warnings
#AutoIt3Wrapper_PlugIn_Funcs= ;Define PlugIn function names separated by a Comma to avoid AU3Check errors
;===============================================================================================================
; cvsWrapper settings
#AutoIt3Wrapper_Run_cvsWrapper= ;(Y/N/V) Run cvsWrapper to update the script source. default=N
; V=only when version is increased by #AutoIt3Wrapper_Res_FileVersion_AutoIncrement.
#AutoIt3Wrapper_cvsWrapper_Parameters= ; /NoPrompt : Will skip the cvsComments prompt
; /Comments : Text to added in the cvsComments. It can also contain the below variables.
;===============================================================================================================
; RUN BEFORE AND AFTER definitions
; The following directives can contain: these variables
; %in%, %out%, %outx64%, %icon% which will be replaced by the fullpath\filename.
; %scriptdir% same as @ScriptDir and %scriptfile% = filename without extension.
; %fileversion% is the information from the #AutoIt3Wrapper_Res_Fileversion directive
; %scitedir% will be replaced by the SciTE program directory
; %autoitdir% will be replaced by the AutoIt3 program directory
#AutoIt3Wrapper_Run_Before= ;process to run before compilation – you can have multiple records that will be processed in sequence
#AutoIt3Wrapper_Run_After= ;process to run After compilation – you can have multiple records that will be processed in sequence
;===============================================================================================================
; RUN BEFORE AND AFTER definitions
#AutoIt3Wrapper_Add_Constants= ;Add the needed standard constant include files. Will only run one time.
#EndRegion

Autoit Editor Info

Autoit Editor Info

Den Editor unbedingt auf File – Encoding – UTF8 einstellen!

Link zum WiKi

Hilfe zum Editor mit "Strg" + "F1"

Syntax-Check mit "Strg" + "F5"

Script kompilieren mit "F7"

Script mit Optionen kompilieren mit "Strg" + "F7"

Springe zu Regionen mit "SciTE-Jump": "Strg" + "Alt" + "J" oder "Tools" + "SciTE Jump"

Syntaxfehler werden im "Output-Window" angezeigt.
Dort doppelt auf die rote Zeile klicken, und der Cursor springt zur entsprechenden Zeile im Script.

Man kann im Site-Editor Regionen manuell definieren:
#region

diese Regionen kann man dann
über die + und – Zeichen
ein- und ausblenden.

#endregion

Features

  • Customized Syntax highlighting.
  • AutoComplete AutoIt3 commands automatically (suggest the option in a dropdownbox while typing), just hit ENTER or TAB to Autocomplete.)
  • AutoComplete anything already in the script, like variable and Func names, with Ctrl+Enter.
  • Intellisense (Show a ToolTip with the parameter expected in the selected function).
  • Code folding for easy code viewing.
  • Auto indentation while typing.
  • F1 – open Helpfile on the keyword were the cursor is located.
  • Alt+F1 – open the Beta Helpfile on the keyword were the cursor is located.
  • Shift+F1 will bring up a Popup screen showing all AutoIt3 functions. Just Double-Click or Enter on the function you need and it will be pasted back into your script. It Also has a dynamic Help facility!
  • Ctrl+F1 – open this Helpfile.
  • Ctrl+1 – open SciTEConfig.exe program to change the several settings is SciTE like Font/Color/Tools and several other.
  • F5 – Run Au3Check and when no errors/warnings found run AutoIt3.exe.
  • Alt+F5 – Run BETA versions of Tylo's Au3Check and when no errors/warnings found run AutoIt3.exe.
  • Ctrl+F5 – Run SyntaxCheck with the latest Production definitions, showing all Syntax errors and possible issues with variable declarations. (See details)
  • Ctrl+Alt+F5 – Run SyntaxCheck with the latest Beta definitions, showing all Syntax errors and possible issues with variable declarations. (See details)
  • Alt+F6 – Run Larry's AU3Recorder to record clicks and keystrokes and write this into your AutoIt Script.
  • Ctrl+F6 – Run AU3Info to detect the Text and Names of controls on the program windows.
  • F7 – Build: Run Au3Check and when no errors/warnings found run AU3EXE.
  • Alt+F7 – Build: Run BETA version of Tylo's Au3Check and when no errors/warnings found run AU3EXE.
  • Ctrl+F7 – AutoIt3Wrapper: Build (compile) your script with Options to change Compiler version, ICON, Passphrase or compression, Update Resource info of the target program like Program version etc.
  • Ctrl+T will run Tidy.exe to auto indent and Tidy your AutoIt3 source file.
  • Alt+W will run CodeWizard.exe which assists you in creating MsgBox, InputBox() and more.
  • Alt+M will run Koda formdesigner wrtten by Lookfar and Lazycat, another tool to create a GUI.
  • Ctrl+Alt+j will Run SciTEJump.
  • Ctrl+Alt+s will Run the Snippet holder

Several LUA scripts to enhance SciTE editing.

  • Insert a copy of the Bookmarked line(s) – Ctrl+Alt+B
  • This functions will insert all Bookmarked lines at the beginning for the current line.
  • Lines can be Bookmarked by pressing Ctrl+F2.
  • Jump to the "Func ???" definition of the functionname under the Cursor – Ctrl+J
  • It will also Bookmark the original line to enable you to jump back to the original line with F2.
  • List dropdownbox Ctrl+L with all available Func's in the current script and jumps to selected script. It will also Bookmark the original line to enable you to jump back to the original line with F2.
  • Alt+I – Open #include "" file.
  • Ctrl+Shift+D – Add Debug msgbox
  • This function will add a MSGBOX below the current line that contains the Var the cursor is at
  • $a = $b + 1 (Put the cursor on $b and press Ctrl+Shift+D the following line will be added)
  • MsgBox(4096,'debug:' & $b,$b) ;### Debug MSGBOX
  • Alt+D – Add Debug ConsoleWrite message
  • This function will add a ConsoleWrite line below the current line that contains the Var the cursor is at
  • $a = $b + 1 (Put the cursor on $b and press Alt+D the following line will be added)
  • ConsoleWrite('Line:4 debug ==> $b: ' & $b & @lf) ;### Debug Console
  • Alt+Shift+D – Comment ALL DEBUG MsgBox and ConsoleWrite lines.
  • Ctrl+Alt+D – UnComment ALL Debug MsgBoxes and ConsoleWrite lines.
  • Add TRACE ConsoleWrites to all lines to easily trace your program:Available under Tools/Debug: Add Trace lines
  • Remove ALL Debug MsgBoxes and ConsoleWrite lines: Available under Tools/Debug: Remove ALL lines

Installation von Autoit

Installation von Autoit

Autoit Compiler

Quelle: http://www.autoitscript.com/site/autoit/downloads/  
Install unattended: autoit-v3-3-10-2_131230_setup.exe /S {WICHTIG: großes S}
Uninstall unattended: "%ProgramFiles(x86)%\Autoit3"\Uninstall.exe /S {WICHTIG: großes S}
installed File: "%ProgramFiles(x86)%\Autoit3"\AutoIt3.exe version: 3.3.8.1
Include-Dir: "%ProgramFiles(x86)%\Autoit3\Include"\Array.au3  

Scite Editor

Quelle: http://www.autoitscript.com/site/autoit-script-editor/downloads/  
Install unattended: SciTE4AutoIt3_v3-3-10-1_131229.exe /S {WICHTIG: großes S}
Uninstall unattended: "%ProgramFiles(x86)%\Autoit3\SciTE"\Uninst.exe /S {WICHTIG: großes S}


Include Files: C:\Program Files (x86)\AutoIt3\Include

Programmieren mit Autoit

Programmieren mit Autoit

Autoit ist ein Compiler, mit dem man aus Script ähnlichen Befehlen ausführbare Programme erstellen kann.
Ursprünglich wurde es entwickelt, um SW-Installationen zu automatisieren,
doch im Laufe der Zeit wurde es immer wieder erweitert, so dass man heute auch kleine Programme mit grafischer Oberfläche erstellen kann.

Zusammen mit dem angepassten Editor Scite4Autoit3 bildet Autoit ein gutes Team, um dem IT-Spezialisten den Alltag zu erleichtern.

Bei der FLG wird Autoit für die SW-Paketierung eingesetzt.