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

Beiträge von blackcho

  • Brauche Unterstützung bei AutoIt

    • blackcho
    • 10. März 2021 um 17:43

    Schau dir das hier mal an

    musst einfach zwischen GTA und CSGO wechseln

    C
    #include <ButtonConstants.au3>
    #include <ComboConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <MsgBoxConstants.au3>
    $var11 = 1
    $var12 = 1
    
    ;Hier wird ein Fenster erstellt
    $Form1 = GUICreate("Minimal requirements", 615, 437, 192, 124)
    
    
    
    
    
    ;Hier werden DropDownMenu, sowie Inhalt des Menus erstellt
    $DropDownMenu = GUICtrlCreateCombo("CSGO", 16, 16, 169, 25)
    GUICtrlSetData($DropDownMenu, "Valorant|GTA V|The Forest|Apex Legends|League of Legends|Forza Horizon 4|Black Desert Online|Black Squad|Minecraft|Fortnite", "")
    
    
    ;Hier wird ein Button erstellt
    $Button = GUICtrlCreateButton("Suchen", 40, 48, 123, 33)
    ;Hier wird der Button ausgewählt, damit er mit dem Drop Down interagieren kann.
    GUICtrlSetState(-1, $GUI_FOCUS)
    
    $label1=GUICtrlCreateLabel("Du befindest dich im Bereich:"& GUICtrlRead($DropDownMenu),0,100)
    
    
    
    
    
    
    
    
    
    
    
    ;Zeigt das Fenster bzw. G U I an
    GUISetState(@SW_SHOW)
    
    $gui1 = GUICreate("GUI-1", 259, 46)
    GUICtrlSetState(-1, $GUI_DISABLE)
    GUISetState(@SW_HIDE)
    
    
    
    $gui2 = GUICreate("GUI-2", 259, 46)
    GUICtrlSetState(-1, $GUI_DISABLE)
    GUISetState(@SW_HIDE)
    
    
    
    $gui3 = GUICreate("GUI-3", 259, 46)
    GUICtrlSetState(-1, $GUI_DISABLE)
    GUISetState(@SW_HIDE)
    
    
    Func Test1 ()
        If $var11 = 1 Then
        GUICtrlSetData($label1,"Du befindest dich im Bereich:"& GUICtrlRead($DropDownMenu))
        GUISetState(@SW_HIDE, $gui2)
        GUISetState(@SW_SHOW, $gui3)
        EndIf
        $var11 = 2
        $var12 = 1
    
    EndFunc
    
    Func Test2 ()
    
        If $var12 = 1 Then
            GUICtrlSetData($label1,"Du befindest dich im Bereich:"& GUICtrlRead($DropDownMenu))
            GUISetState(@SW_HIDE, $gui3)
            GUISetState(@SW_SHOW, $gui2)
        $var12 = 2
        $var11 = 1
        EndIf
    
    
    EndFunc
    
    
    
    ;Das ist eine Schleife, damit das Fenster geschlossen werden kann -> Oben Rechts in der Ecke das "x".
    While 1000
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
        Case $Button
            If GUICtrlRead($DropDownMenu) = "CSGO" Then
        Test1()
    ElseIf GUICtrlRead($DropDownMenu) = "GTA V" Then
        Test2()
    EndIf
    ;MsgBox(64, "Read Combo", "You selected: " & GUICtrlRead($DropDownMenu))
    EndSwitch
    WEnd
    Alles anzeigen
  • Brauche Unterstützung bei AutoIt

    • blackcho
    • 10. März 2021 um 17:03

    Schau mal ob es dir weiterhilft

    C
    #include <ButtonConstants.au3>
    #include <ComboConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <MsgBoxConstants.au3>
    
    
    ;Hier wird ein Fenster erstellt
    $Form1 = GUICreate("Minimal requirements", 615, 437, 192, 124)
    
    
    ;Hier werden DropDownMenu, sowie Inhalt des Menus erstellt
    $DropDownMenu = GUICtrlCreateCombo("CSGO", 16, 16, 169, 25)
    GUICtrlSetData($DropDownMenu, "Valorant|GTA V|The Forest|Apex Legends|League of Legends|Forza Horizon 4|Black Desert Online|Black Squad|Minecraft|Fortnite", "")
    
    
    ;Hier wird ein Button erstellt
    $Button = GUICtrlCreateButton("Suchen", 40, 48, 123, 33)
    ;Hier wird der Button ausgewählt, damit er mit dem Drop Down interagieren kann.
    GUICtrlSetState(-1, $GUI_FOCUS)
    
    
    
    
    
    
    
    
    
    
    ;Zeigt das Fenster bzw. G U I an
    GUISetState(@SW_SHOW)
    
    
    
    
    
    
    ;Das ist eine Schleife, damit das Fenster geschlossen werden kann -> Oben Rechts in der Ecke das "x".
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button
    MsgBox(64, "Read Combo", "You selected: " & GUICtrlRead($DropDownMenu))
    
    
    EndSwitch
    WEnd
    Alles anzeigen
  • Raspberry Pi AutoIT

    • blackcho
    • 10. März 2021 um 16:51

    Eigentlich ist mein Ziel nur Daten aus einer Webseite auszulesen und diese Automatisiert zu verarbeiten.

    Ich bedanke mich für eure Hilfe und entschuldige mich für die späte Antwort.

    Oscar einen Arduino besitze ich tatsächlich bin aber ehrlich zu sein aktuell noch nicht vertraut mit der Thematik, habe mir nun vorgenommen eine Programmiersprache zulernen, welche es sein wird weiß ich leider noch nicht muss mich wohl erstmal damit auseinandersetzen was sinnvoll ist.

  • Raspberry Pi AutoIT

    • blackcho
    • 28. Januar 2021 um 15:18

    erstmal danke für euer Feedback,

    Also bin eigentlich schon froh wenn ich meine Programme mit AutoIT geschrieben bekomme.

    Weiß dann nicht wie sinnvoll es ist eine kompliziertere Sprache zu lernen.

    Ich könnte es ja versuchen, ich arbeite hauptsächlich mit winhttp . Was wäre da eine einfache Sprache

  • Raspberry Pi AutoIT

    • blackcho
    • 27. Januar 2021 um 21:55

    Abend liebe AutoIT Community,

    Habe folgendes Ziel möchte mein AutoIT Programm auf ein Raspberry Pi laufen lassen.

    Wäre das möglich? Kriege ich da überhaupt Windows drauf? Oder eher nicht je nachdem würde ich mir ein Raspberry Pi zulegen/bestellen.

    Danke schon mal für eure Hilfe

  • StringRegExp

    • blackcho
    • 22. Januar 2021 um 10:00

    Ich danke euch habe mein Ziel jetzt tatsächlich erreicht .

    Vielen Dank

  • StringRegExp

    • blackcho
    • 21. Januar 2021 um 16:38
    Zitat von AspirinJunkie

    Möchtest du nur die Zahlen als Rückgabe?

    Dann z.B. so: &atype=(\d+)

    Deine .+ Konstrukte sind gierig und sorgen dafür, dass diese alles bis zum Ende matchen.
    Daher wird zwischendurch nichts anderes mehr erfasst.

    Zum Erstellen bieten sich spezielle RegEx-Tools an: https://regex101.com/r/zKFK1L/1

    Danke für die Hilfe.

    Habe jetzt mal etwas gelesen und Probiert jedoch komme ich trz nicht weiter...

    Spoiler anzeigen

    https://regex101.com/r/MEqQyC/1

    Möchte jetzt nur die Zahl hinter Test haben wenn davor im Satz beim Ist eine 1 ist also "is1t"

    Code
    "213Das "is1t" 'ein' Test32" "253Das "ist" 'ein' Test332" "23Das "ist" 'ein' Test342" "237Das "is1t" 'ein' Test32" "283Das "ist" 'ein' Test312" 
  • StringRegExp

    • blackcho
    • 21. Januar 2021 um 15:55

    Hallo liebe AutoIT Community ,

    Brauche beim folgenden Problem Hilfe

    Spoiler anzeigen
    Code
    $ret = StringRegExp("bla'action=collect&atype=1',bla'action=collect&atype=3',bla'action=collect&atype=2',bla'action=collect&atype=1',", "bla.+&atype=(.+)",3)
    _ArrayDisplay($ret)

    Ich möchte alle Zahlen bei atype auslesen kriege es aber leider nicht hin.

    Hätte jemand ein Ratschlag für mich?

  • Login mit Winhttp

    • blackcho
    • 16. Dezember 2016 um 11:18

    Danke dir es hat geklappt.
    Habe leider gerade nicht die Zeit zu aber werde mir später anschauen was ich falsch gemacht habe.
    Bin dir wirklich sehr dankbar.

  • Login mit Winhttp

    • blackcho
    • 15. Dezember 2016 um 23:28

    Werde ich morgen testen
    Danke

  • Login mit Winhttp

    • blackcho
    • 15. Dezember 2016 um 20:55

    Ne bekomme es einfach nicht auf die Reihe...

    Aktueller AutoIT Code:

    Spoiler anzeigen
    AutoIt
    #include <WinHTTP.au3>
    #include <Array.au3>
    Local $aChars[29][2] = [['?','%3F'], _
                           ['Ä','%C4'], _
                           ['Ü','%DC'], _
                           ['Ö','%D6'], _
                           ['ä','%E4'], _
                           ['ü','%FC'], _
                           ['ö','%F6'], _
                           ['ß','%DF'], _
                           [' ','+'], _
                           ['/','%2F'], _
                           [';','%3B'], _
                           ['"','%22'], _
                           ['(','('], _
                           [')',')'], _
                           ["'",'%2C'], _
                           ['.','%2E'], _
                           [':','%3A'], _
                           ['<','%3C'], _
                           ['>','%3E'], _
                           ['@','%40'], _
                           ['[','%5B'], _
    					   ['=','%3D'], _
                           [']','%5D'], _
                           ['\','%5C'], _
                           ['^','%5E'], _
                           ['{','%7B'], _
                           ['}','%7D'], _
                           ['|','%7C'], _
                           ['#','%23']] ;
    $oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
    $oHTTP.Open("POST", "http://www.gtlpins.com/Aroma/Login.aspx", False)
    $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
    $oHTTP.Send()
    $oReceived = $oHTTP.ResponseText
    $iresult1 = StringRegExp($oReceived, '<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="(.*?)" />', 3)
    $iresult2 = StringRegExp($oReceived, '<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="(.*?)" />', 3)
    For $i = 0 To UBound($aChars) - 1 Step 1
    If StringRegExp($iresult1[0],$aChars[$i][0]) = 1 Then
       $iresult1[0] = StringReplace($iresult1[0],$aChars[$i][0], $aChars[$i][1])
    EndIf
    If StringRegExp($iresult2[0],$aChars[$i][0]) = 1 Then
       $iresult2[0] = StringReplace($iresult2[0],$aChars[$i][0], $aChars[$i][1])
    EndIf
    Next
    $sString = "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE="&$iresult1[0]&"&__EVENTVALIDATION="&$iresult2[0]&"&txtUserName=Zensur&txtPassword=Zensur&loginbtnlogin=Anmelden"
    $oHTTP.Send($sString)
    $oReceived2 = $oHTTP.ResponseText
    If Not StringRegExp($oReceived2,"<span><H1>Server Error in '/aroma' Application.<hr width=100% size=1 color=silver></H1>")   = 1 Then
    MsgBox(0,"t","t")
    EndIf
    $oStatusCode = $oHTTP.Status
    ;~ FileWrite($file, $oReceived)
    FileWrite("Antwort.html", $oReceived2)
    FileWrite("Antwort.html",$sString)
    ;~ ClipPut($sString)
    Alles anzeigen


    Ich weiß einfach nicht woran es liegt was ich falsch mache wieso es nicht klappt:(

  • Login mit Winhttp

    • blackcho
    • 14. Dezember 2016 um 22:59

    Ooo Stimmt.
    Klappt leider trotzdem nicht.

  • Login mit Winhttp

    • blackcho
    • 14. Dezember 2016 um 22:40

    Danke dir für deine Antwort.
    Also Debugging betreibe ich sowieso schon. Dort noch keinen Fehler finden können.

    Habe es nun auch mit einem Encoder versucht Ergebnis bleibt das selbe :(
    Finde ich echt Schade...
    Neuer Versuch:

    Spoiler anzeigen
    C
    #include <WinHTTP.au3>
    #include <Array.au3>
    Local $aChars[29][2] = [['?','%3F'], _
                           ['Ä','%C4'], _
                           ['Ü','%DC'], _
                           ['Ö','%D6'], _
                           ['ä','%E4'], _
                           ['ü','%FC'], _
                           ['ö','%F6'], _
                           ['ß','%DF'], _
                           [' ','+'], _
                           ['/','%2F'], _
                           [';','%3B'], _
                           ['"','%22'], _
                           ['(','('], _
                           [')',')'], _
                           ["'",'%2C'], _
                           ['.','%2E'], _
                           [':','%3A'], _
                           ['<','%3C'], _
                           ['>','%3E'], _
                           ['@','%40'], _
                           ['[','%5B'], _
    					   ['=','%3D'], _
                           [']','%5D'], _
                           ['\','%5C'], _
                           ['^','%5E'], _
                           ['{','%7B'], _
                           ['}','%7D'], _
                           ['|','%7C'], _
                           ['#','%23']] ;
    $HTTP_Host = "www.gtlpins.com"
    $HTTP_Agent = _WinHttpOpen("Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0")
    $HTTP_Connect = _WinHttpConnect($HTTP_Agent, $HTTP_Host)
    $hSession = _WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0")
    $hConnect = _WinHttpConnect($hSession, "www.gtlpins.com")
    $quelle = _Easy_WinHttp("GET", "/Aroma/Login.aspx")
    $iresult1 = StringRegExp($quelle, '<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="(.*?)" />', 3)
    $iresult2 = StringRegExp($quelle, '<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="(.*?)" />', 3)
    For $i = 0 To UBound($aChars) - 1 Step 1
    If StringRegExp($iresult1[0],$aChars[$i][0]) = 1 Then
       $iresult1[0] = StringReplace($iresult1[0],$aChars[$i][0], $aChars[$i][1])
    EndIf
    If StringRegExp($iresult2[0],$aChars[$i][0]) = 1 Then
       $iresult2[0] = StringReplace($iresult2[0],$aChars[$i][0], $aChars[$i][1])
    EndIf
    Next
    $sString = "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE="&$iresult1[0]&"&__EVENTVALIDATION="&$iresult2[0]&"&txtUserName=Zensur&txtPassword=Zensur&loginbtnlogin=Anmelden"
    ClipPut($sString)
    $sHTML = _WinHttpSimpleRequest($hConnect, "POST", "/Aroma/Login.aspx", "http://www.gtlpins.com/Aroma/Login.aspx",$sString)
    FileWrite("Test1.html", $sHTML)
    _WinHttpCloseHandle($hConnect)
    _WinHttpCloseHandle($hSession)
    Func _Easy_WinHttp($sType = "GET", $sPage = "/", $sPost = "")
    	$HTTP_Request = _WinHttpOpenRequest($HTTP_Connect, $sType, $sPage, "HTTP/1.1", $HTTP_Host)
    	If StringLen($sPost) Then
    		_WinHttpSendRequest($HTTP_Request, "Content-Type: application/x-www-form-urlencoded" & @CRLF, $sPost)
    	Else
    		_WinHttpSendRequest($HTTP_Request)
    	EndIf
    	_WinHttpReceiveResponse($HTTP_Request)
    	$HTML = ""
    	Do
    		$HTML &= _WinHttpReadData($HTTP_Request)
    	Until @error
    	_WinHttpCloseHandle($HTTP_Request)
    	Return $HTML
    EndFunc   ;==>_Easy_WinHttp
    Alles anzeigen
  • Login mit Winhttp

    • blackcho
    • 14. Dezember 2016 um 18:34


    Hallo liebe Community,

    Ich stehe gerade vor einem Problem wäre sehr dankbar für jede Hilfe.
    Ich versuche zurzeit mir den umgang mit einer Seite zuvereinfachen.
    Das Ziel ist es das Drucken von Guthaben-Karten zu beschleunigen, leider kann ich euch kein Test-Account anbieten
    hoffe aber das ihr mir auch so helfen könnt.

    Link:
    https://autoit.de/www.gtlpins.com

    Code:

    Spoiler anzeigen
    AutoIt
    #include <WinHTTP.au3>
    $HTTP_Host = "www.gtlpins.com"
    $HTTP_Agent = _WinHttpOpen("Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0")
    $HTTP_Connect = _WinHttpConnect($HTTP_Agent, $HTTP_Host)
    $hSession = _WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0")
    $hConnect = _WinHttpConnect($hSession, "www.gtlpins.com")
    $quelle = _Easy_WinHttp("GET", "/Aroma/Login.aspx")
    $iresult1 = StringRegExp($quelle, '<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="(.*?)" />', 3)
    $iresult2 = StringRegExp($quelle, '<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="(.*?)" />', 3)
    $sHTML = _WinHttpSimpleRequest($hConnect, "POST", "/Aroma/Login.aspx", "http://www.gtlpins.com/Aroma/Login.aspx", "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE="&$iresult1[0]&"&__EVENTVALIDATION="&$iresult2[0]&"&txtUserName=zensiert&txtPassword=zensiert&loginbtnlogin=Anmelden")
    FileWrite("Test1.html", $sHTML)
    _WinHttpCloseHandle($hConnect)
    _WinHttpCloseHandle($hSession)
    Func _Easy_WinHttp($sType = "GET", $sPage = "/", $sPost = "")
    	$HTTP_Request = _WinHttpOpenRequest($HTTP_Connect, $sType, $sPage, "HTTP/1.1", $HTTP_Host)
    	If StringLen($sPost) Then
    		_WinHttpSendRequest($HTTP_Request, "Content-Type: application/x-www-form-urlencoded" & @CRLF, $sPost)
    	Else
    		_WinHttpSendRequest($HTTP_Request)
    	EndIf
    	_WinHttpReceiveResponse($HTTP_Request)
    	$HTML = ""
    	Do
    		$HTML &= _WinHttpReadData($HTTP_Request)
    	Until @error
    	_WinHttpCloseHandle($HTTP_Request)
    	Return $HTML
    EndFunc   ;==>_Easy_WinHttp
    Alles anzeigen

    Quelltext vom Ergebnis:


    Spoiler anzeigen
    HTML: Test1
    <!DOCTYPE html>
    <html>
        <head>
            <title>Runtime Error</title>
            <meta name="viewport" content="width=device-width" />
            <style>
             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
             pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
             .marker {font-weight: bold; color: black;text-decoration: none;}
             .version {color: gray;}
             .error {margin-bottom: 10px;}
             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
             @media screen and (max-width: 639px) {
              pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
             }
             @media screen and (max-width: 479px) {
              pre { width: 280px; }
             }
            </style>
        </head>
        <body bgcolor="white">
                <span><H1>Server Error in '/aroma' Application.<hr width=100% size=1 color=silver></H1>
                <h2> <i>Runtime Error</i> </h2></span>
                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
                <b> Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
                <br><br>
                <b>Details:</b> To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".<br><br>
                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code><pre>
    <!-- Web.Config Configuration File -->
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration></pre></code>
                      </td>
                   </tr>
                </table>
                <br>
                <b>Notes:</b> The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.<br><br>
                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code><pre>
    <!-- Web.Config Configuration File -->
    <configuration>
        <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration></pre></code>
                      </td>
                   </tr>
                </table>
                <br>
        </body>
    </html>
    Alles anzeigen

    Wenn ich noch irgendwas ergänzen solle einfach sagen :D

  • Brauche Hilfe zu StringRegExp (Neu)

    • blackcho
    • 6. Juni 2015 um 12:49

    Danke hast mir wirklich sehr weitergeholfen.
    Hab mir Gestern mehrere Tutorials mehrmals durchgelesen um selber eine Lösung zufinden doch hab es einfach nicht geschafft Danke.

  • Brauche Hilfe zu StringRegExp (Neu)

    • blackcho
    • 5. Juni 2015 um 11:20

    danke
    Habe eine weitere frage zu StringRegEXP
    Hab jetzt als zum prüfendem String:

    HTML
    <div class="blabla" id="blabla_blabla_33" style="z-index:1001;width:70px;height:46px;background:url(text/datei1.png) no-repeat;position:absolute;left:1030px;top:622px;"><img src="text/bild1_2.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_34" style="z-index:1001;width:70px;height:46px;background:url(text/datei2.png) no-repeat;position:absolute;left:1085px;top:622px;"><img src="text/bild3_4.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_35" style="z-index:1001;width:70px;height:46px;background:url(text/datei1.png) no-repeat;position:absolute;left:1140px;top:622px;"><img src="text/bild1_4.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_36" style="z-index:1001;width:70px;height:46px;background:url(text/datei4.png) no-repeat;position:absolute;left:1195px;top:622px;"><img src="text/bild1_2.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_37" style="z-index:1001;width:70px;height:46px;background:url(text/datei3.png) no-repeat;position:absolute;left:1250px;top:622px;"><img src="text/bild1_4.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_38" style="z-index:1001;width:70px;height:46px;background:url(text/datei1.png) no-repeat;position:absolute;left:1305px;top:622px;"><img src="text/bild1_4.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_39" style="z-index:1001;width:70px;height:46px;background:url(text/datei1.png) no-repeat;position:absolute;left:1360px;top:622px;"><img src="text/bild1_3.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_40" style="z-index:1001;width:70px;height:46px;background:url(text/datei1.png) no-repeat;position:absolute;left:1415px;top:622px;"><img src="text/bild1_3.png" style="position:relative;bottom:3px;"></div>
    
    	<div class="blabla" id="blabla_blabla_41" style="z-index:1001;width:70px;height:46px;background:url(text/datei3.png) no-repeat;position:absolute;left:1010px;top:664px;"><img src="text/datei1.png"></div>
    	<div class="blabla" id="blabla_blabla_42" style="z-index:1001;width:70px;height:46px;background:url(text/datei1.png) no-repeat;position:absolute;left:1065px;top:664px;"><img src="text/bild1_3.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_43" style="z-index:1001;width:70px;height:46px;background:url(text/datei3.png) no-repeat;position:absolute;left:1120px;top:664px;"><img src="text/bild21_3.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_44" style="z-index:1001;width:70px;height:46px;background:url(text/datei1.png) no-repeat;position:absolute;left:1175px;top:664px;"><img src="text/bild1_4.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_45" style="z-index:1001;width:70px;height:46px;background:url(text/datei3.png) no-repeat;position:absolute;left:1230px;top:664px;"><img src="text/bild4_2.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_46" style="z-index:1001;width:70px;height:46px;background:url(text/datei4.png) no-repeat;position:absolute;left:1285px;top:664px;"><img src="text/bild1_3.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_47" style="z-index:1001;width:70px;height:46px;background:url(text/datei1.png) no-repeat;position:absolute;left:1340px;top:664px;"><img src="text/bild3_3.png" style="position:relative;bottom:3px;"></div>
    	<div class="blabla" id="blabla_blabla_48" style="z-index:1001;width:70px;height:46px;background:url(text/datei2.png) no-repeat;position:absolute;left:1395px;top:664px;"><img src="text/bild1_3.png" style="position:relative;bottom:3px;"></div>
    Alles anzeigen


    Will jetzt nur die zahl von der ID= und die will ich nur dann wenn am ende "text/bild1" ist
    Hab es schon so versucht aber geht leider nicht :(

    AutoIt
    Stringregexp($string,'\Q<div class="blabla" id="blabla_blabla_\E(\d+)\Q" style="\E\Q"><img src="text/bild1\E',3)


    AutoIt
    Stringregexp($string,'\Q<div class="blabla" id="blabla_blabla_\E(\d+)\Q" style="\E[ ... ]\Q"><img src="text/bild1\E',3)
  • Brauche Hilfe zu WinHTTP

    • blackcho
    • 4. Juni 2015 um 21:21

    ok danke

  • Brauche Hilfe zu WinHTTP

    • blackcho
    • 4. Juni 2015 um 21:16

    gibt es keine alternativen wie ich sie mir mit Autoit holen kann :)

  • Brauche Hilfe zu WinHTTP

    • blackcho
    • 4. Juni 2015 um 20:59

    Nehmen wir jetzt mal als Beispiel Dropbox.com
    die Liste der Inhalte siehst du auch nicht im Quelltext
    mit Element untersuchen schon

  • Brauche Hilfe zu WinHTTP

    • blackcho
    • 4. Juni 2015 um 20:26

    Hallo :)
    Brauche hilfe in WinHTTP
    Will eine Seite auslesen aber mit allen Elementen ...

    AutoIt
    $HTTP_Request = _WinHttpOpenRequest($HTTP_Connect, $sType, $sPage, "HTTP/1.1", $HTTP_Host)
    	If StringLen($sPost) Then
    		_WinHttpSendRequest($HTTP_Request, "Content-Type: application/x-www-form-urlencoded" & @CRLF, $sPost)
    	Else
    		_WinHttpSendRequest($HTTP_Request)
    	EndIf
    	_WinHttpReceiveResponse($HTTP_Request)
    
    
    	$HTML = ""
    	Do
    		$HTML &= _WinHttpReadData($HTTP_Request)
    	Until @error
    Alles anzeigen

    Wenn ich so den Queltext auslese bekomme ich nicht alles.
    Auch wenn ich in Firefox auf der Seite "Rechtsklick">"Seitenquelltext anzeigen" mache kommt nicht alles.
    Wenn ich aber "Rechtsklick">"Element Untersuchen" mache kann jedes Element sehen und "öffnen"
    Kann ich mit Winhttp auch alles auslesen?

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™