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. rewejo

Beiträge von rewejo

  • WLAN Netzwerk per Skript verbinden/trennen

    • rewejo
    • 29. August 2010 um 14:12

    schau mal hier

  • welcber browser ist installiet

    • rewejo
    • 24. August 2010 um 15:39

    ja möchte wissen welcher Browser der Standardbrowser ist . brauche das für ein script das unter ie ,ff laufen soll.
    folgende funktion abfrfrage welcher browser
    wenn ie dann script a,
    bei ff script b
    danke für jede hilfe

  • welcber browser ist installiet

    • rewejo
    • 23. August 2010 um 20:38

    hallo ich möchte über ne n script abfragen welcher browser installiet ist
    brauchte aber nen gedankenanstoss
    danke im vorraus.so
    gelöst

    Code
    $key = RegRead("HKEY_CLASSES_ROOT\http\shell\open\command","")
    $key1 = StringMid($key, 2, StringInStr($key, '"', 0, 2) - 2)
      MsgBox(0, "Standardbrowser",$key1 )
  • random+gui

    • rewejo
    • 2. September 2009 um 11:46

    nuts danke das war richtig
    @anno deins bekomme ich nicht zum laufen .ich finde einfach den fehler nicht bilder und code im gleichen orderner
    für eure hilfe viellen dank

  • random+gui

    • rewejo
    • 1. September 2009 um 12:13

    danke für eure hilfe
      @anno leider kommt fehlermeldung

    Spoiler anzeigen


    "C:\Programme\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "D:\Fische\random.au3" /autoit3dir "C:\Programme\AutoIt3" /UserParams
    +>12:03:20 Starting AutoIt3Wrapper v.1.10.1.12 Environment(Language:0407 Keyboard:00000407 OS:WIN_XP/Service Pack 2 CPU:X86 ANSI)
    >Running AU3Check (1.54.14.0) from:C:\Programme\AutoIt3
    +>12:03:20 AU3Check ended.rc:0
    >Running:(3.3.0.0):C:\Programme\AutoIt3\autoit3.exe "D:\Fische\random.au3"
    D:\Fische\random.au3 (11) : ==> Subscript used with non-Array variable.:
    $r = Random(1, $files[0], 1)
    $r = Random(1, $files^ ERROR
    ->12:03:20 AutoIT3.exe ended.rc:1
    +>12:03:21 AutoIt3Wrapper Finished
    >Exit code: 1 Time: 1.765


    sagt mir im nur das eine nicht Array variable benutzt wird
    nuts danke aber es wird kein bild inder gui angezeigt.es kommt keine fehlemeldungke
    kann einer helfen

  • random+gui

    • rewejo
    • 31. August 2009 um 13:24

    hallo ich habe mir eine gui erstellt wo die bilder per random erstellt werden sollen
    nur klappt das random nicht für jede hilfe dank bar

    Spoiler anzeigen
    [autoit]


    #include <GUIConstants.au3>
    #include <WindowsConstants.au3>
    #include <File.au3>
    $pic1="D:\Fisch-Bitmap\AAl.bmp"
    $pic2="D:\Fisch-Bitmap\bachforelle.bmp"
    $pic3="D:\Fisch-Bitmap\barbe.bmp"

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

    GUICreate("Meine Fische Mit Bild,Rechtschreibung Gross Und Klein Egal",1000,700)

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

    $a= Random($pic1,$pic3, 1)

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

    GUISetBkColor (0x90BBCC)
    GUICtrlCreateLabel("Wie Heißen Diese Fische",430,0,150,30)
    $1=GUICtrlCreateInput("",10,30,100,30)

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

    $2=GUICtrlCreateButton("O.K",110,30,30,30)
    GUICtrlCreatePic($a,10,60, 300,200)
    3=GUICtrlCreateInput("",350,30,100,30)
    $4=GUICtrlCreateButton("O.K",450,30,30,30)
    GUICtrlCreatePic("D:\Fisch-Bitmap\bachforelle.bmp",350,60, 300,200)

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

    $5=GUICtrlCreateInput("",690,30,100,30)
    $6=GUICtrlCreateButton("O.K",790,30,30,30)
    GUICtrlCreatePic("D:\Fisch-Bitmap\barbe.bmp",690,60, 300,200)
    GUISetState ()
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit]
  • Problem mit Bundesliga Gui

    • rewejo
    • 28. August 2009 um 19:28

    wenn willst du versrchen
    raupi und ich geben dir praktisch die gleiche antwort
    eine ist sogar mit lösung
    hohl :rofl::thumbdown:

  • Problem mit Bundesliga Gui

    • rewejo
    • 28. August 2009 um 15:25

    @Reaker lol wo bitte ein im deinen code ein event auf dem schliessen button
    $closerules definiert den button, aber einevent nicht
    $Label1 = GUICtrlCreateLabel("Das sind die aktuell vereinbarten Regeln:", 8, 16, 198, 17)
    $closerules = GUICtrlCreateButton("schließen", 532, 428, 97, 21, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    GUIDelete("Regeln")
    ExitLoop

    EndSwitch
    WEnd

    ich lach mich weg :rofl:

  • Problem mit Bundesliga Gui

    • rewejo
    • 27. August 2009 um 20:56
    [autoit]


    Case $closerules

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


    füge das malnach zeile 254 dann wird das button auchüber $closerules angesprochen

  • Java/JavaScript mit AutoIt ?

    • rewejo
    • 25. August 2009 um 18:24

    schau mal auf englischen forum ,meine da was gelesen zu habe

  • Frage zu _IE

    • rewejo
    • 24. August 2009 um 19:43

    ich saehe wie weit du gekommenn bist,klasse echt alles allein werd dir erstmal einig was du willst. kannst dann ja dein fertigen code posten
    solong

  • Frage zu _IE

    • rewejo
    • 24. August 2009 um 18:43

    so wenn eingabe falsch wird buttion login bei fehler rot, hättes du bestimm auch geschafft,bei richtiger eingabe wird die internetverbindung auf gebaut. mehr bau ich nicht um

    Spoiler anzeigen
    [autoit][/autoit] [autoit][/autoit] [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiStatusBar.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <GuiEdit.au3>
    #include <IE.au3>
    #include <File.au3>
    Opt("MouseCoordMode",0)
    #Region ### START Koda GUI section ### Form=d:\marcel\sonstiges\skripte\autoit\forms\schueler.kxf
    $Form1_1 = GUICreate("Schüler.CC", 205, 410, 325, 202)
    GUISetBkColor(0xFFFFFF)
    $Pic1 = GUICtrlCreatePic("C:\Users\Marcel\Desktop\logo.bmp", 16, 8, 169, 89, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Group1 = GUICtrlCreateGroup("Login", 9, 99, 177, 241)
    $Label1 = GUICtrlCreateLabel("E-Mail:", 16, 120, 36, 17)
    $Label2 = GUICtrlCreateLabel("Passwort:", 16, 160, 50, 17)
    GUICtrlCreateInput("", 16, 136, 161, 21)
    GUICtrlCreateInput("", 16, 176, 161, 21)
    ;$Checkbox1 = GUICtrlCreateCheckbox("eingeloggt bleiben", 24, 200, 105, 17)
    $Button1 = GUICtrlCreateButton("Login", 16, 224, 49, 21, $WS_GROUP)
    $Button2 = GUICtrlCreateButton("benutzer anlegen", 76, 224, 90, 21, $WS_GROUP)
    $Button3 = GUICtrlCreateButton("exit", 16, 350, 90, 21, $WS_GROUP)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    $StatusBar1 = _GUICtrlStatusBar_Create($Form1_1)
    _GUICtrlStatusBar_SetMinHeight($StatusBar1, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Case $Button1
    daten()
    Case $Button2
    benutzer()
    Case $Button3

    Exit
    EndSwitch
    WEnd
    Exit
    Func daten()
    $handle = ControlGetText ( "Schüler.CC", "", "[CLASS:Edit; INSTANCE:1]" );hole daten feld1
    ;MsgBox(64, "Information",$handle );test feld1
    $handle1 = ControlGetText ( "Schüler.CC", "", "[CLASS:Edit; INSTANCE:2]" );hole daten feld2
    ;MsgBox(64, "Information",$handle1 );test feld2
    if $handle=IniRead("C:\\schueler.ini", "sektion2", "email","falsch ")And $handle1=IniRead("C:\\schueler.ini", "sektion3", "pw","falsch ")Then
    $sUsername = $handle
    $sPassword = $handle1
    $sUrl = "http://www.schueler.cc/"
    $oIE = _IECreate ($sUrl)
    $oHWND = _IEPropertyGet($oIE, "hwnd")
    WinSetState ($oHWND, "", @SW_MAXIMIZE )
    $oForm = _IEFormGetCollection ($oIE, 2)
    $oUsername = _IEFormElementGetObjByName ($oForm, "email")
    $oPassword = _IEFormElementGetObjByName ($oForm, "passwort")
    _IEFormElementSetValue ($oUsername, $sUsername)
    _IEFormElementSetValue ($oPassword, $sPassword)

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

    $oSubmit = _IEGetObjByName ($oIE, "button_login_login")
    _IEAction ($oSubmit, "click")
    ; MsgBox(64, "Information","klappt" )
    Else
    ;MsgBox(64, "Information","klappt nicht" )

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

    GUICtrlSetBkColor($Button1, 0xFF0000);rot
    EndIf

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


    EndFunc


    Func benutzer ()
    If Not FileExists("C:\\schueler.ini") Then
    _FileCreate("C:\\schueler.ini")
    EndIf
    $email= InputBox("email","Bitte email eintragen","")

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

    IniWrite("C:\\schueler.ini", "sektion2", "email",$email)

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

    $password= InputBox("email","Bitte password eintragen","")

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

    IniWrite("C:\\schueler.ini", "sektion3", "pw",$password)

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

    EndFunc

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


  • Frage zu _IE

    • rewejo
    • 24. August 2009 um 17:52

    so habe deinegui nochmal umgebaut du kannst jetz für ein benutzer die daten eintragen :rofl: ,

    Spoiler anzeigen
    [autoit][/autoit] [autoit][/autoit] [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiStatusBar.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <GuiEdit.au3>
    #include <IE.au3>
    #include <File.au3>
    Opt("MouseCoordMode",0)
    #Region ### START Koda GUI section ### Form=d:\marcel\sonstiges\skripte\autoit\forms\schueler.kxf
    $Form1_1 = GUICreate("Schüler.CC", 205, 410, 325, 202)
    GUISetBkColor(0xFFFFFF)
    $Pic1 = GUICtrlCreatePic("C:\Users\Marcel\Desktop\logo.bmp", 16, 8, 169, 89, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Group1 = GUICtrlCreateGroup("Login", 9, 99, 177, 241)
    $Label1 = GUICtrlCreateLabel("E-Mail:", 16, 120, 36, 17)
    $Label2 = GUICtrlCreateLabel("Passwort:", 16, 160, 50, 17)
    GUICtrlCreateInput("", 16, 136, 161, 21)
    GUICtrlCreateInput("", 16, 176, 161, 21)
    ;$Checkbox1 = GUICtrlCreateCheckbox("eingeloggt bleiben", 24, 200, 105, 17)
    $Button1 = GUICtrlCreateButton("Login", 16, 224, 49, 21, $WS_GROUP)
    $Button2 = GUICtrlCreateButton("benutzer anlegen", 76, 224, 90, 21, $WS_GROUP)
    $Button3 = GUICtrlCreateButton("exit", 16, 350, 90, 21, $WS_GROUP)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    $StatusBar1 = _GUICtrlStatusBar_Create($Form1_1)
    _GUICtrlStatusBar_SetMinHeight($StatusBar1, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Case $Button1
    daten()
    Case $Button2
    benutzer()
    Case $Button3

    Exit
    EndSwitch
    WEnd
    Exit
    Func daten()
    $handle = ControlGetText ( "Schüler.CC", "", "[CLASS:Edit; INSTANCE:1]" );hole daten feld1
    ;MsgBox(64, "Information",$handle );test feld1
    $handle1 = ControlGetText ( "Schüler.CC", "", "[CLASS:Edit; INSTANCE:2]" );hole daten feld2
    ;MsgBox(64, "Information",$handle1 );test feld2
    if $handle=IniRead("C:\\schueler.ini", "sektion2", "email","falsch ")And $handle1=IniRead("C:\\schueler.ini", "sektion3", "pw","falsch ")Then

    MsgBox(64, "Information","klappt" )
    Else
    MsgBox(64, "Information","klappt nicht" )
    EndIf
    $sUsername = $handle
    $sPassword = $handle1
    $sUrl = "http://www.schueler.cc/"
    $oIE = _IECreate ($sUrl)
    $oHWND = _IEPropertyGet($oIE, "hwnd")
    WinSetState ($oHWND, "", @SW_MAXIMIZE )
    $oForm = _IEFormGetCollection ($oIE, 2)
    $oUsername = _IEFormElementGetObjByName ($oForm, "email")
    $oPassword = _IEFormElementGetObjByName ($oForm, "passwort")
    _IEFormElementSetValue ($oUsername, $sUsername)
    _IEFormElementSetValue ($oPassword, $sPassword)

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

    $oSubmit = _IEGetObjByName ($oIE, "button_login_login")
    _IEAction ($oSubmit, "click")

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

    Exit
    EndFunc


    Func benutzer ()
    If Not FileExists("C:\\schueler.ini") Then
    _FileCreate("C:\\schueler.ini")
    EndIf
    $email= InputBox("email","Bitte email eintragen","")

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

    IniWrite("C:\\schueler.ini", "sektion2", "email",$email)

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

    $password= InputBox("email","Bitte password eintragen","")

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

    IniWrite("C:\\schueler.ini", "sektion3", "pw",$password)

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

    EndFunc

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


  • Frage zu _IE

    • rewejo
    • 24. August 2009 um 15:11

    wenn du auf die überprüfung in der gui verzichtes würde es auf jeden konto bei http://www.schueler.cc gehen,
    must du nur zeile 40 bis44 löschen

  • Frage zu _IE

    • rewejo
    • 24. August 2009 um 13:18

    höre auf zu jammern, hier habe die checkbox aus deiner guiendfernt, du brauchst nurfür a deine emailadresse und für b dein password
    in zeile 40 ändern :rock:

    Spoiler anzeigen
    [autoit]


    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <GuiEdit.au3>
    #include <IE.au3>
    Opt("MouseCoordMode",0)
    #Region ### START Koda GUI section ### Form=d:\marcel\sonstiges\skripte\autoit\forms\schueler.kxf
    $Form1_1 = GUICreate("Schüler.CC", 205, 410, 325, 202)
    GUISetBkColor(0xFFFFFF)
    $Pic1 = GUICtrlCreatePic("C:\Users\Marcel\Desktop\logo.bmp", 16, 8, 169, 89, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Group1 = GUICtrlCreateGroup("Login", 9, 99, 177, 241)
    $Label1 = GUICtrlCreateLabel("E-Mail:", 16, 120, 36, 17)
    $Label2 = GUICtrlCreateLabel("Passwort:", 16, 160, 50, 17)
    GUICtrlCreateInput("", 16, 136, 161, 21)
    GUICtrlCreateInput("", 16, 176, 161, 21)
    ;$Checkbox1 = GUICtrlCreateCheckbox("eingeloggt bleiben", 24, 200, 105, 17)
    $Button1 = GUICtrlCreateButton("Login", 16, 224, 49, 21, $WS_GROUP)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    $StatusBar1 = _GUICtrlStatusBar_Create($Form1_1)
    _GUICtrlStatusBar_SetMinHeight($StatusBar1, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Case $Button1
    daten()


    Exit
    EndSwitch
    WEnd
    Exit
    Func daten()
    $handle = ControlGetText ( "Schüler.CC", "", "[CLASS:Edit; INSTANCE:1]" );hole daten feld1
    ;MsgBox(64, "Information",$handle );test feld1
    $handle1 = ControlGetText ( "Schüler.CC", "", "[CLASS:Edit; INSTANCE:2]" );hole daten feld2
    ;MsgBox(64, "Information",$handle1 );test feld2
    if $handle="a" And $handle1="b" Then;hier für a deine emailadresse und für b dein password
    MsgBox(64, "Information","klappt" )
    Else
    MsgBox(64, "Information","klappt nicht" )
    EndIf
    $sUsername = $handle
    $sPassword = $handle1
    $sUrl = "http://www.schueler.cc/"
    $oIE = _IECreate ($sUrl)
    $oHWND = _IEPropertyGet($oIE, "hwnd")
    WinSetState ($oHWND, "", @SW_MAXIMIZE )
    $oForm = _IEFormGetCollection ($oIE, 2)
    $oUsername = _IEFormElementGetObjByName ($oForm, "email")
    $oPassword = _IEFormElementGetObjByName ($oForm, "passwort")
    _IEFormElementSetValue ($oUsername, $sUsername)
    _IEFormElementSetValue ($oPassword, $sPassword)

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

    $oSubmit = _IEGetObjByName ($oIE, "button_login_login")
    _IEAction ($oSubmit, "click")

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

    Exit
    EndFunc

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


  • Frage zu _IE

    • rewejo
    • 23. August 2009 um 21:40

    bite schon must du nur anpassen, das login muste noch sellber machen

    Spoiler anzeigen
    [autoit]


    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiStatusBar.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <GuiEdit.au3>
    #Region ### START Koda GUI section ### Form=d:\marcel\sonstiges\skripte\autoit\forms\schueler.kxf
    $Form1_1 = GUICreate("Schüler.CC", 205, 410, 325, 202)
    GUISetBkColor(0xFFFFFF)
    $Pic1 = GUICtrlCreatePic("C:\Users\Marcel\Desktop\logo.bmp", 16, 8, 169, 89, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Group1 = GUICtrlCreateGroup("Login", 9, 99, 177, 241)
    $Label1 = GUICtrlCreateLabel("E-Mail:", 16, 120, 36, 17)
    $Label2 = GUICtrlCreateLabel("Passwort:", 16, 160, 50, 17)
    GUICtrlCreateInput("", 16, 136, 161, 21)
    GUICtrlCreateInput("", 16, 176, 161, 21)
    $Checkbox1 = GUICtrlCreateCheckbox("eingeloggt bleiben", 24, 200, 105, 17)
    $Button1 = GUICtrlCreateButton("Login", 16, 224, 49, 21, $WS_GROUP)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    $StatusBar1 = _GUICtrlStatusBar_Create($Form1_1)
    _GUICtrlStatusBar_SetMinHeight($StatusBar1, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Case $Button1
    daten()


    Exit
    EndSwitch
    WEnd
    Exit
    Func daten()
    $handle = ControlGetText ( "Schüler.CC", "", "[CLASS:Edit; INSTANCE:1]" );hole daten feld1
    ;MsgBox(64, "Information",$handle );test feld1
    $handle1 = ControlGetText ( "Schüler.CC", "", "[CLASS:Edit; INSTANCE:2]" );hole daten feld2
    ;MsgBox(64, "Information",$handle1 );test feld2
    if $handle="a" And $handle1="b" Then;hier für a deine emailadresse und für b dein password
    MsgBox(64, "Information","klappt" )
    Else
    MsgBox(64, "Information","klappt nicht" )
    EndIf
    EndFunc

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

    :rofl:

  • Frage zu _IE

    • rewejo
    • 23. August 2009 um 20:27

    benutze bitte bei nächtesmal das autoit zeichen zum ein fügen von deinen code

  • Frage zu _IE

    • rewejo
    • 23. August 2009 um 20:13

    schau dir mal _GUICtrlEdit mü+ste damit gehen

    Spoiler anzeigen
    [autoit]


    Funktionsreferenz
    _GUICtrlEdit_GetText
    --------------------------------------------------------------------------------

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

    Liest den Text eines Edit-Steuerelementes aus

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

    #Include <GuiEdit.au3>
    _GUICtrlEdit_GetText($hWnd)

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

    Parameter

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

    $hWnd Handle des Steuerelements

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

    Rückgabewert

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

    Erfolg: der Text als String vom Edit-Steuerelement
    Fehler: Leerer String

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

    Bemerkungen

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

    Nichts.

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

    Verwandte Funktionen

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

    _GUICtrlEdit_SetText, _GUICtrlEdit_AppendText

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

    Beispiel

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

    #include <GuiEdit.au3>

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

    Opt('MustDeclareVars', 1)

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

    $Debug_Ed = False ; Check ClassName being passed to Edit functions, set to True and use a handle to another control to see it work

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

    _Example_Internal()
    _Example_External()

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

    Func _Example_Internal()
    Local $hGUI, $hEdit

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

    ; Create GUI
    $hGUI = GUICreate("(Internal) Edit Get Text", 400, 300)
    $hEdit = GUICtrlCreateEdit("", 2, 2, 394, 268)
    GUISetState()

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

    ; Set Text
    _GUICtrlEdit_SetText ($hEdit, "This is a test" & @CRLF & "Another Line" & @CRLF & "Append to the end?")

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

    ; Get Text
    MsgBox(4160, "Information", _GUICtrlEdit_GetText ($hEdit))

    ; Loop until user exits
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
    EndFunc ;==>_Example_Internal

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

    Func _Example_External()
    Local $hGUI, $hEdit

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

    ; Create GUI
    $hGUI = GUICreate("(External) Edit Get Text", 400, 300)
    $hEdit = _GUICtrlEdit_Create ($hGUI, "", 2, 2, 394, 268)
    GUISetState()

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

    ; Set Text
    _GUICtrlEdit_SetText ($hEdit, "This is a test" & @CRLF & "Another Line" & @CRLF & "Append to the end?")

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

    ; Get Text
    MsgBox(4160, "Information", _GUICtrlEdit_GetText ($hEdit))

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

    ; Loop until user exits
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
    EndFunc ;==>_Example_External

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


  • Frage zu _IE

    • rewejo
    • 23. August 2009 um 20:03

    soll das in deiner gui oder im browser fenster geprüft werden

  • Login Bot

    • rewejo
    • 17. August 2009 um 21:29

    haloo hiee kleines beispiel für ein logen

    [autoit]


    #include <IE.au3>
    Opt("MouseCoordMode",0)
    $sUsername = " "
    $sPassword = " "
    $sUrl = "deineseite"
    $oIE = _IECreate ($sUrl)
    $oHWND = _IEPropertyGet($oIE, "hwnd")
    WinSetState ($oHWND, "", @SW_MAXIMIZE )
    $oForm = _IEFormGetCollection ($oIE, 0)
    $oUsername = _IEFormElementGetObjByName ($oForm, "username")
    $oPassword = _IEFormElementGetObjByName ($oForm, "password")
    _IEFormElementSetValue ($oUsername, $sUsername)
    _IEFormElementSetValue ($oPassword, $sPassword)
    _IEFormSubmit ($oForm)

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


    das must du nur für dich anpassen oder die url posten

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™