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

Beiträge von Xyron

  • Spotify Link (STRG+C) zu Titel

    • Xyron
    • 14. Februar 2013 um 17:36

    Ich hab mal ein kleines Script gebastelt, dass aus Spotify Links, die man erhält wenn man die Titel per STRG+C kopieren will, zu einem String mit Titeln umwandelt.
    Hier ein Beispiel:

    Code
    http://open.spotify.com/track/5SatAWN9M5o0KloKPLxwlj
    http://open.spotify.com/track/1i7DQ3T0IfBjZkpzfKfO2W
    http://open.spotify.com/track/5d3NVxq5T6QeqovE3rosbl
    http://open.spotify.com/track/0fTfflYwGMjDDYnqNzML2j
    http://open.spotify.com/track/4DXvqWxQOkx3j3ONAVDxSB


    wird zu

    Code
    B-Tight - Drinne - Drinne
    B-Tight - Wenn ich komme - Drinne
    B-Tight - Mary Jane - Drinne
    B-Tight - Tittenmaus - Drinne
    B-Tight - Fame - Drinne

    Der dazu gehörige Code:
    --SpotifyTitles.au3-- (~120 Zeilen)

    Spoiler anzeigen
    [autoit]


    #cs ----------------------------------------------------------------------------

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

    AutoIt Version: 3.3.9.4 (beta)
    Author: Felix M.

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

    Script Function:
    Grabs titles from Spotify links

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

    #ce ----------------------------------------------------------------------------

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

    #include <INet.au3>
    #include <Array.au3>
    #include "HTML.au3"
    $HowToText = "To use this programm, just open spotify, mark all the tracks you want the name from and press CTRL+V. Then open just run this programm. After execution just press CTRL+V to insert the grabbed tracknames and/or albumnames"
    $ClipEnd = ""
    $Clip = ClipGet()
    $titles = True
    $albums = False
    $artists = False
    $Title = ""
    $Album = ""
    $Artist = ""

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

    if StringInStr($Clip, "http://open.spotify.com/track/") = 0 Then
    MsgBox(64, "How-to", $HowToText)
    exit 0
    EndIf

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

    if MsgBox(4+64, "Question", "Do you also want me to grab the ALBUM names and append them AFTER the song name? (Slower)") = 6 Then $albums = True
    if MsgBox(4+64, "Question", "Do you also want me to grab the ARTIST names and append them BEFORE the song name? (Slower)") = 6 Then $artists = True

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

    ProgressOn("X1r0N's Spotify Link2Title", "Translating links to titles", "Grabbing Links")
    $Links = StringRegExp($Clip, "http://open.spotify.com/track/.*", 3)
    ProgressSet(5, "Grabbing titles...")
    for $i = 0 to UBound($Links)-1 step +1
    ProgressSet(5+(95/(UBound($Links)-1))*$i, "Titel Nr." & $i & " : " & $Links[$i])
    $s = BinaryToString(InetRead($Links[$i]))
    if $titles Then $Title = _getTitle($s)
    if $albums Then $Album = _GetAlbum($s)
    if $artists Then $Artist = _GetArtist($s)

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

    if $artists Then $ClipEnd &= $Artist & " - "
    $ClipEnd &= $Title
    if $albums Then
    $ClipEnd &= " - " & $Album & @CRLF
    Else
    $ClipEnd &= @CRLF
    EndIf
    Next
    ProgressSet(100, "Use CTRL+V to insert titles", "Finished")

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

    $ClipEnd = StringReplace ($ClipEnd, "Radio Mix", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "Radio Edit", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "Video Mix", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "Video Edit", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "[Radio Mix]", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "[Radio Edit]", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "[Video Mix]", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "[Video Edit]", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "Full Version", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "[Full Version]", "", 0, 2)
    ;Cleanup
    $ClipEnd = StringReplace ($ClipEnd, " -", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "- ]", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, " - " & @CRLF, @CRLF, 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, "[]", "", 0, 2)
    $ClipEnd = StringReplace ($ClipEnd, " ", " ", 0, 2)

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

    ClipPut($ClipEnd)

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

    Sleep(1000)
    ProgressOff()

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

    Func _getTitle($html)
    $Source = $html
    $aRes = StringRegExp($Source, '<meta property="og:title" content="(?:\w|\;|\:|\+|\*|\~|\#|\!|\"|\§|\$|\%|\=|\&|\:|\/|\,|\\|\-|\.|\ |\[|\]|\(|\)|\' & Chr(39) & ')*">',3)
    if IsArray($aRes) Then
    $pCont = StringInStr($aRes[0], 'content="')
    $length = StringLen($aRes[0])
    $Right = StringRight($aRes[0], $length-($pCont-1+9))
    $E_str = StringLeft($Right, StringLen($Right)-2)
    return _HTMLDecode($E_str)
    Else
    return "Error fetching Title name"
    EndIf
    EndFunc
    Func _GetAlbum($html)
    $aRes = StringRegExp($html, '<a href="/album/\w*">(?:\w|\;|\:|\+|\*|\~|\#|\!|\"|\§|\$|\%|\=|\&|\:|\/|\,|\\|\-|\_|\.|\ |\[|\]|\(|\)|\' & Chr(39) & ')*</a>', 3)
    if IsArray($aRes) Then
    $length = StringLen($aRes[0])
    $Right = StringRight($aRes[0], $length-StringInStr($aRes[0], ">"))
    $E_str = StringLeft($Right, StringLen($Right)-4)
    return _HTMLDecode($E_str)
    Else
    return "Error fetching Album name"
    EndIf
    EndFunc
    Func _GetArtist($html)
    $aRes = StringRegExp($html, '<a href="/artist/\w*">(?:\w|\;|\:|\+|\*|\~|\#|\!|\"|\§|\$|\%|\=|\&|\:|\/|\,|\\|\-|\_|\.|\ |\[|\]|\(|\)|\' & Chr(39) & ')*</a>', 3)
    if IsArray($aRes) Then
    $length = StringLen($aRes[0])
    $Right = StringRight($aRes[0], $length-StringInStr($aRes[0], ">"))
    $E_str = StringLeft($Right, StringLen($Right)-4)
    return _HTMLDecode($E_str)
    Else
    return "Error fetching Artist name"
    EndIf
    EndFunc

    [/autoit]


    --HTML.au3-- von Dhilip89 (Autoitscript.com) (~320 Zeilen)

    Spoiler anzeigen
    [autoit]


    #include-once
    #include <Array.au3>

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

    Dim $Entity[65536]
    $Entity[34] = "quot"
    $Entity[38] = "amp"
    $Entity[39] = "apos"
    $Entity[60] = "lt"
    $Entity[62] = "gt"
    $Entity[160] = "nbsp"
    $Entity[161] = "iexcl"
    $Entity[162] = "cent"
    $Entity[163] = "pound"
    $Entity[164] = "curren"
    $Entity[165] = "yen"
    $Entity[166] = "brvbar"
    $Entity[167] = "sect"
    $Entity[168] = "uml"
    $Entity[169] = "copy"
    $Entity[170] = "ordf"
    $Entity[171] = "laquo"
    $Entity[172] = "not"
    $Entity[173] = "shy"
    $Entity[174] = "reg"
    $Entity[175] = "macr"
    $Entity[176] = "deg"
    $Entity[177] = "plusmn"
    $Entity[178] = "sup2"
    $Entity[179] = "sup3"
    $Entity[180] = "acute"
    $Entity[181] = "micro"
    $Entity[182] = "para"
    $Entity[183] = "middot"
    $Entity[184] = "cedil"
    $Entity[185] = "sup1"
    $Entity[186] = "ordm"
    $Entity[187] = "raquo"
    $Entity[188] = "frac14"
    $Entity[189] = "frac12"
    $Entity[190] = "frac34"
    $Entity[191] = "iquest"
    $Entity[192] = "Agrave"
    $Entity[193] = "Aacute"
    $Entity[194] = "Acirc"
    $Entity[195] = "Atilde"
    $Entity[196] = "Auml"
    $Entity[197] = "Aring"
    $Entity[198] = "AElig"
    $Entity[199] = "Ccedil"
    $Entity[200] = "Egrave"
    $Entity[201] = "Eacute"
    $Entity[202] = "Ecirc"
    $Entity[203] = "Euml"
    $Entity[204] = "Igrave"
    $Entity[205] = "Iacute"
    $Entity[206] = "Icirc"
    $Entity[207] = "Iuml"
    $Entity[208] = "ETH"
    $Entity[209] = "Ntilde"
    $Entity[210] = "Ograve"
    $Entity[211] = "Oacute"
    $Entity[212] = "Ocirc"
    $Entity[213] = "Otilde"
    $Entity[214] = "Ouml"
    $Entity[215] = "times"
    $Entity[216] = "Oslash"
    $Entity[217] = "Ugrave"
    $Entity[218] = "Uacute"
    $Entity[219] = "Ucirc"
    $Entity[220] = "Uuml"
    $Entity[221] = "Yacute"
    $Entity[222] = "THORN"
    $Entity[223] = "szlig"
    $Entity[224] = "agrave"
    $Entity[225] = "aacute"
    $Entity[226] = "acirc"
    $Entity[227] = "atilde"
    $Entity[228] = "auml"
    $Entity[229] = "aring"
    $Entity[230] = "aelig"
    $Entity[231] = "ccedil"
    $Entity[232] = "egrave"
    $Entity[233] = "eacute"
    $Entity[234] = "ecirc"
    $Entity[235] = "euml"
    $Entity[236] = "igrave"
    $Entity[237] = "iacute"
    $Entity[238] = "icirc"
    $Entity[239] = "iuml"
    $Entity[240] = "eth"
    $Entity[241] = "ntilde"
    $Entity[242] = "ograve"
    $Entity[243] = "oacute"
    $Entity[244] = "ocirc"
    $Entity[245] = "otilde"
    $Entity[246] = "ouml"
    $Entity[247] = "divide"
    $Entity[248] = "oslash"
    $Entity[249] = "ugrave"
    $Entity[250] = "uacute"
    $Entity[251] = "ucirc"
    $Entity[252] = "uuml"
    $Entity[253] = "yacute"
    $Entity[254] = "thorn"
    $Entity[255] = "yuml"
    $Entity[338] = "OElig"
    $Entity[339] = "oelig"
    $Entity[352] = "Scaron"
    $Entity[353] = "scaron"
    $Entity[376] = "Yuml"
    $Entity[402] = "fnof"
    $Entity[710] = "circ"
    $Entity[732] = "tilde"
    $Entity[913] = "Alpha"
    $Entity[914] = "Beta"
    $Entity[915] = "Gamma"
    $Entity[916] = "Delta"
    $Entity[917] = "Epsilon"
    $Entity[918] = "Zeta"
    $Entity[919] = "Eta"
    $Entity[920] = "Theta"
    $Entity[921] = "Iota"
    $Entity[922] = "Kappa"
    $Entity[923] = "Lambda"
    $Entity[924] = "Mu"
    $Entity[925] = "Nu"
    $Entity[926] = "Xi"
    $Entity[927] = "Omicron"
    $Entity[928] = "Pi"
    $Entity[929] = "Rho"
    $Entity[931] = "Sigma"
    $Entity[932] = "Tau"
    $Entity[933] = "Upsilon"
    $Entity[934] = "Phi"
    $Entity[935] = "Chi"
    $Entity[936] = "Psi"
    $Entity[937] = "Omega"
    $Entity[945] = "alpha"
    $Entity[946] = "beta"
    $Entity[947] = "gamma"
    $Entity[948] = "delta"
    $Entity[949] = "epsilon"
    $Entity[950] = "zeta"
    $Entity[951] = "eta"
    $Entity[952] = "theta"
    $Entity[953] = "iota"
    $Entity[954] = "kappa"
    $Entity[955] = "lambda"
    $Entity[956] = "mu"
    $Entity[957] = "nu"
    $Entity[958] = "xi"
    $Entity[959] = "omicron"
    $Entity[960] = "pi"
    $Entity[961] = "rho"
    $Entity[962] = "sigmaf"
    $Entity[963] = "sigma"
    $Entity[964] = "tau"
    $Entity[965] = "upsilon"
    $Entity[966] = "phi"
    $Entity[967] = "chi"
    $Entity[968] = "psi"
    $Entity[969] = "omega"
    $Entity[977] = "thetasym"
    $Entity[978] = "upsih"
    $Entity[982] = "piv"
    $Entity[8194] = "ensp"
    $Entity[8195] = "emsp"
    $Entity[8201] = "thinsp"
    $Entity[8204] = "zwnj"
    $Entity[8205] = "zwj"
    $Entity[8206] = "lrm"
    $Entity[8207] = "rlm"
    $Entity[8211] = "ndash"
    $Entity[8212] = "mdash"
    $Entity[8216] = "lsquo"
    $Entity[8217] = "rsquo"
    $Entity[8218] = "sbquo"
    $Entity[8220] = "ldquo"
    $Entity[8221] = "rdquo"
    $Entity[8222] = "bdquo"
    $Entity[8224] = "dagger"
    $Entity[8225] = "Dagger"
    $Entity[8226] = "bull"
    $Entity[8230] = "hellip"
    $Entity[8240] = "permil"
    $Entity[8242] = "prime"
    $Entity[8243] = "Prime"
    $Entity[8249] = "lsaquo"
    $Entity[8250] = "rsaquo"
    $Entity[8254] = "oline"
    $Entity[8260] = "frasl"
    $Entity[8364] = "euro"
    $Entity[8465] = "image"
    $Entity[8472] = "weierp"
    $Entity[8476] = "real"
    $Entity[8482] = "trade"
    $Entity[8501] = "alefsym"
    $Entity[8592] = "larr"
    $Entity[8593] = "uarr"
    $Entity[8594] = "rarr"
    $Entity[8595] = "darr"
    $Entity[8596] = "harr"
    $Entity[8629] = "crarr"
    $Entity[8656] = "lArr"
    $Entity[8657] = "uArr"
    $Entity[8658] = "rArr"
    $Entity[8659] = "dArr"
    $Entity[8660] = "hArr"
    $Entity[8704] = "forall"
    $Entity[8706] = "part"
    $Entity[8707] = "exist"
    $Entity[8709] = "empty"
    $Entity[8711] = "nabla"
    $Entity[8712] = "isin"
    $Entity[8713] = "notin"
    $Entity[8715] = "ni"
    $Entity[8719] = "prod"
    $Entity[8721] = "sum"
    $Entity[8722] = "minus"
    $Entity[8727] = "lowast"
    $Entity[8730] = "radic"
    $Entity[8733] = "prop"
    $Entity[8734] = "infin"
    $Entity[8736] = "ang"
    $Entity[8743] = "and"
    $Entity[8744] = "or"
    $Entity[8745] = "cap"
    $Entity[8746] = "cup"
    $Entity[8747] = "int"
    $Entity[8756] = "there4"
    $Entity[8764] = "sim"
    $Entity[8773] = "cong"
    $Entity[8776] = "asymp"
    $Entity[8800] = "ne"
    $Entity[8801] = "equiv"
    $Entity[8804] = "le"
    $Entity[8805] = "ge"
    $Entity[8834] = "sub"
    $Entity[8835] = "sup"
    $Entity[8836] = "nsub"
    $Entity[8838] = "sube"
    $Entity[8839] = "supe"
    $Entity[8853] = "oplus"
    $Entity[8855] = "otimes"
    $Entity[8869] = "perp"
    $Entity[8901] = "sdot"
    $Entity[8968] = "lceil"
    $Entity[8969] = "rceil"
    $Entity[8970] = "lfloor"
    $Entity[8971] = "rfloor"
    $Entity[9001] = "lang"
    $Entity[9002] = "rang"
    $Entity[9674] = "loz"
    $Entity[9824] = "spades"
    $Entity[9827] = "clubs"
    $Entity[9829] = "hearts"
    $Entity[9830] = "diams"

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

    ;===============================================================================
    ;
    ; Function Name: _HTMLEncode()
    ; Description: Encode the normal string into HTML Entity Number
    ; Parameter(s): $String - The string you want to encode.
    ;
    ; Requirement(s): AutoIt v3.2.4.9 or higher (Unicode)
    ; Return Value(s): On Success - Returns HTML Entity Number
    ; On Failure - Nothing
    ;
    ; Author(s): Dhilip89
    ;
    ;===============================================================================

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

    Func _HTMLEncode($Str)
    $StrLen = StringLen($Str)
    Local $Encoded
    If $StrLen = 0 Then Return ''
    For $i = 1 To $StrLen
    $StrChar = StringMid($Str, $i, 1)
    $Encoded &= '&#' & AscW($StrChar) & ';'
    Next
    Return $Encoded
    EndFunc ;==>_HTMLEncode

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

    ;===============================================================================
    ;
    ; Function Name: _HTMLDecode()
    ; Description: Decode the HTML Entity Number into normal string
    ; Parameter(s): $HTMLEntityNum - The HTML Entity Number you want to decode.
    ;
    ; Requirement(s): AutoIt v3.2.4.9 or higher (Unicode)
    ; Return Value(s): On Success - Returns decoded strings
    ; On Failure - Nothing
    ;
    ; Author(s): Dhilip89
    ;
    ;===============================================================================

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

    Func _HTMLDecode($Str)
    Local $Decoded
    If $Str = '' Then Return ''
    $X1 = StringRegExp($Str, '&#x(.*?);', 3)
    $X2 = StringRegExp($Str, '&#(.*?);', 3)
    $X3 = StringRegExp($Str, '&(.*?);', 3)
    For $i = 0 To UBound($X1) - 1 Step 1
    $Str = StringReplace($Str, '&#x' & $X1[$i] & ';', ChrW(Dec($X1[$i])))
    Next
    For $i = 0 To UBound($X2) - 1 Step 1
    $Str = StringReplace($Str, '&#' & $X2[$i] & ';', ChrW($X2[$i]))
    Next
    For $i = 0 To UBound($X3) - 1 Step 1
    $Str = StringReplace($Str, '&' & $X3[$i] & ';', ChrW(_ArraySearch($Entity, $X3[$i], 0, 0, 1)))
    Next
    $Decoded = $Str
    Return $Decoded
    EndFunc ;==>_HTMLDecode

    [/autoit]
  • Simfy Desktop Player fernsteuern

    • Xyron
    • 24. November 2011 um 18:28

    Oooh, ups, sorry, das war was aus dem forum, hab ich falsch kopiert, sorry^^ ich korrigiere das eben

  • Simfy Desktop Player fernsteuern

    • Xyron
    • 23. November 2011 um 21:58

    Hey Autoitter,
    bestimmt kennen einige von euch die Audio-Streaming Website Simfy, und einiger auch den Simfy Desktop Player.
    Ich benutze diesen öfters, weil ich meinen Browser aus gewohnheit ständig schließe, und er um einiges komfortabler ist. Nun reagieren die Hotkeys des Players nur wenn das Fenster aktiv ist,
    und ich wollte jetzt ein kleines Script basteln, dass die Tastenanschläge der Media-Keys abfängt und an das Fenster weitersendet. Bissher sieht dieses so aus [siehe unten]
    Mein Problem: Das Fenster empfängt die Tastenanschläge nur teilweise. Es funktioniert die Start|Pause Funktion, alles andere wird nicht verarbeitet. Ich wollte das Fenster NICHT maximieren, es soll alles im Hintergrund geschehen. Nun wollte ich fragen was ich falsch mache ?(
    MfG, Xyron

    Spoiler anzeigen
    [autoit]


    HotKeySet("{MEDIA_PLAY_PAUSE}", "_Play_Pause")
    HotKeySet("{MEDIA_STOP}", "_Play_Pause")
    HotKeySet("{MEDIA_NEXT}", "_Next")
    HotKeySet("{MEDIA_PREV}", "_Last")
    HotKeySet("{VOLUME_UP}", "_VolUp")
    HotKeySet("{VOLUME_DOWN}", "_VolDown")
    HotKeySet("{VOLUME_MUTE}", "_Mute")
    Opt("SendKeyDownDelay", 100)
    opt("SendKeyDelay", 20)

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

    while 1
    Sleep(10)
    WEnd

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

    Func _Play_Pause()
    _SendToSimfy("{SPACE}")
    MsgBox(64, "sended!", "Message has been sended succesfully")
    EndFunc
    Func _Mute()
    _SendToSimfy("^!P")
    EndFunc
    Func _Next()
    _SendToSimfy("^{RIGHT}")
    EndFunc
    Func _Last()
    _SendToSimfy("^{LEFT}")
    EndFunc
    Func _VolDown()
    _SendToSimfy("^{DOWN}")
    EndFunc
    Func _VolUp()
    _SendToSimfy("^{UP}")
    EndFunc

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

    Func _SendToSimfy($Text)
    ControlSend("simfy", WinGetText("simfy"), WinGetHandle("simfy"), $Text, 1)
    EndFunc

    [/autoit]
  • Lokaler SMTP-Hook

    • Xyron
    • 16. November 2011 um 12:03

    Hey Autoitter,
    Ich habe mich gefragt, ob es möglich ist, ein Fenster mit einem Internet-Explorer objekt zu erstellen, in dem alle verbindungen an einen smtp server oder ähnliches abgefangen werden.
    Ich möchte nur die addresse der ausgehende verbindung haben. Das Programm soll im Prinzip etwas werden wie StreamExport, womit man dann z.B. gestreamte Videos aus dem Internet beim abspielen speichern kann.
    Eine Beispieladdresse (von simfy):
    rtmpe://c8.simfy.com:80/transit?doConnect=RN0CKCY3/mp3:5xROi7zhPOM5Lt-xbkVgDekYbWJbETQv6dz6zS-FdJTlBSX7BO3o6vzwOvV8GsZRYnWFzoy5cy3yduwvmI5w2gZvf5urHXFT5IZgohsQtE_FxJwdWklSLC8qY9Au3KgLWHpWswUsIUgWCDQKUdLjFIWqYLwibWwiP9_Tq8yvoj1dYUEbrY8e9tO3AeCMu634MOq0-Q1--06NoIx1fSXe0W_IEu_efpc=.

    Ich würde damit dann gerne einen kleinen Simfy-player machen, den ich mir auf den desktop packen kann, so widget-mäßig ;) würde ich dann auch bei fertigstellung hier hochladen.

  • Windows Startmenü öffnen

    • Xyron
    • 23. Oktober 2011 um 12:16

    Danke, habs :)
    Meine Lösung:

    [autoit]


    Func _OpenStartMenu($x, $y)
    Winmove("Startmenü", WinGetText("Startmenü"), $x, $y)
    Send("{LWIN}")
    _WinAPI_SetWindowPos(WinGetHandle("Startmenü"), $HWND_TOP, 0, 0, 0, 0, $SWP_NOSIZE)
    WinWaitActive("Startmenü")
    EndFunc

    [/autoit]
  • Windows Startmenü öffnen

    • Xyron
    • 23. Oktober 2011 um 11:17

    Hey, weiß einer von euch wie ich das Windows-Startmenü öffnen kann? Ich möchte nicht mit der Maus draufklicken und es am besten an einer belibigen Position öffnen. Ich habe es bereits mit WinAPI_ShowWindow(...) versuche, allerdings war dann die Transparenz weg und der Hintergrund war schwarz ;( gibts da irgendeine Funktion in einer der windows DLLs oder sogar in einer Autoit UDF?

  • TreeView Tooltip + Zeilenumbruch

    • Xyron
    • 22. Oktober 2011 um 22:06

    Einfach mit GuiGetCursorInfo([hwnd]) schauen ob die maus über dem control ist, und dann entsprechend des items einen neuen tooltip setzen, laut dem help file kann es ja sowieso immer nur einen geben.

  • Pixelgeneues Editieren eines Pixels im selbst geöffneten Fester/Bitmap

    • Xyron
    • 22. Oktober 2011 um 21:58

    Ansonsten gibt es auch noch eine SetPixel(bitmap,x,y,color) funktion in der GDIP.au3. Um die zu finden, einfach mal googeln, der erste eintrag ist es warscheinlich. Sollte um einiges effizienter sein als mit drawrect, und gerade bei der mandelbrotmenge muss man ja viele pixel setzen. Zur erklärung der funktion gibt es die MSDN auf der microsoft seite, die funktion ist ja nur der aufruf der SetPixel funktion in der Gdiplus.dll ;)

  • Desktopplatz "reservieren"

    • Xyron
    • 21. Oktober 2011 um 15:02

    Halleluya! Ich danke dir! Das ist GENAU das was ich gesucht habe! :D
    :thumbup::thumbup::thumbup::thumbup:
    Und auch ein danke an alle anderen, die hier was gepostet haben, wird mir sicherlich noch nützlich sein ^^
    Daaanke :)

  • Desktopplatz "reservieren"

    • Xyron
    • 20. Oktober 2011 um 22:00

    Ich meine es gab eine schnellere Lösung, ohne große Hooks und co.
    Ich habe ein Programm gefunden, dass genau das tut was ich haben will!
    DektopCoral
    Ich möchte nur, dass das in meinem Script gemacht wird

  • Desktopplatz "reservieren"

    • Xyron
    • 20. Oktober 2011 um 19:33

    Kannst du mir zeigen wie ich die Abfangen kann? Ich habe es jetzt einiger Zeit mit_WinAPI_SetWindowsHookEx versucht, aber ich bekomme es nicht hin, dass er die fensternachrichten abfängt. ;(

  • Desktopplatz "reservieren"

    • Xyron
    • 20. Oktober 2011 um 18:59

    Ist nicht sinnlos :P Das ist wie gesagt wie bei der Taskbar. Da werden die Fenster beim maximieren auch nicht einfach drüber gesetzt. Und genau das meine ich. Wenn ich auf maximieren klicke, dann soll das maximierte fenster nicht unter meinem sein, sondern so verschoben werden, dass es das nicht ist

  • Desktopplatz "reservieren"

    • Xyron
    • 20. Oktober 2011 um 18:53

    Hmm, ist unwichtig geworden ^^. Aber das anfangsproblem steht wieder.
    Wenn ich $WS_EX_TOPMOST setze, werden fenster trotzdem dahinter gesetzt, wenn ich auf maximieren klicke, genau das würde ich gerne verhindern ;)
    Vieleich weißt du ja jetzt was ich meine

  • Desktopplatz "reservieren"

    • Xyron
    • 20. Oktober 2011 um 18:47

    hmm, naja, wird dann gehen. Noch eine Frage: Wie kann ich machen dass man das Fenster nicht fokussieren kann?

  • Desktopplatz "reservieren"

    • Xyron
    • 20. Oktober 2011 um 18:41

    Die Fenster sollen aber auch nicht darunter sein können ;) Das ist bei der Taskbar so, und deswegen reicht $WS_TOPMOST nicht. Sonst hätte ich das verwendet.

  • Desktopplatz "reservieren"

    • Xyron
    • 20. Oktober 2011 um 18:39

    Nein, das meine ich nicht :(
    Die anderen Fenster können das Fenster nicht überdecken, das heißt, es ist dann wie bei der Taskbar von Windows.

  • Desktopplatz "reservieren"

    • Xyron
    • 20. Oktober 2011 um 18:35

    Hey, ich weiß es gibt eine Funktion in der WinAPI, um "platz auf dem Desktop zu reservieren". Nun weiß niemand außer ich was ich meine, daher versuche ich es anhand eines Beispieles zu schreiben^^
    Wenn man bei ICQ auf andocken klickt, dann dockt es rechts an und kein anderes Fenster überdeckt es danach, auch wenn man später auf "maximieren" klickt. Ich hoffe dass jemand von euch den Funktionsnamen weiß^^
    MfG,
    Xyron

  • Downloaden und danach entpacken?

    • Xyron
    • 26. Juni 2011 um 20:36

    Ansonsten ganz manuell mit der IE.au3 oder so. Einfach auf die Seite navigieren, wartezeit mit einem Regülärem Ausdruck auslesen und warten... der internet explorer wird dann irgendwann was downloaden

  • Funktion mit beliebig vielen Parametern

    • Xyron
    • 23. Juni 2011 um 21:47

    Das könnte man machen, stimmt mit ByRef ^^ Hab ich ganz vergessen :P Danke für die Antwort

  • Funktion mit beliebig vielen Parametern

    • Xyron
    • 23. Juni 2011 um 21:30

    Hey, ich hab mal ne Frage:
    Ist es möglich eine Funktion zu deklarieren die undendlich (oder sehr viele Parameter hat) ohne diese anzugeben, also ungefähr so wie BitOR() oder so.
    Ich müsste diese dann irgendwie rekursiv durchlaufen lassen, zum Beispiel mit @NUmParams

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™