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

  • FileOpenDialog maximiert darstellen

    • Xenobiologist
    • 2. November 2012 um 11:11
    Spoiler anzeigen
    [autoit]

    #include<WinAPI.au3>
    #include<WindowsConstants.au3>
    #include<FileDialogsEx.au3>
    ; _FileDialogsEx.au3 example #1:
    ; create big resizeable file open dialog, defaulting to thumbnails view
    ; demonstrates how to set size/position of dialog window, how to set default view mode for listview.

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

    Global $f_CDN_Start = 1

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

    $Return = _FileOpenDialogEx("Open picture", @WindowsDir & "\Web\Wallpaper", "All Files (*.*)", BitOR($OFN_ENABLESIZING, $OFN_ALLOWMULTISELECT), "", 0, "_OFN_HookProc")
    If @error Then
    ConsoleWrite('No file selected.' & @CRLF)
    Else
    ConsoleWrite($Return & @CRLF)
    EndIf

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

    Func _OFN_HookProc($hWnd, $Msg, $wParam, $lParam)
    Switch $Msg
    Case $WM_NOTIFY
    Local $hWndFrom, $iIDFrom, $iCode, $tNMHDR
    $tNMHDR = DllStructCreate("hwnd hWndFrom;int idFrom;int code", $lParam)
    $hWndFrom = DllStructGetData($tNMHDR, "hWndFrom")
    $iIDFrom = DllStructGetData($tNMHDR, "idFrom")
    $iCode = DllStructGetData($tNMHDR, "code")
    Switch $iCode
    Case $CDN_INITDONE
    Case $CDN_FOLDERCHANGE
    If $f_CDN_Start Then;if executing first time
    Local $hODLV = _FindWindowEx($hWndFrom, 0, "SHELLDLL_DefView", "")
    If $hODLV <> 0 Then
    DllCall('user32.dll','int','SendMessage','hwnd',$hODLV,'uint',$WM_COMMAND,'wparam',$ODM_VIEW_THUMBS,'lparam',0) ; Thumbs
    ;~ DllCall('user32.dll', 'int', 'SendMessage', 'hwnd', $hODLV, 'uint', $WM_COMMAND, 'wparam', $ODM_VIEW_DETAIL, 'lparam', 0) ; Detail
    EndIf
    WinMove($hWndFrom, "", 0, 0, 800, 600, 0) ; hier maximieren
    $f_CDN_Start = 0;to make sure these tweaks happens only once.
    EndIf
    Case $CDN_SELCHANGE
    Case $CDN_FILEOK
    EndSwitch
    Case Else
    EndSwitch
    EndFunc ;==>_OFN_HookProc
    Func _FindWindowEx($hWndParent, $hWndChildAfter, $sClassName, $sWinTitle = "")
    Local $aRet = DllCall('user32.dll', 'hwnd', 'FindWindowEx', 'hwnd', $hWndParent, 'hwnd', $hWndChildAfter, 'str', $sClassName, 'str', $sWinTitle)
    If $aRet[0] = 0 Then ConsoleWrite('_FindWindowEx() Error : ' & _WinAPI_GetLastErrorMessage())
    Return $aRet[0]
    EndFunc ;==>_FindWindowEx
    Exit

    [/autoit]
  • (!) RestrictControlRegExp-UDF - automatisch zu setzende Zeichen

    • Xenobiologist
    • 22. Oktober 2012 um 18:26

    Hier alter Code, den ich in meinen Schnipseln gefunden habe. (Habe ich nicht geschrieben, aber ggf. hilft er dir ja.

    Spoiler anzeigen
    [autoit]

    #include<Array.au3>
    #include<EditConstants.au3>
    #include<GUIConstantsEx.au3>
    #include<WindowsConstants.au3>

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

    ;Global $changed = False

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

    GUICreate("My GUI Zeiteingabe",200,100) ; will create a dialog box that when displayed is centered

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

    $edit = GUICtrlCreateInput(" :", 10, 30, 52, 20,$ES_NUMBER) ; Eingabebox
    GUICtrlSetFont(-1,10,600,0,"Courier New") ; nichtproportionale Schrift gewählt, für die Optik des gleichbleibenden Abstandes vor dem ":" mit Leerzeichen
    GUICtrlSetLimit(-1,5)
    $edit1 = GUICtrlCreateInput(" :", 75, 30, 52, 20,$ES_NUMBER) ; Eingabebox
    GUICtrlSetFont(-1,10,600,0,"Courier New") ; nichtproportionale Schrift gewählt, für die Optik des gleichbleibenden Abstandes vor dem ":" mit Leerzeichen
    GUICtrlSetLimit(-1,5)
    $edit2 = GUICtrlCreateInput(" :", 140, 30, 52, 20,$ES_NUMBER) ; Eingabebox
    GUICtrlSetFont(-1,10,600,0,"Courier New") ; nichtproportionale Schrift gewählt, für die Optik des gleichbleibenden Abstandes vor dem ":" mit Leerzeichen
    GUICtrlSetLimit(-1,5)
    $btn = GUICtrlCreateButton("Ohne Funktion", 50, 70, 100, 20)
    GUISetState()
    GUIRegisterMsg($WM_COMMAND, "MY_WM_COMMAND")
    Send("{LEFT 3}")
    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
    ExitLoop
    EndSelect
    WEnd

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

    Func MY_WM_COMMAND($hWnd, $msg, $wParam, $lParam)
    Local $backspc = 0
    Local $nNotifyCode = _HiWord($wParam)
    Local $nID = _LoWord($wParam)
    Local $hCtrl = $lParam
    Switch $nID ; aktuelle Inputbox
    Case $edit Or $edit1 Or $edit2
    Switch $nNotifyCode
    Case $EN_CHANGE
    $temp = StringSplit(GUICtrlRead($nID),":")
    If @error Then
    _ArrayAdd($temp,"")
    EndIf
    $temp[1] = StringReplace($temp[1]," ","")
    If $temp[0] = 1 Then
    $temp[1] = StringLeft($temp[1],1)&" "
    GUICtrlSetData($nID,$temp[1]&":")
    Send("{LEFT 2}")
    EndIf
    Switch StringLen($temp[2])
    Case 2
    Send("{TAB}")
    Case 1
    If NOT StringIsDigit($temp[1]) Then
    GuiCtrlSetData($nID," :")
    Send ("{LEFT 3}")
    EndIf
    If $temp[2] > 5 Then
    $temp[2]=""
    GuiCtrlSetData($nID,$temp[1]&":"&$temp[2])
    EndIf
    Case 0
    Switch StringLen($temp[1])
    Case 2
    Switch StringLeft($temp[1],1)
    Case 2
    If $temp[1] > 23 Then
    $temp[1] = "2 "
    GuiCtrlSetData($nID,$temp[1]&":")
    send ("{LEFT 2}")
    Else
    GuiCtrlSetData($nID,$temp[1]&":")
    EndIf
    Case 1
    GuiCtrlSetData($nID,$temp[1]&":")
    Case 0
    GuiCtrlSetData($nID,$temp[1]&":")
    EndSwitch
    Case 1
    Switch $temp[1]
    Case 3 to 9
    $temp[1] = "0"&$temp[1]
    GuiCtrlSetData($nID,$temp[1]&":")
    Case 0 to 2
    GuiCtrlSetData($nID,$temp[1]&" :")
    send ("{LEFT 2}")
    EndSwitch
    Case 0
    GuiCtrlSetData($nID," :")
    send ("{LEFT 3}")
    EndSwitch
    EndSwitch
    Case $EN_SETFOCUS
    GuiCtrlSetData($nID," :")
    Send("{LEFT 3}")
    Case $EN_KILLFOCUS
    $temp = StringSplit(GUICtrlRead($nID),":")
    $temp[1] = StringReplace($temp[1]," ","")
    If $temp[0] = 1 Then _ArrayAdd($temp,"")
    If StringLen($temp[2]) = 2 Then
    If StringLen($temp[1]) = 2 Then
    Return
    Else
    GUICtrlSetData($nID," :")
    Return
    EndIf
    EndIf
    Switch StringisDigit($temp[1])
    Case True
    Switch StringLen($temp[1])
    Case 1
    If $temp[1] > 2 Then $temp[1] = "0"&$temp[1]
    If $temp[1] <= 2 Then $temp[1] = " "
    Case 2
    If $temp[2] > "" Then
    $temp[2] = $temp[2]&"0"
    GUICtrlSetData($nID,$temp[1]&":"&$temp[2])
    EndIf
    EndSwitch
    If $temp[2] = "" Or $temp[2] = 0 Then
    $temp[2] = "00"
    GUICtrlSetData($nID,$temp[1]&":"&$temp[2])
    EndIf
    Case False
    GUICtrlSetData($nID," :")
    EndSwitch
    EndSwitch
    EndSwitch
    EndFunc ;==>MY_WM_COMMAND

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

    Func _HiWord($x)
    Return BitShift($x, 16)
    EndFunc ;==>_HiWord

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

    Func _LoWord($x)
    Return BitAND($x, 0xFFFF)
    EndFunc ;==>_LoWord

    [/autoit]
  • pc sperren - mit windows eigener tastenkombi

    • Xenobiologist
    • 13. Oktober 2012 um 14:07

    #l

  • Mit FileSelectFolder() auf 'Computer' zugreifen, wie?

    • Xenobiologist
    • 29. September 2012 um 13:59
    [autoit]

    Local $var = FileSelectFolder("Choose a folder.", "")
    ConsoleWrite($var & @LF)

    [/autoit]
  • Organize Includes

    • Xenobiologist
    • 22. September 2012 um 11:33

    Hmmh, jetzt habe ich 3 Wochen Urlaub und könnte mal wieder etwas Autoit machen.
    Leider wird die nächste Autoit-Version erhebliche Syntaxveränderungen etc. mit sich bringen.
    Aus diesem Grund lohnt sich eine Optimierung/Weiterentwicklung von OI wohl derzeit nicht.
    Das Thema wird dann wohl demnächst aussterben und muss neu gemacht werden.
    Mal sehen, wann die nächste Version stable ist.

  • Studium, Hochsprachen und was euch sonst noch so einfällt :-)

    • Xenobiologist
    • 20. September 2012 um 20:09

    Ich würde mir an deiner Stelle auch überlegen, wo es Geld zu verdienen gibt.
    Mit der Informatik ist es ungefähr wie bei Ärzten. Es gibt jede Menge Spezialisierungen.
    Während ein Hausarzt auf dem Land viel mit Leuten spricht und einen abwechselungsreichen Job hat, so wird er nicht viel verdienen.
    Hingegen ein Lungenfacharzt, Radiologe, etc. etwas anderes im Fokus hat und dafür viiiel mehr Geld bekommt.
    Informatiker müssen nicht alle programmieren.
    Ärzte müssen nicht alle operieren. :D

    Ich würde mir eine Technik aneignen, die bei großen Firmen benötigt wird und im Wachstum ist.
    Derzeit sind die Hausärzte unter den Informatikern wohl die Administratoren, Supporter etc. (klar gibt Ausnahmen)
    Die Radiologen sehe ich in Zukunft eher bei Beratung, SAP, BI, ...

  • Studium, Hochsprachen und was euch sonst noch so einfällt :-)

    • Xenobiologist
    • 19. September 2012 um 20:05

    Erstmal Glückwunsch zum Abi.
    Ein Informatiker ist keine "Codehure". Es ist nicht das Primärziel eines Informatikstudiums programmieren zu lernen.
    Ich würde mir eher Gedanken machen, in welchen Bereich du fachlich willst.
    Wenn du die Fachlichkeit nicht verstehst, oder uninteressant findest, dann wirst du auch nichts entwickeln.

  • Sieb des Eratosthenes

    • Xenobiologist
    • 4. September 2012 um 14:31

    Hmmh, genau die gleiche Idee hatte ich auch. Ein bisschen was wird es sicher noch bringen, wenn du deine Varaiblennamen kürzt. (1 Zeichen)

  • CMD-Line | Wie soll das ganze funktionieren?

    • Xenobiologist
    • 12. August 2012 um 12:11

    Sieht doch alles ganz gut aus. Wenn du Run nutzt wie du es tust, dann musst du ein Leerzeichen einbauen vor dem Parameter.
    Ansonsten kannst du in Scite auch shift F8 drücken und dort Parameter eintragen zum Test.

  • Label-Text senktrecht ?

    • Xenobiologist
    • 8. August 2012 um 12:08

    Habe dies hier in meinen Snippets gefunden. Kommt aus'm Forum.

    Spoiler anzeigen
    [autoit]

    #include <Misc.au3>
    #include <StructureConstants.au3>
    #include <WindowsConstants.au3>
    #include <GDIPlus.au3>
    #include <WinAPI.au3>
    #include <GuiConstantsEx.au3>

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

    Global Const $iOpacity = 200
    ;~ Global Const $ULW_ALPHA = 2
    Global Const $nPI = 3.1415926535897932384626433832795
    ;~ Global Const $WM_LBUTTONDOWN = 0x0201 ; Drag Window 1 of 3 addin
    Global $hGui, $hGraphic
    Global $dll = DllOpen("user32.dll")
    Global $GuiSize = 580, $w2 = 144, $h2 = 20
    Global $randcol, $fCol, $fontSize = 12, $fRot = -144, $w = 100, $h = 20, $nAngle = 0, $flg = 1
    Opt("MustDeclareVars", 1)
    Opt("GUIOnEventMode", 1)

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

    TextRotate()

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

    Func TextRotate()
    Local $hWnd, $hDC, $hBitmap, $pSize, $tSize, $pSource, $tSource, $pBlend, $tBlend
    $hGui = GUICreate("Rotate Text", $GuiSize, $GuiSize, -1, -1, 0, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST))
    GUIRegisterMsg($WM_LBUTTONDOWN, "_WinMove") ; Drag Window 2 of 3 addin
    GUISetState()

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

    Do
    _GDIPlus_Startup()
    $hWnd = _WinAPI_GetDC(0)
    $hDC = _WinAPI_CreateCompatibleDC($hWnd)
    $hBitmap = _WinAPI_CreateCompatibleBitmap($hWnd, $GuiSize, $GuiSize) ; $iWidth, $iHeight)
    _WinAPI_SelectObject($hDC, $hBitmap)
    $hGraphic = _GDIPlus_GraphicsCreateFromHDC($hDC)

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

    If _IsPressed("11") Then $flg += 1 ; CTRL key
    If $flg = 1 Then RotateText2()
    If $flg = 2 Then RotateText()
    If $flg >= 3 Then $flg = 1

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

    $tSize = DllStructCreate($tagSIZE)
    $pSize = DllStructGetPtr($tSize)
    DllStructSetData($tSize, "X", $GuiSize) ;$iWidth )
    DllStructSetData($tSize, "Y", $GuiSize) ;$iHeight)
    $tSource = DllStructCreate($tagPOINT)
    $pSource = DllStructGetPtr($tSource)
    $tBlend = DllStructCreate($tagBLENDFUNCTION)
    $pBlend = DllStructGetPtr($tBlend)
    DllStructSetData($tBlend, "Alpha", $iOpacity)
    DllStructSetData($tBlend, "Format", 1)
    _WinAPI_UpdateLayeredWindow($hGui, $hWnd, 0, $pSize, $hDC, $pSource, 0, $pBlend, $ULW_ALPHA)
    Sleep(200)
    _GDIPlus_GraphicsDispose($hGraphic)
    _WinAPI_ReleaseDC(0, $hWnd)
    _WinAPI_DeleteObject($hBitmap)
    _WinAPI_DeleteDC($hDC)
    _GDIPlus_Shutdown()
    Until _IsPressed("1B") ; ESC key
    DllClose($dll)
    EndFunc ;==>TextRotate

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

    Func RotateText()
    Local $txt, $txtlen, $fontSize = 12
    $txt = "Autoit Sang" ; Type text to be displayed here - text box display autosizing below
    $txtlen = StringLen($txt)

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

    $fRot = $fRot + 1
    If $fRot = 144 Then $fRot = -144 ; 72*5deg=360deg - 2/360's before zero & 2/360's after zero
    If $fRot < 0 Then
    $nAngle = Mod($nAngle - 5, 360) ; 5deg increments (minus anticlockwise)
    Else
    $nAngle = Mod($nAngle + 5, 360) ; 5deg increments (plus clockwise)
    EndIf

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

    ;Text box display autosizing. $w - Width of text rectangle; $h - Heigth of text rectangle
    $w = Int($fontSize * $txtlen * 3 / 4)
    $h = Int(($fontSize * 4 / 3) * (1280 / 1024))

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

    If $fCol = 0 Then ;Randomize ARGB color
    $randcol = "0xff" & Hex(Random(0, 255, 1), 2) & Hex(Random(0, 255, 1), 2) & Hex(Random(0, 255, 1), 2)
    EndIf
    $fCol = Mod($fCol + 1, 18) ; Changes color every 18 * 5deg = 90Deg

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

    ;DrawText( $nX, $nY, $nAngle, $iWidth, $iHeight, $txt, $iARGB , $fontSize )
    DrawText($GuiSize / 4, $GuiSize / 4, $nAngle, $w, $h, $txt, $randcol)

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

    Return 1
    EndFunc ;==>RotateText

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

    Func RotateText2()
    Local $txt2, $txtlen2, $winpos

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

    $txt2 = "Autoit Sang" ; Type text to be displayed here - text box display autosizing below
    $txtlen2 = StringLen($txt2)

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

    $fRot = $fRot + 1
    If $fRot = 144 Then $fRot = -144 ; 72*5deg=360deg - 2/360's before zero & 2/360's after zero
    If $fRot < 0 Then
    $nAngle = Mod($nAngle - 5, 360) ; 5deg increments (minus anticlockwise)
    $fontSize = 12 + Int(($fRot + 144) * 20 / 144); increase fontsize 12 to size 32 over 144 increments
    Else
    $nAngle = Mod($nAngle + 5, 360) ; 5deg increments (plus clockwise)
    $fontSize = 32 - Int(($fRot) * 20 / 144); decrease fontsize 32 to size 12 over 144 increments
    EndIf

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

    ;$w2 - Width of text rectangle; $h2 - Heigth of text rectangle
    $w2 = Int($fontSize * $txtlen2 * 3 / 4)
    $h2 = Int(($fontSize * 4 / 3) * (1280 / 1024))

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

    $winpos = WinGetPos($hGui)
    WinMove("Rotate Text", "", Mod($winpos[0] + 1, @DesktopWidth / 2), $winpos[1])

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

    If $fCol = 0 Then ;Randomize ARGB color
    $randcol = "0xff" & Hex(Random(0, 255, 1), 2) & Hex(Random(0, 255, 1), 2) & Hex(Random(0, 255, 1), 2)
    EndIf
    $fCol = Mod($fCol + 1, 18) ; Changes color 18 * 5deg = 90Deg

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

    ;DrawText( $nX, $nY, $nAngle, $iWidth, $iHeight, $txt, $iARGB , $fontSize )
    DrawText($GuiSize / 2, $GuiSize / 2, $nAngle, $w2, $h2, $txt2, $randcol, $fontSize)
    Sleep(40)
    Return 1
    EndFunc ;==>RotateText2

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

    Func DrawText($nX, $nY, $nAngle, $nWidth, $nHeight, $txt, $iARGB = 0xFF000000, $fontSize = 12)
    Local $hMatrix, $nXt, $nYt, $hBrush, $hFormat, $hFamily, $hFont, $tLayout, $x, $y
    ; $nXt - The X coordinate of the upper left corner of the Graphics object before rotation
    ; $nYt - The Y coordinate of the upper left corner of the Graphics object before rotation

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

    ;Rotation Matrix
    $hMatrix = _GDIPlus_MatrixCreate()
    _GDIPlus_MatrixRotate($hMatrix, $nAngle, 1)
    _GDIPlus_GraphicsSetTransform($hGraphic, $hMatrix)

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

    ;x, y display coordinates of center of height of the rectanglular text box ($height/2).
    ;x, y increment in a circular path with radius (width of text box)/2.
    $x = ($nWidth / 2) * Cos($nAngle * $nPI / 180) - ($nHeight / 2) * Sin($nAngle * $nPI / 180);Parametric equations for a circle
    $y = ($nWidth / 2) * Sin($nAngle * $nPI / 180) + ($nHeight / 2) * Cos($nAngle * $nPI / 180); and adjusts for center of text box

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

    ;Rotation of Coordinate Axes formulae
    ;Use $nXt, $nYt in _GDIPlus_RectFCreate. These x, y values is the handle of the rectangular text box point
    ; before rotation (translation of the matrix)
    $nXt = ($nX - $x) * Cos($nAngle * $nPI / 180) + ($nY - $y) * Sin($nAngle * $nPI / 180) ; $nXt - X coordinate before translation
    $nYt = -($nX - $x) * Sin($nAngle * $nPI / 180) + ($nY - $y) * Cos($nAngle * $nPI / 180) ; $nYt - Y coordinate before translation

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

    ; Parameters for lus_GraphicsDrawStringEx()
    $hBrush = _GDIPlus_BrushCreateSolid($iARGB)
    $hFormat = _GDIPlus_StringFormatCreate()
    $hFamily = _GDIPlus_FontFamilyCreate("Arial")
    ;$hFont = _GDIPlus_FontCreate ($hFamily, 32, 1)
    $hFont = _GDIPlus_FontCreate($hFamily, $fontSize, 1)
    $tLayout = _GDIPlus_RectFCreate($nXt, $nYt, $nWidth, $nHeight)
    _GDIPlus_GraphicsDrawStringEx($hGraphic, $txt, $hFont, $tLayout, $hFormat, $hBrush)
    Sleep(20)
    ; Clean up resources
    _GDIPlus_MatrixDispose($hMatrix)
    _GDIPlus_FontDispose($hFont)
    _GDIPlus_FontFamilyDispose($hFamily)
    _GDIPlus_StringFormatDispose($hFormat)
    _GDIPlus_BrushDispose($hBrush)
    Return 1
    EndFunc ;==>DrawText

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

    ; =================================================================
    ; Drag Window 3 of 3 addin
    ; =================================================================
    Func _WinMove($hWnd, $Command, $wParam, $lParam)
    If BitAND(WinGetState($hWnd), 32) Then Return $GUI_RUNDEFMSG
    ;DllCall("user32.dll", "long", "SendMessage", "hwnd", $HWnd, "int", $WM_SYSCOMMAND, "int", 0xF009, "int", 0)
    DllCall("user32.dll", "int", "SendMessage", "hWnd", $hWnd, "int", $WM_NCLBUTTONDOWN, "int", $HTCAPTION, "int", 0)
    EndFunc ;==>_WinMove

    [/autoit]
  • Texteingabe inkl. Enter

    • Xenobiologist
    • 7. August 2012 um 17:40

    Oder gleich ControlSetText mit ControlSend.

  • Spalte lesen und schreiben

    • Xenobiologist
    • 7. August 2012 um 13:50
    Spoiler anzeigen
    [autoit]

    #include <File.au3>
    #include <Array.au3>

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

    ; Create 2D Array mit allen Informationen
    Local $allInfo_A[1]
    Local $s_A = 0
    Local $z_A = StringSplit(StringStripCR(FileRead("ilse.txt")), @LF, 2)

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

    StringReplace($z_A[1], '|', '|')
    Local $sCount= @extended +1

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

    ReDim $allInfo_A[UBound($z_A)][$sCount]

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

    For $z = 1 To UBound($z_A) - 1
    $s_A = StringSplit($z_A[$z], '|', 2)
    For $y = 0 To UBound($s_A) - 1
    $allInfo_A[$z][$y] = $s_A[$y]
    Next
    Next

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

    _ArrayDisplay($allInfo_A)

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

    For $z = 1 To UBound($allInfo_A)-1
    $allInfo_A[$z][0] = 'ERSETZT : ' & $z & ' ' & @SEC
    Next

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

    _ArrayDisplay($allInfo_A)

    [/autoit]
  • Aufzeichnen -> TCP -> Abspielen (BassUDF)

    • Xenobiologist
    • 7. August 2012 um 13:04

    Wozu denn?
    Nimm doch gratissoftware die sowas schon kann.

  • Auto3Lib

    • Xenobiologist
    • 7. August 2012 um 09:05

    Was willst du denn tun?
    Die Lib ist out-of-date und wird nicht mehr gepflegt.
    Außerdem kannst du Sie nur mit einer alten AutoIt Version nutzen.
    Mittlerweile sollte alles was du willst mit "Standard" UDFs aus Autoit funktionieren.

  • _SQLite_Exec Update / Insert

    • Xenobiologist
    • 14. März 2012 um 16:19

    Da kein Modify zur Verfügung steht könntest du zum Beispiel ein Select zu erst absetzten und darauf reagieren ob Insert oder Update.

  • GuiCtrlRead TAB Problem

    • Xenobiologist
    • 8. März 2012 um 13:56
    [autoit]

    ;~ _GUICtrlTab_SetCurFocus($hTab, $GeheZu)
    _GUICtrlTab_ActivateTab($hTab, $GeheZu)

    [/autoit]
  • Problem mit autoit version 3.3.8.1

    • Xenobiologist
    • 8. März 2012 um 13:53

    Lass dir doch mal ausgeben was die Makros zurückgeben.

  • Label auf GDI+ Background

    • Xenobiologist
    • 3. März 2012 um 10:20

    Wenn eh ein Label ist, dann nimm doch wieder ein Bild und leg das drüber.

  • Mehrer Arrays zu einem zweidimensionalen Array kombinieren

    • Xenobiologist
    • 2. März 2012 um 08:36

    Warum speicherst du sie nicht gleich im Array?
    Mit einer Schleife und zum Beispiel Execute solltest du doch die variablen ansprechen und im Array speichern können.

  • Script hängt sich auf

    • Xenobiologist
    • 2. März 2012 um 08:32
    [autoit]

    Opt("TrayIconDebug", 0)
    ;0=no info, 1=debug line info

    [/autoit]


    an den Anfang des Skripts zum Beispiel.
    Dann könntest du auch bei den wichtigen Funktionen die Rückgabewerte prüfen und loggen.

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™