Simatic Simatic.Simatic.1 | |
---|---|
_S7_Simatic_ObjCreate / Simatic = Simatic.Simatic.1 | |
_S7_Simatic_AutomaticSave / Simatic.AutomaticSave (Read / Write) | |
_S7_Simatic_VerbLogFile (read write) | |
_S7_Simatic_SetPGInterface / Simatic.SetPGInterface (Opens Dialog) | |
_S7_Simatic_UnattendedServerMode !!! | |
_S7_Simatic_MsgAssignmentType / Simatic.MsgAssignmentType (Read / Write) | |
_S7_Simatic_IsSilentMode (read) | |
_S7_Simatic_Save / Simatic.Save (void) |
Projects Simatic.Projects | |
---|---|
_S7_Projects_GetProject | |
_S7_Projects_Exists | |
_S7_Projects_GetList | |
_S7_Projects_Count | |
_S7_Projects_Add |
Project Simatic.Projects.Project | |
---|---|
_S7_Project_GetInfo | |
_S7_Project_Name | |
_S7_Project_Creator (Read / Write) | |
_S7_Project_Comment (Read / Write) | |
_S7_Project_Remove |
Stations Simatic.Projects.Project.Stations | |
---|---|
_S7_Stations_GetStation | |
_S7_Stations_Exists | |
_S7_Stations_GetList | |
_S7_Stations_Count | |
_S7_Stations_Import | |
_S7_Stations_Add | |
_S7_Stations_Remove |
Programs Simatic.Projects.Project.Programs | |
---|---|
_S7_Programs_GetList | |
_S7_Programs_GenerateSource |
SymbolTable | |
---|---|
_S7_SymbolTable_Export | |
_S7_SymbolTable_ExportToExcel (req. MS-Excel) |
Blocks Simatic.Projects.Project.Programs.Next("Blocks") | |
---|---|
_S7_Blocks_GetBlock | |
_S7_Blocks_GetInfo |
Source Files Simatic.Projects.Project.Programs.Next("Source Files") | |
---|---|
_S7_SourceFiles_GetSource | |
_S7_SourceFiles_Export | |
_S7_SourceFiles_Add | |
_S7_SourceFiles_Compile | |
_S7_SourceFiles_GetInfo |
Eine AutoIt-UDF für das POP3-Protokoll, mit folgenden Funktionen:
Funktion | Beschreibung |
---|---|
_POP3Info | Returns an array with the specified informations about all mails |
_POP3Connect | Connects to the according pop3 server. With “automatic” mode - tries to find the pop3-server by your E-Mail adress |
_POP3Dele | Delete msg n-msg_number. |
_POP3Disconnect | Shuts down connection. |
_POP3List | Returns an array with the msg number and its size (octets) |
_POP3Noop | Actually, does nothing. |
_POP3Quit | Validates your actions (dele for example) and stops the connection as it should. |
_POP3Retr | Downloads the according message. |
_POP3Rset | Withdraw changes, such as dele orders. |
_POP3Stat | Gets the number of messages in the pop3 account (array[1]) and the size(array[2]) in octets |
_POP3MsgCnt | Returns the number of messages |
_POP3Top | Retreives the mail headers, and the X first lines of the message |
_POP3Uidl | Same as _POP3List(), but with UIDL identifiers instead of message size. |
Eine AutoIt-UDF zum einfachen Extrahieren von Informationen aus HTML (SVG / XML)-Quelltext
Funktion | Beschreibung |
---|---|
_HTML_ExtractURLVar | Extrahiert eine URL-Variable aus einer URL. |
_HTML_Get | Liefert einen Wert, anhand verschiedener Attribute wie: class, id, title usw. |
_HTML_GetAllLinks | Gibt ein Array mit allen Links zurück. |
_HTML_GetImageSrc | Gibt die Quelle eines Nildes zurück. |
_HTML_GetLink | Gibt die URL zurück, die den Parametern entspricht. |
_HTML_GetSource | Liefert den Quelltext einer Seite zurück. Scripte werden herausgefiltert. |
_HTML_GetTable | Liefert den Inhalt einer Tabelle als 2D-Array (nur einfache Tabellen). |
_HTML_GetText | Gibt den reinen Text eines Bereiches zurück. |
_HTML_GetURLVar | Liefert eine URL-Variable aus einer URL. |
_HTML_ImageSave | Speichert das angebene Bild ab. |
_HTML_Search | Durchsucht den reinen Text einer Quelle. |
AutoIt-Funktion die einen String, wie die Argumente eines Funktionsaufrufs, in ein Array zerlegt.
#Region Includes
#include <Array.au3>
#EndRegion Includes
Main()
Func Main()
Local $s = 'true,"test" , $test[2][3], $test[4], @AppDataDir, 2,23.343, " ", "$test'' ,2" , _Function("test", ''test2'', StringStripWS($b,3)), "test3", false , '' " Test", ,, ,, 4 '',""'
Local $a = __SplitArgs($s)
_ArrayDisplay($a)
EndFunc
Funktionssammlung für AutoIt, für ein präziseres Sleep und eine einfacheren Angabe von Millisekunden.
Global $_SLEEPEX_CORR
Main()
Func Main()
; Laufzeitkorrektur fuer _SleepEx()
; - stimmt nicht ganz, macht aber dennoch das Ergebnis etwas genauer
_SleepEx_Corr()
ConsoleWrite($_SLEEPEX_CORR & @CRLF)
MsgBox(0,"2 Minuten, 15 Sekunden und 4 ms:", _2MS("0:2:15:4"))
Local $t = TimerInit()
_SleepEx("00:00:02:0100") ; 2 sec, 100 ms
ConsoleWrite(TimerDiff($t) & @CRLF)
Local $t = TimerInit()
_SleepEx("0:0:0:4") ; 4 ms !!!
ConsoleWrite(TimerDiff($t) & @CRLF)
Local $t = TimerInit()
Sleep(_MS("0:0:1:20")) ; 1 sec 20 ms
ConsoleWrite(TimerDiff($t) & @CRLF)
$t = TimerInit()
_SleepEx(2) ; 2 sec
ConsoleWrite(TimerDiff($t) & @CRLF)
$t = TimerInit()
_SleepEx(1, "m") ; 1 min
ConsoleWrite(TimerDiff($t) & @CRLF)
EndFunc
0.182804220570591
2107.88064147315
4.27925162528962
1021.42623648781
2000.37281600462
60096.8887882523