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

  • Status einer Netzwerk-Verbindung auslesen

    • Xenobiologist
    • 2. Februar 2008 um 14:56

    Hi,

    versuch es mal so:

    [autoit]

    If _getWlanStatus() Then
    MsgBox(64, 'info', 'online!')
    Else
    MsgBox(64, 'info', 'offline!')
    EndIf

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

    Func _getWlanStatus()
    Local Const $STDOUT_CHILD = 2
    Local Const $STDERR_CHILD = 4
    Local $text = '', $command = 'ipconfig /all"'
    Local $stream = Run(@ComSpec & ' /c ' & $command, '', @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
    While 1
    $text &= @CR & StdoutRead($stream)
    If @error Then ExitLoop
    WEnd
    Local $re = StringRegExp($text, '(?<=Medienstatus\. \. \. \. \. \. \. \. \. \. \. : ).*', 3)
    If @error Then Return -1
    If StringInStr($re[0], 'keine Verbindung') Then Return 0
    Return 1
    EndFunc ;==>_getWlanStatus

    [/autoit]

    Mega

  • GUI Hintergrund transparent für Ebay_Widget

    • Xenobiologist
    • 2. Februar 2008 um 14:51

    Hi,

    mach doch die GUI einfach nur genauso groß wie die Controls sind. :D

    Gucke nach der Fußballkonferenz mal ob sowas geht.

    Mega

  • Slider genau einstellen

    • Xenobiologist
    • 2. Februar 2008 um 14:35

    Hi,

    1.

    [autoit]

    $lnkShortcutLocation = @DesktopCommonDir & '\Mozilla Firefox.lnk'
    If FileExists($lnkShortcutLocation) Then
    Run(@ComSpec & ' /c "' & $lnkShortcutLocation & '"', '', @SW_HIDE)
    Else
    MsgBox(16, "error", "File does not exist", 3)
    EndIf

    [/autoit]

    2. Bitte Bsp posten

    Mega

  • GUI Hintergrund transparent für Ebay_Widget

    • Xenobiologist
    • 2. Februar 2008 um 14:33

    Hi,

    was soll es denn werden? Soll man durchgucken können?

    Mega

  • Word Datei öffnen (leeres Dokument soll aber nicht erstellt werden)

    • Xenobiologist
    • 2. Februar 2008 um 13:53

    zum Öffnen eines WordDocs wenn du ein Object hast.

  • Word Datei öffnen (leeres Dokument soll aber nicht erstellt werden)

    • Xenobiologist
    • 2. Februar 2008 um 13:02

    Hi,

    das sagst du ihn doch aber auch???

    Warum machst du nicht einach

    [autoit]

    #include <Word.au3>
    $path = @DesktopDir & '\Stand2008_01_29.doc'
    $oWordApp = _WordCreate ($path)

    [/autoit]


    Mega

  • Mehrere Filter bei _FileListToArray()?

    • Xenobiologist
    • 1. Februar 2008 um 22:07

    Hi,

    kannst du sie nicht schon vorher sortieren und sortiert übergeben?

    Mega

  • upx

    • Xenobiologist
    • 1. Februar 2008 um 14:45

    Hi,

    was??? ?(

    Mega

  • SciTE: Script kompilieren mit F5 oder Alt-F5

    • Xenobiologist
    • 1. Februar 2008 um 14:01

    Hi,

    compile ist auch F7 und nicht F5!!!

    Mega

  • RAM

    • Xenobiologist
    • 1. Februar 2008 um 13:40

    HI,

    ich habe die Erfahrung gemacht, das eine Aufrüstung meist der Anfang vom Ende ist. :D

    Erst RAM, dann CPU dann Mainboard, dann GraKa usw.

    Also überleg dir das vorher, bevor du Dinge kaufst die anschließend z.B. mit einem späteren neuen Mainboard nicht kompatibel sind.

    Mega

  • Auto It und Strg + TAB

    • Xenobiologist
    • 31. Januar 2008 um 17:56

    Und wie komme ich da hin? Weiß nicht, was ich tun muss damit ich testen kann. ;(

  • ControlClick - Wie die Instanz nutzen?

    • Xenobiologist
    • 31. Januar 2008 um 16:52

    Hi,

    nimm mal die class mit rein: "[CLASS:MozillaUIWindowClass; INSTANCE:2]"

    Mega

  • Mehrere Filter bei _FileListToArray()?

    • Xenobiologist
    • 31. Januar 2008 um 16:34

    Hi,

    wie würde denn der manuelle Aufruf aussehen?

    Mega

  • Text DIREKT auf dem Bildschirm ausgeben

    • Xenobiologist
    • 31. Januar 2008 um 16:33

    Hi,

    die Frage ist, was hast du gemacht? Code? Welches Spiel usw.?

    Mega

  • Auto It und Strg + TAB

    • Xenobiologist
    • 31. Januar 2008 um 16:32

    Hi,

    naja, du musst schon den Fenstertitel eintragen. Am besten machst du mal einen Screenshot wo du dich befindest.

    Mega

  • Auto It und Strg + TAB

    • Xenobiologist
    • 31. Januar 2008 um 16:12

    Hi,

    versuch mal sowas:

    [autoit]

    ControlCommand('', "", "SysTabControl321", "TabRight")

    [/autoit]

    Mega

  • nun doch dabei...

    • Xenobiologist
    • 31. Januar 2008 um 15:00

    Willkommen,

    etwas gegen dein Alter? Manchmal wäre ich auch gern nochnmal 15 :D

    Oh sehe gerade habe dir schon geholfen :thumbup:

    Mega

  • Text DIREKT auf dem Bildschirm ausgeben

    • Xenobiologist
    • 31. Januar 2008 um 14:59

    keine Ursache :D

  • Mehrere Filter bei _FileListToArray()?

    • Xenobiologist
    • 31. Januar 2008 um 14:58
    Spoiler anzeigen
    [autoit]

    ;===============================================================================
    ;
    ; Description: lists all or preferred files and or folders in a specified path (Similar to using Dir with the /B Switch)
    ; Syntax: _FileListToArrayEx($sPath, $sFilter = '*.*', $iFlag = 0, $sExclude = '')
    ; Parameter(s): $sPath = Path to generate filelist for
    ; $sFilter = The filter to use. Search the Autoit3 manual for the word "WildCards" For details, support now for multiple searches
    ; Example *.exe; *.txt will find all .exe and .txt files
    ; $iFlag = determines weather to return file or folders or both.
    ; $sExclude = exclude a file from the list by all or part of its name
    ; Example: Unins* will remove all files/folders that start with Unins
    ; $iFlag=0(Default) Return both files and folders
    ; $iFlag=1 Return files Only
    ; $iFlag=2 Return Folders Only
    ;
    ; Requirement(s): None
    ; Return Value(s): On Success - Returns an array containing the list of files and folders in the specified path
    ; On Failure - Returns the an empty string "" if no files are found and sets @Error on errors
    ; @Error or @extended = 1 Path not found or invalid
    ; @Error or @extended = 2 Invalid $sFilter or Invalid $sExclude
    ; @Error or @extended = 3 Invalid $iFlag
    ; @Error or @extended = 4 No File(s) Found
    ;
    ; Author(s): SmOke_N
    ; Note(s): The array returned is one-dimensional and is made up as follows:
    ; $array[0] = Number of Files\Folders returned
    ; $array[1] = 1st File\Folder
    ; $array[2] = 2nd File\Folder
    ; $array[3] = 3rd File\Folder
    ; $array[n] = nth File\Folder
    ;
    ; All files are written to a "reserved" .tmp file (Thanks to gafrost) for the example
    ; The Reserved file is then read into an array, then deleted
    ;===============================================================================
    #include<array.au3>

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

    $hFilesFolders = _FileListToArrayEx("c:\Downloads", '*.au3;*.txt', Default, "")

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

    _ArrayDisplay($hFilesFolders, 'Exe and Txt')
    Func _FileListToArrayEx($sPath, $sFilter = '*.*', $iFlag = 0, $sExclude = '')
    If Not FileExists($sPath) Then Return SetError(1, 1, '')
    If $sFilter = -1 Or $sFilter = Default Then $sFilter = '*.*'
    If $iFlag = -1 Or $iFlag = Default Then $iFlag = 0
    If $sExclude = -1 Or $sExclude = Default Then $sExclude = ''
    Local $aBadChar[6] = ['\', '/', ':', '>', '<', '|']
    For $iCC = 0 To 5
    If StringInStr($sFilter, $aBadChar[$iCC]) Or _
    StringInStr($sExclude, $aBadChar[$iCC]) Then Return SetError(2, 2, '')
    Next
    If StringStripWS($sFilter, 8) = '' Then Return SetError(2, 2, '')
    If Not ($iFlag = 0 Or $iFlag = 1 Or $iFlag = 2) Then Return SetError(3, 3, '')
    Local $oFSO = ObjCreate("Scripting.FileSystemObject"), $sTFolder
    $sTFolder = $oFSO.GetSpecialFolder(2)
    Local $hOutFile = @TempDir & $oFSO.GetTempName
    If Not StringInStr($sFilter, ';') Then $sFilter &= ';'
    Local $aSplit = StringSplit(StringStripWS($sFilter, 8), ';'), $sRead
    For $iCC = 1 To $aSplit[0]
    If StringStripWS($aSplit[$iCC], 8) = '' Then ContinueLoop
    If StringLeft($aSplit[$iCC], 1) = '.' And _
    UBound(StringSplit($aSplit[$iCC], '.')) - 2 = 1 Then $aSplit[$iCC] = '*' & $aSplit[$iCC]
    RunWait(@ComSpec & ' /c ' & 'dir "' & $sPath & '\' & $aSplit[$iCC] _
    & '" /b /o-e /od > "' & $hOutFile & '"', '', @SW_HIDE)
    $sRead &= FileRead($hOutFile)
    If Not FileExists($hOutFile) Then Return SetError(4, 4, '')
    FileDelete($hOutFile)
    Next
    If StringStripWS($sRead, 8) = '' Then SetError(4, 4, '')
    Local $aFSplit = StringSplit(StringTrimRight(StringStripCR($sRead), 1), @LF)
    Local $sHold
    For $iCC = 1 To $aFSplit[0]
    If $sExclude And StringLeft($aFSplit[$iCC], _
    StringLen(StringReplace($sExclude, '*', ''))) = StringReplace($sExclude, '*', '') Then ContinueLoop
    Switch $iFlag
    Case 0
    $sHold &= $aFSplit[$iCC] & Chr(1)
    Case 1
    If StringInStr(FileGetAttrib($sPath & '\' & $aFSplit[$iCC]), 'd') Then ContinueLoop
    $sHold &= $aFSplit[$iCC] & Chr(1)
    Case 2
    If Not StringInStr(FileGetAttrib($sPath & '\' & $aFSplit[$iCC]), 'd') Then ContinueLoop
    $sHold &= $aFSplit[$iCC] & Chr(1)
    EndSwitch
    Next
    If StringTrimRight($sHold, 1) Then Return StringSplit(StringTrimRight($sHold, 1), Chr(1))
    Return SetError(4, 4, '')
    EndFunc

    [/autoit]

    Mega

  • Text DIREKT auf dem Bildschirm ausgeben

    • Xenobiologist
    • 31. Januar 2008 um 14:52

    HI,

    such mal nach 3000 von mir.

    [ gelöst ] 3000 Ich brauche HILFE

    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™