1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. Xenobiologist

Beiträge von Xenobiologist

  • URL aufrufen und XML auslesen

    • Xenobiologist
    • 6. Mai 2011 um 17:02

    Ja, auch schön. Oder sowas.

    Spoiler anzeigen
    [autoit]

    Global $source = ClipGet()
    ;~ ConsoleWrite($source & @CRLF)
    Global $tag_A = StringSplit('EPGID,STATION,BEGIN,NICEBEGIN', ',', 2)

    [/autoit] [autoit][/autoit] [autoit]

    For $i = 0 To UBound($tag_A) - 1
    $value_A = _getValue($tag_A[$i])
    For $y = 0 To UBound($value_A) - 1
    ConsoleWrite($tag_A[$i] & ' = ' & $i & ' = ' & $value_A[$y] & @CRLF)
    Next
    Next

    [/autoit] [autoit][/autoit] [autoit]

    Func _getValue($tag)
    $dataSet_A = StringRegExp($source, '(?s)<' & $tag & '>(.*?)</' & $tag & '>', 3)
    If @error Then Exit (0)
    Return $dataSet_A
    EndFunc ;==>_getValue

    [/autoit]
  • URL aufrufen und XML auslesen

    • Xenobiologist
    • 6. Mai 2011 um 16:56

    Dann musst du dir dein Array dementsprechend umbauen.
    Bekommst das hin?

  • URL aufrufen und XML auslesen

    • Xenobiologist
    • 6. Mai 2011 um 15:38

    Die Infos sind doch vorhanden im Array aus StringRegexp.

    Spoiler anzeigen
    [autoit]

    ;~ Global $source = _INetGetSource('http://www.onlinetvrecorder.com/index.php?aktion=search&api=true&future=true&searchterm=Verbotene%20Liebe')
    Global $source = ClipGet()
    ;~ ConsoleWrite($source & @CRLF)
    Global $tag_A = StringSplit('EPGID,STATION,BEGIN,NICEBEGIN', ',', 2)
    Global $s

    [/autoit] [autoit][/autoit] [autoit]

    For $i = 0 To UBound($tag_A) - 1
    $re = StringRegExp($source, '(?s)<' & $tag_A[$i] & '>(.*?)</' & $tag_A[$i] & '>', 3)
    If @error Then Exit (0)
    $s = ''
    For $y = 0 To UBound($re) - 1
    $s &= $re[$y] & @TAB
    Next
    ConsoleWrite($tag_A[$i] & ' = ' & $s & @CRLF)
    Next

    [/autoit]
  • URL aufrufen und XML auslesen

    • Xenobiologist
    • 6. Mai 2011 um 14:59

    Warum so kompliziert, dies sollte dir ungefähr zeigen wie es gehen kann.

    Spoiler anzeigen
    [autoit]

    #include <INet.au3>
    ;~ Global $source = _INetGetSource('http://www.onlinetvrecorder.com/index.php?aktion=search&api=true&future=true&searchterm=Verbotene%20Liebe')
    Global $source = ClipGet()
    ;~ ConsoleWrite($source & @CRLF)
    Global $tag_A = StringSplit('EPGID,STATION,BEGIN,NICEBEGIN', ',', 2)

    [/autoit] [autoit][/autoit] [autoit]

    For $i = 0 To UBound($tag_A) - 1
    $re = StringRegExp($source, '(?s)<' & $tag_A[$i] & '>(.*?)</' & $tag_A[$i] & '>', 3)
    If @error Then Exit(0)
    ConsoleWrite($tag_A[$i] & ' = ' & $re[0] & @CRLF)
    Next

    [/autoit]
  • URL aufrufen und XML auslesen

    • Xenobiologist
    • 6. Mai 2011 um 14:39

    Und woran scheitert es?
    Das was du zurückgebkommst schickst du durch eine Schleife mit _StringBetween oder Regex, dann hast du die einzelnen Infos.

  • WM_Command & Wertebereich im HighWord unterbringen

    • Xenobiologist
    • 6. Mai 2011 um 14:23

    Deine Beschreibung des Problems fängt mittendrin an.
    Warum brauchst du möglichst viel "Platz" darin?

  • Drucker über Konsole installieren

    • Xenobiologist
    • 5. Mai 2011 um 18:41

    Probier mal

    Spoiler anzeigen
    [autoit]

    #include<Array.au3>
    $re = _getAllPrinterNames()
    $s = ''
    For $i = 1 To UBound($re) - 1
    $s &= $i & ' : ' & $re[$i] & @CRLF
    Next

    [/autoit] [autoit][/autoit] [autoit]

    $nr = InputBox('Drucker löschen', 'Welcher Drucker soll gelöscht werden?' & @CRLF & $s, '', '', 550, 500)
    If Not @error Then _deletePrinter($nr)

    [/autoit] [autoit][/autoit] [autoit]

    Func _getAllPrinterNames()
    Local $hService = ObjGet("winmgmts:{impersonationLevel=impersonate}!" & "\\" & @ComputerName & "\root\cimv2")
    Local $sPrinterList = $hService.ExecQuery("Select * From Win32_Printer")
    Local $priner_A[1]
    ConsoleWrite($sPrinterList.count & @CRLF)
    For $sPrinter In $sPrinterList
    _ArrayAdd($priner_A, $sPrinter.name)
    Next
    Return $priner_A
    EndFunc ;==>_getAllPrinterNames

    [/autoit] [autoit][/autoit] [autoit]

    Func _deletePrinter($n)
    ;~ Run('rundll32 printui.dll,PrintUIEntry /p /n ' & $re[$n])
    Run('rundll32 printui.dll,PrintUIEntry /dn /n ' & $re[$n])
    EndFunc ;==>_deletePrinter

    [/autoit]
  • Alternative zu _ArrayAdd

    • Xenobiologist
    • 5. Mai 2011 um 11:04

    Schreib doch selbst, oder such mal bei Bugfix(user im Forum) :)

  • bräuchte hilfe bei "SendScite Command"

    • Xenobiologist
    • 4. Mai 2011 um 18:18

    Ja, da sagst du was. Die derzeitige Version hat noch einige Fehler, die ich schon seit ewigen Zeiten ausbauen wollte.
    Leider komme ich nicht dazu. Die zeitlichen Freiräume sind einfach zu klein um sich einzudenken und dann zu scripten.
    Da verfalle ich kurzfristig, dann immer anderen Dingen.
    Ich hoffe, es irgendwann noch mal zu schaffen.

  • FIAE zweites Lehrjahr Schulprojekt

    • Xenobiologist
    • 4. Mai 2011 um 18:15

    Hi,

    wenn du schon Autoit nimmst, dann würde ich auch ggf. was automatisieren/ablösen.
    Sowas läßt sich dann auch immer toll in der Präsentation darstellen.

    Vorher waren diese 7 Schritte notwendig. Jetz fliegt das große rote x rein :D Zack und schon ist es nur noch 1 Schritt.
    Denk dran, dass es nicht zu kompliziert ist, deine Prüfer wollen es ja verstehen und noch was lernen.

    Mega

  • Excel Rahmenlinien einfügen

    • Xenobiologist
    • 4. Mai 2011 um 15:12
    Spoiler anzeigen
    [autoit]

    ;===============================================================================
    ;
    ; Description: Create Borders around a range of cells
    ; Syntax: _ExcelCreateBorders($oExcel, $sBorderStyle, $sRangeOrRowStart, $iColStart = 1, $iRowEnd = 1, $iColEnd = 1, $iEdgeLeft = 1,
    ; $iEdgeTop = 1, $iEdgeBottom = 1, $iEdgeRight = 1, $iEdgeInsideV = 0, $iEdgeInsideH = 0)
    ; Parameter(s): $oExcel - An Excel object opened by a preceding call to _ExcelBookOpen() or _ExcelBookNew()
    ; $sBorderStyle - The type of border to use, $xlThick, $xlThin, $xlDouble
    ; $sRangeOrRowStart - Either an A1 range, or an integer row number to start from if using R1C1
    ; $iColStart - The starting column for the number format(left) (default=1)
    ; $iRowEnd - The ending row for the number format (bottom) (default=1)
    ; $iColEnd - The ending column for the number format (right) (default=1)
    ; $iEdgeLeft - Specify if the left edge of the selected cells should have a border (default=1) Yes
    ; $iEdgeTop - Specify if the Top edge of the selected cells should have a border (default=1) Yes
    ; $iEdgeBottom - Specify if the Bottom edge of the selected cells should have a border (default=1) Yes
    ; $iEdgeRight - Specify if the Right edge of the selected cells should have a border (default=1) Yes
    ; $iEdgeInsideV - Specify if the Inside Verticle edges of the selected cells should have a border (default=0) No
    ; $iEdgeInsideH - Specify if the Inside Horizontal edges of the selected cells should have a border (default=0) No
    ; Requirement(s): None
    ; Return Value(s): On Success - Returns 1
    ; On Failure - Returns 0 and sets @error on errors:
    ; @error=1 - Specified object does not exist
    ; @error=2 - Starting row or column invalid
    ; @extended=0 - Starting row invalid
    ; @extended=1 - Starting column invalid
    ; @error=3 - Ending row or column invalid
    ; @extended=0 - Ending row invalid
    ; @extended=1 - Ending column invalid
    ; Author(s): MikeOsdx <Using Generic Excel functions from locodarwin>
    ; Note(s): None
    ;
    ;===============================================================================
    Func _ExcelCreateBorders($oExcel, $sBorderStyle, $sRangeOrRowStart, $iColStart = 1, $iRowEnd = 1, $iColEnd = 1, _
    $iEdgeLeft = 1, $iEdgeTop = 1, $iEdgeBottom = 1, $iEdgeRight = 1, $iEdgeInsideV = 0, $iEdgeInsideH = 0)
    If NOT IsObj($oExcel) Then Return SetError(1, 0, 0)
    If NOT StringRegExp($sRangeOrRowStart, "[A-Z,a-z]", 0) Then
    If $sRangeOrRowStart < 1 Then Return SetError(2, 0, 0)
    If $iColStart < 1 Then Return SetError(2, 1, 0)
    If $iRowEnd < $sRangeOrRowStart Then Return SetError(3, 0, 0)
    If $iColEnd < $iColStart Then Return SetError(3, 1, 0)
    if $iEdgeLeft = 1 Then
    With $oExcel.Activesheet.Range($oExcel.Cells($sRangeOrRowStart, $iColStart), $oExcel.Cells($iRowEnd, $iColEnd)).Borders($xlEdgeLeft)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeTop = 1 Then
    With $oExcel.Activesheet.Range($oExcel.Cells($sRangeOrRowStart, $iColStart), $oExcel.Cells($iRowEnd, $iColEnd)).Borders($xlEdgeTop)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeBottom = 1 Then
    With $oExcel.Activesheet.Range($oExcel.Cells($sRangeOrRowStart, $iColStart), $oExcel.Cells($iRowEnd, $iColEnd)).Borders($xlEdgeBottom)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeRight = 1 Then
    With $oExcel.Activesheet.Range($oExcel.Cells($sRangeOrRowStart, $iColStart), $oExcel.Cells($iRowEnd, $iColEnd)).Borders($xlEdgeRight)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeInsideV = 1 Then
    With $oExcel.Activesheet.Range($oExcel.Cells($sRangeOrRowStart, $iColStart), $oExcel.Cells($iRowEnd, $iColEnd)).Borders($xlInsideVertical)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeInsideH = 1 Then
    With $oExcel.Activesheet.Range($oExcel.Cells($sRangeOrRowStart, $iColStart), $oExcel.Cells($iRowEnd, $iColEnd)).Borders($xlInsideHorizontal)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    Else
    if $iEdgeLeft = 1 Then
    With $oExcel.Activesheet.Range($sRangeOrRowStart).Borders($xlEdgeLeft)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeTop = 1 Then
    with $oExcel.Activesheet.Range($sRangeOrRowStart).Borders($xlEdgeTop)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeBottom = 1 Then
    With $oExcel.Activesheet.Range($sRangeOrRowStart).Borders($xlEdgeBottom)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeRight = 1 Then
    With $oExcel.Activesheet.Range($sRangeOrRowStart).Borders($xlEdgeRight)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeInsideV = 1 Then
    With $oExcel.Activesheet.Range($sRangeOrRowStart).Borders($xlInsideVertical)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    if $iEdgeInsideH = 1 Then
    With $oExcel.Activesheet.Range($sRangeOrRowStart).Borders($xlInsideHorizontal)
    .LineStyle = $xlContinuous
    .ColorIndex = $xlAutomatic
    .TintAndShade = 0
    .Weight = $sBorderStyle
    EndWith
    EndIf
    EndIf
    Return 1
    EndFunc

    [/autoit]
  • Drucker über Konsole installieren

    • Xenobiologist
    • 4. Mai 2011 um 08:44

    Hmnmh, also bei funktioniert das in einer CMD.

    rundll32 printui.dll,PrintUIEntry /dn /n\\cupssrv01\GAD074-HP-LJ4650

    Den Druckernamen habe ich so ermittelt.

    [autoit]

    $hService = ObjGet("winmgmts:{impersonationLevel=impersonate}!" & "\\" & @ComputerName & "\root\cimv2")
    $sPrinterList = $hService.ExecQuery ("Select * From Win32_Printer")
    ConsoleWrite('$sPrinterList.count = ' & $sPrinterList.count & @lf)
    For $sPrinter In $sPrinterList
    ConsoleWrite('$sPrinter.name = ' & $sPrinter.name & @LF)
    Next

    [/autoit]
  • Erstes Spiel: 'Scheiß Spiel'

    • Xenobiologist
    • 4. Mai 2011 um 07:42

    https://autoit.de/index.php?page…spiel#post25813

  • bräuchte hilfe bei "SendScite Command"

    • Xenobiologist
    • 4. Mai 2011 um 07:36
    Spoiler anzeigen

    #cs
    Here are the other values that could be useful for you:
    Go = 301
    Compile = 302


    Complete list from the SciTE source file scite.h
    // Menu IDs.
    // These are located 100 apart. No one will want more than 100 in each menu
    #define IDM_MRUFILE 1000
    #define IDM_TOOLS 1100
    #define IDM_BUFFER 1200
    #define IDM_IMPORT 1300
    #define IDM_LANGUAGE 1400

    // File
    #define IDM_NEW 101
    #define IDM_OPEN 102
    #define IDM_OPENSELECTED 103
    #define IDM_REVERT 104
    #define IDM_CLOSE 105
    #define IDM_SAVE 106
    #define IDM_SAVEAS 110
    #define IDM_SAVEASHTML 111
    #define IDM_SAVEASRTF 112
    #define IDM_SAVEASPDF 113
    #define IDM_FILER 114
    #define IDM_SAVEASTEX 115
    #define IDM_SAVEACOPY 116
    #define IDM_SAVEASXML 117
    #define IDM_MRU_SEP 120
    #define IDM_PRINTSETUP 130
    #define IDM_PRINT 131
    #define IDM_LOADSESSION 132
    #define IDM_SAVESESSION 133
    #define IDM_QUIT 140
    #define IDM_ENCODING_DEFAULT 150
    #define IDM_ENCODING_UCS2BE 151
    #define IDM_ENCODING_UCS2LE 152
    #define IDM_ENCODING_UTF8 153
    #define IDM_ENCODING_UCOOKIE 154

    #define MRU_START 16
    #define IMPORT_START 19
    #define TOOLS_START 3


    // Edit
    #define IDM_UNDO 201
    #define IDM_REDO 202
    #define IDM_CUT 203
    #define IDM_COPY 204
    #define IDM_PASTE 205
    #define IDM_CLEAR 206
    #define IDM_SELECTALL 207
    #define IDM_PASTEANDDOWN 208
    #define IDM_FIND 210
    #define IDM_FINDNEXT 211
    #define IDM_FINDNEXTBACK 212
    #define IDM_FINDNEXTSEL 213
    #define IDM_FINDNEXTBACKSEL 214
    #define IDM_FINDINFILES 215
    #define IDM_REPLACE 216
    #define IDM_GOTO 220
    #define IDM_BOOKMARK_NEXT 221
    #define IDM_BOOKMARK_TOGGLE 222
    #define IDM_BOOKMARK_PREV 223
    #define IDM_BOOKMARK_CLEARALL 224
    #define IDM_BOOKMARK_NEXT_SELECT 225
    #define IDM_BOOKMARK_PREV_SELECT 226
    #define IDM_MATCHBRACE 230
    #define IDM_SELECTTOBRACE 231
    #define IDM_SHOWCALLTIP 232
    #define IDM_COMPLETE 233
    #define IDM_COMPLETEWORD 234
    #define IDM_EXPAND 235
    #define IDM_TOGGLE_FOLDALL 236
    #define IDM_TOGGLE_FOLDRECURSIVE 237
    #define IDM_EXPAND_ENSURECHILDRENVISIBLE 238
    #define IDM_UPRCASE 240
    #define IDM_LWRCASE 241
    #define IDM_ABBREV 242
    #define IDM_BLOCK_COMMENT 243
    #define IDM_STREAM_COMMENT 244
    #define IDM_COPYASRTF 245
    #define IDM_BOX_COMMENT 246
    #define IDM_INS_ABBREV 247
    #define IDM_JOIN 248
    #define IDM_SPLIT 249
    #define IDM_DUPLICATE 250
    #define IDM_INCSEARCH 252
    #define IDM_ENTERSELECTION 256


    #define IDC_INCFINDTEXT 253
    #define IDC_INCFINDBTNOK 254
    #define IDD_FIND2 255
    #define IDC_EDIT1 1000
    #define IDC_STATIC -1


    #define IDM_PREVMATCHPPC 260
    #define IDM_SELECTTOPREVMATCHPPC 261
    #define IDM_NEXTMATCHPPC 262
    #define IDM_SELECTTONEXTMATCHPPC 263

    // Tools
    #define IDM_COMPILE 301
    #define IDM_BUILD 302
    #define IDM_GO 303
    #define IDM_STOPEXECUTE 304
    #define IDM_FINISHEDEXECUTE 305
    #define IDM_NEXTMSG 306
    #define IDM_PREVMSG 307

    #define IDM_MACRO_SEP 310
    #define IDM_MACRORECORD 311
    #define IDM_MACROSTOPRECORD 312
    #define IDM_MACROPLAY 313
    #define IDM_MACROLIST 314

    #define IDM_ACTIVATE 320

    #define IDM_SRCWIN 350
    #define IDM_RUNWIN 351
    #define IDM_TOOLWIN 352
    #define IDM_STATUSWIN 353
    #define IDM_TABWIN 354

    // Options
    #define IDM_SPLITVERTICAL 401
    #define IDM_VIEWSPACE 402
    #define IDM_VIEWEOL 403
    #define IDM_VIEWGUIDES 404
    #define IDM_SELMARGIN 405
    #define IDM_FOLDMARGIN 406
    #define IDM_LINENUMBERMARGIN 407
    #define IDM_VIEWTOOLBAR 408
    #define IDM_TOGGLEOUTPUT 409
    #define IDM_VIEWTABBAR 410
    #define IDM_VIEWSTATUSBAR 411
    #define IDM_TOGGLEPARAMETERS 412
    #define IDM_OPENFILESHERE 413
    #define IDM_WRAP 414
    #define IDM_WRAPOUTPUT 415
    #define IDM_READONLY 416

    #define IDM_CLEAROUTPUT 420
    #define IDM_SWITCHPANE 421

    #define IDM_EOL_CRLF 430
    #define IDM_EOL_CR 431
    #define IDM_EOL_LF 432
    #define IDM_EOL_CONVERT 433

    #define IDM_TABSIZE 440

    #define IDM_MONOFONT 450

    #define IDM_OPENLOCALPROPERTIES 460
    #define IDM_OPENUSERPROPERTIES 461
    #define IDM_OPENGLOBALPROPERTIES 462
    #define IDM_OPENABBREVPROPERTIES 463
    #define IDM_OPENLUAEXTERNALFILE 464

    //#define IDM_SELECTIONMARGIN 490
    //#define IDM_BUFFEREDDRAW 491
    //#define IDM_USEPALETTE 492

    // Buffers
    #define IDM_PREVFILE 501
    #define IDM_NEXTFILE 502
    #define IDM_CLOSEALL 503
    #define IDM_SAVEALL 504
    #define IDM_BUFFERSEP 505
    #define IDM_PREVFILESTACK 506
    #define IDM_NEXTFILESTACK 507

    // Help
    #define IDM_HELP 901
    #define IDM_ABOUT 902
    #define IDM_HELP_SCITE 903

    // Windows specific windowing options
    #define IDM_ONTOP 960
    #define IDM_FULLSCREEN 961

    // Dialog control IDs
    #define IDGOLINE 220
    #define IDABOUTSCINTILLA 221
    #define IDFINDWHAT 222
    #define IDFILES 223
    #define IDDIRECTORY 224
    #define IDCURRLINE 225
    #define IDLASTLINE 226
    #define IDEXTEND 227
    #define IDTABSIZE 228
    #define IDINDENTSIZE 229
    #define IDUSETABS 230

    #define IDREPLACEWITH 231
    #define IDWHOLEWORD 232
    #define IDMATCHCASE 233
    #define IDDIRECTIONUP 234
    #define IDDIRECTIONDOWN 235
    #define IDREPLACE 236
    #define IDREPLACEALL 237
    #define IDREPLACEINSEL 238
    #define IDREGEXP 239
    #define IDWRAP 240

    #define IDUNSLASH 241
    #define IDCMD 242

    // id for the browse button in the grep dialog
    #define IDBROWSE 243

    #define IDABBREV 244

    #define IDREPLACEINBUF 244
    #define IDMARKALL 245

    #define IDGOLINECHAR 246
    #define IDCURRLINECHAR 247
    #define IDREPLDONE 248

    #define IDDOTDOT 249
    #define IDFINDINSTYLE 250
    #define IDFINDSTYLE 251

    #define IDPARAMSTART 300

    // Dialog IDs
    #define IDD_FIND 400
    #define IDD_REPLACE 401
    #define IDD_BUFFERS 402
    #define IDD_FIND_ADV 403
    #define IDD_REPLACE_ADV 404
    #define IDR_CLOSEFILE 100

    #ce

  • Drucker über Konsole installieren

    • Xenobiologist
    • 3. Mai 2011 um 17:58

    Hi,

    willst du einen oder alle Drucker löschen? Lokal oder Netzwerk?
    Mega

  • Drucker über Konsole installieren

    • Xenobiologist
    • 3. Mai 2011 um 16:26

    http://www.google.de/url?sa=t&source=web&cd=1&ved=0CBkQFjAA&url=http%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F8%2F2%2Fc%2F82cffcfa-56f6-4fc3-bfa5-80cd84793871%2FPrintUIUsersGuide.doc&rct=j&q=rundll32%20printui.dll%2CPrintUIEntry%20%2Fgd&ei=LBDATeKdJ4bXsgbxoMTCBQ&usg=AFQjCNHPiZrBv5Go1tcV-jEmY2MAGuYtQA&cad=rja

  • Datum einer Datei modifizieren - Fehlerbehaftet

    • Xenobiologist
    • 3. Mai 2011 um 14:42

    Bei mir stimmt die Zeit.

  • [APRIL APRIL] Autoit Version 4 nächste Woche [APRIL APRIL]

    • Xenobiologist
    • 1. April 2011 um 07:44

    Ich habe gehört, das Scite4Autoit ebenfalls passend zur Version ausgeliefert werden soll.
    Integriert ist ersmal die Versuchsversion von DragonDictation4Autoit.
    Damit soll man mit Sprachsteuerung programmieren können.
    Die Version ist speziell für die Keywords von autoit angepasst.

    Computer : Aktuelles Fenster, Send Benutzername Sumbit :):thumbup:

  • Ausführliches Logfile

    • Xenobiologist
    • 31. März 2011 um 07:53

    Ich glaube nicht, dass der Weg über DebugConsole zum Ziel führt. Höchstens wenn du wirklich debuggen willst. Dann kannst du aber auch mit dem Traybereich arbeiten und die Geschwindigkeit ist dir egal.
    Ich würde mal schauen, wo ein Logeintrag wirklich Sinn ergibt. Bei Funktionsaufrufen kannst du sinnvoll loggen und außerdem ist die Ablaufsteuerung deines Programms ja nicht 4000 Zeilen. Sondern alles zusammen.
    Die Aktionen kommen ja aus deiner wahrscheinlich while wend Schleife. Kannst dort nicht beginnen und ggf. in einzelnen zentralen Funktionen ein, zwei Logzeilen einschieben.
    Das sollte doch erstmal für den Beginn reichen.

  • Ausführliches Logfile

    • Xenobiologist
    • 31. März 2011 um 07:30

    Hi,

    bei großen Programmen könntest du von log4j oder ähnlichem abgucken.
    In Autoit könnte man bspw eine globale Variable definieren.
    Global $loglevel = 0 ; 0 = kein log, 1 = fatal/error, 2 = info, 3 = debug
    Dann eine Funktion schrieben, in der formatiert die Ausgabe gemacht wird.
    Und im Code dann die Zeilen einfügen If $loglevel = ... Then _mylog("text")
    Alles in ein Array schreiben ist bei Fehlern schwierig, da im Abbruch dann gar nichts geloggt wird.
    Durch extremes loggen wird dein Skript sicher ausgebremst, aber ich denke das sollte zu verschmerzen sein. (Situativ)
    Ansonsten kannst du dir in Scite4Autoit mal DebugTo... unter Tools angucken. Das hilft ggf. auch.
    Mega

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™