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

Beiträge von Molaynox

  • Hintergrundbild von GUI ändern und bei Programmneustart wieder anzeigen.

    • Molaynox
    • 4. Oktober 2010 um 20:15

    Noch ein Problem mit dem IniWrite. Wenn ich meinen kompilierten script mit dem Programm EasySetup oder Inno Setup in ein Setup mache dann funktioniert nach der Installation die IniWrite funktion anscheinend nicht mehr. Jedensfalls wird dann keine .ini erstellt. Ohne das Setup schon.
    Edit: IniWrite funktioniert nur einmal. Danach nicht mehr. auch nicht wenn man die .ini per hand löscht.
    Hier ist der Script:

    Spoiler anzeigen
    [autoit]

    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_icon=Icon.ico
    #AutoIt3Wrapper_outfile=..\Desktop\BlackEyes StreamPlayer\BlackEyes StreamPlayer.exe
    #AutoIt3Wrapper_UseUpx=n
    #AutoIt3Wrapper_UseX64=n
    #AutoIt3Wrapper_Res_Fileversion=1.4.0.3
    #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
    #AutoIt3Wrapper_Res_Language=1031
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    #include <StructureConstants.au3>
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <SliderConstants.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <ProgressConstants.au3>
    #include <GuiStatusBar.au3>
    #include <GUIEdit.au3>
    #include <File.au3>
    #include-once
    #include <Constants.au3>
    #include <GUIEdit.au3>
    #include <GuiToolbar.au3>
    #include <inet.au3>

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

    Global $INIstyle = @ScriptDir & "\Style.ini"
    Global $BlackEyes = @ScriptDir & "\Styles\BlackEyes.jpg"
    AdlibRegister("CheckMouse")

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

    $Pic1 = IniRead($INIstyle,"Style","Background","")
    $oWMP = ObjCreate("WMPLayer.ocx")
    $GUI = GUICreate("BlackEyes Stream Player", 498, 357, 238, 172)
    GUICtrlCreatePic($Pic1, 0, 0, 497, 353, BitOR($WS_GROUP,$WS_CLIPSIBLINGS))
    $HauptMenu = GUICtrlCreateMenu("Datei")
    $KonifgDel = GUICtrlCreateMenuItem("Konfiguration löschen",$HauptMenu)
    $HMenuE = GUICtrlCreateMenuItem("Beenden",$HauptMenu)
    $SMenu = GUICtrlCreateMenu("Stream URLs")
    $SMenu1 = GUICtrlCreateMenuItem("TechnoBase.FM",$SMenu)
    $SMenu2 = GUICtrlCreateMenuItem("Top100Station",$SMenu)
    $SMenu3 = GUICtrlCreateMenuItem("Planet Radio",$SMenu)
    $SMenu4 = GUICtrlCreateMenuItem("YouFM",$SMenu)
    $SMenu5 = GUICtrlCreateMenuItem("BigFM",$SMenu)
    $SMenu6 = GUICtrlCreateMenuItem("Rautemusik.fm Main",$SMenu)
    $SMenu7 = GUICtrlCreateMenuItem("1Live",$SMenu)
    $StyleM = GUICtrlCreateMenu("Styles")
    $Style1 = GUICtrlCreateMenuItem("BlackEyes",$StyleM)
    $Style2 = GUICtrlCreateMenuItem("Standard",$StyleM)
    $StyleE = GUICtrlCreateMenuItem("Eigenes Bild",$StyleM)
    $Menu = GUICtrlCreateMenu("Hilfe")
    $MenuE = GUICtrlCreateMenuItem("About",$Menu)
    $Combo1 = GUICtrlCreateCombo("Bitte auswählen", 144, 112, 209, 25)
    GUICtrlSetData(-1,"TechnoBase.FM|Top100Station|Planet Radio|YouFM|BigFM|Rautemusik.fm Main|1Live","Bitte auswählen")
    $Label1 = GUICtrlCreateLabel("Radio Streams", 144, 88, 94, 20)
    GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetColor(-1, 0xff0000)
    $Button1 = GUICtrlCreateButton("Play", 24, 304, 193, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    $Button2 = GUICtrlCreateButton("Stop", 280, 304, 193, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetState($Button2, $GUI_DISABLE)
    $Progress1 = GUICtrlCreateProgress(8, 30, 33, 265, $PBS_VERTICAL)
    GUICtrlSetBkColor($Progress1,0x1000)
    $Volume = GUICtrlCreateSlider(448, 30, 33, 265, BitOR($TBS_AUTOTICKS,$TBS_VERT))
    $Slider = IniRead($INIstyle,"Slider","Slider","-2")
    GUICtrlSetBkColor($Volume, $Slider)
    GUICtrlSetData(-1, $oWMP.settings.volume())
    GUICtrlSetState($Volume, $GUI_DISABLE)
    GUISetState(@SW_SHOW)

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

    While 1
    $oWMP.settings.volume = 100 - GUICtrlRead($Volume)
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $KonifgDel
    FileDelete(@ScriptDir & "\Style.ini")
    MsgBox(0,"Information","Änderung wirkt sich erst nach Programmneustart aus.")
    Case $Style1
    IniDelete($INIstyle,"Style","")
    IniWrite($INIstyle,"Style","Background",$BlackEyes)
    IniDelete($INIstyle,"Slider","")
    IniWrite($INIstyle,"Slider","Slider","000000")
    MsgBox(0,"Information","Änderung wirkt sich erst nach Programmneustart aus.")
    Case $Style2
    IniDelete($INIstyle,"Style","")
    IniDelete($INIstyle,"Slider","")
    IniWrite($INIstyle,"Slider","Slider","-2")
    MsgBox(0,"Information","Änderung wirkt sich erst nach Programmneustart aus.")
    Case $StyleE
    $open = FileOpenDialog("Bild",@DesktopDir,"Bilder (*.jpg)",1+4)
    IniDelete($INIstyle,"Style","")
    IniDelete($INIstyle,"Slider","")
    IniWrite($INIstyle,"Style","Background",$open)
    MsgBox(0,"Information","Änderung wirkt sich erst nach Programmneustart aus.")
    Case $HMenuE
    Exit
    Case $SMenu1
    MsgBox(0,"TechnoBase.FM","http://listen.technobase.fm/tunein-dsl-asx")
    Case $SMenu2
    MsgBox(0,"Top100Station","http://www.top100station.de/switch/r3472.asx")
    Case $SMenu3
    MsgBox(0,"Planet Radio","http://lsd.newmedia.nacamar.net/bb/redirect.lsc?stream=planetradio$livestream.mp3&content=live&media=mp3")
    Case $SMenu4
    MsgBox(0,"YouFM","http://metafiles.gl-systemhaus.de/hr/youfm_1.asx")
    Case $SMenu5
    MsgBox(0,"BigFM","http://217.151.152.245/bigfm-mp3-96")
    Case $SMenu6
    MsgBox(0,"Rautemusik.fm Main","http://main-high.rautemusik.fm/listen.asx")
    Case $SMenu7
    MsgBox(0,"1Live","http://www.wdr.de/wdrlive/media/einslive.asx")
    Case $MenuE
    MsgBox(0,"About BlackEyes StreamPlayer","BlackEyes StreamPlayer Version 1.4.0.3")
    Case $Button1
    $readcombo1 = GUICtrlRead($Combo1)
    $oWMP.controls.play()
    GUICtrlSetState($Volume, $GUI_ENABLE)
    GUICtrlSetState($Button2, $GUI_ENABLE)
    Switch $Button1
    Case $readcombo1 = "TechnoBase.FM"
    $oWMP.URL = 'http://listen.technobase.fm/tunein-dsl-asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "Top100Station"
    $oWMP.URL = 'http://www.top100station.de/switch/r3472.asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "Planet Radio"
    $oWMP.URL = 'http://lsd.newmedia.nacamar.net/bb/redirect.lsc?stream=planetradio$livestream.mp3&content=live&media=mp3'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "YouFM"
    $oWMP.URL = 'http://metafiles.gl-systemhaus.de/hr/youfm_1.asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "BigFM"
    $oWMP.URL = 'http://217.151.152.245/bigfm-mp3-96'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "Rautemusik.fm Main"
    $oWMP.URL = 'http://main-high.rautemusik.fm/listen.asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "1Live"
    $oWMP.URL = 'http://www.wdr.de/wdrlive/media/einslive.asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "Bitte auswählen"
    MsgBox(0,"ERROR","Kein Sender ausgewählt!")
    EndSwitch
    Case $Button2
    $oWMP.controls.stop()
    GUICtrlSetState($Volume, $GUI_DISABLE)
    GUICtrlSetState($Button1, $GUI_ENABLE)
    GUICtrlSetState($Button2, $GUI_DISABLE)
    GUICtrlSetState($Combo1, $GUI_ENABLE)
    GUICtrlSetData($Progress1, 0)
    EndSwitch
    WEnd

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

    Func CheckMouse()
    Local Static $mouseout=0
    $aMpos = MouseGetPos()
    $aWpos = WinGetPos("BlackEyes Stream Player")
    If $aMpos[0] > $aWpos[0] And $aMpos[0] < $aWpos[0] + $aWpos[2] And $aMpos[1] > $aWpos[1] And $aMpos[1] < $aWpos[1] + $aWpos[3] Then
    If $mouseout = 1 Then
    For $i=30 to 255 Step 30
    WinSetTrans("BlackEyes Stream Player", "", $i)
    sleep(50)
    Next
    WinSetTrans("BlackEyes Stream Player", "", 255)
    $mouseout=0
    EndIf
    Else
    If $mouseout=0 Then
    For $i=255 to 30 Step -30
    WinSetTrans("BlackEyes Stream Player", "", $i)
    sleep(50)
    Next
    $mouseout=1
    EndIf
    EndIf
    EndFunc

    [/autoit]

    Und setup hat leider nicht in den Anhang gepasst.

  • Hintergrundbild von GUI ändern und bei Programmneustart wieder anzeigen.

    • Molaynox
    • 4. Oktober 2010 um 19:49

    leider geht es nicht wenn ich ein bild als hintergrund habe.

  • Hintergrundbild von GUI ändern und bei Programmneustart wieder anzeigen.

    • Molaynox
    • 4. Oktober 2010 um 19:17

    Ok jetzt gibt es nur noch ein problem. Nämlich wie mache ich den Hintergrund des Sliders transparent damit er sich immer dem Bild anpasst???

  • Hintergrundbild von GUI ändern und bei Programmneustart wieder anzeigen.

    • Molaynox
    • 4. Oktober 2010 um 17:16

    Hi ich habe mal ein Programm geschrieben, in dem ich will das man während es läuft, das Hintergrundbild der GUI ändern kann und das es nach einem Programmneustart trotzdem wieder das ausgewählte erscheint. Das mit .Ini habe ich leider net selber geschafft. Hier der wichtige Teil des Scripts:

    Spoiler anzeigen
    [autoit]

    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_icon=Icon.ico
    #AutoIt3Wrapper_outfile=..\Desktop\BlackEyes StreamPlayer\BlackEyes StreamPlayer.exe
    #AutoIt3Wrapper_UseUpx=n
    #AutoIt3Wrapper_UseX64=n
    #AutoIt3Wrapper_Res_Fileversion=1.3.1.12
    #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
    #AutoIt3Wrapper_Res_Language=1031
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    #include <StructureConstants.au3>
    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <SliderConstants.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <ProgressConstants.au3>
    #include <Security.au3>
    #include <Memory.au3>
    #include <UDFGlobalID.au3>
    #include <GuiStatusBar.au3>
    #include <GUIEdit.au3>
    #include-once
    #include <WinAPI.au3>
    #include <WindowsConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <Constants.au3>
    #include <GUIEdit.au3>
    #include <GuiToolbar.au3>
    #include <inet.au3>
    #include <array.au3>
    #include <ie.au3>

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

    AdlibRegister("CheckMouse")

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

    $oWMP = ObjCreate("WMPLayer.ocx")
    $GUI = GUICreate("BlackEyes Stream Player", 498, 357, 238, 172)
    $Pic1 = GUICtrlCreatePic(@ScriptDir & "\Styles\BlackEyes.jpg", 0, 0, 497, 353, BitOR($WS_GROUP,$WS_CLIPSIBLINGS))
    $HauptMenu = GUICtrlCreateMenu("Datei")
    $HMenuE = GUICtrlCreateMenuItem("Beenden",$HauptMenu)
    $SMenu = GUICtrlCreateMenu("Stream URLs")
    $SMenu1 = GUICtrlCreateMenuItem("TechnoBase.FM",$SMenu)
    $SMenu2 = GUICtrlCreateMenuItem("Top100Station",$SMenu)
    $SMenu3 = GUICtrlCreateMenuItem("Planet Radio",$SMenu)
    $SMenu4 = GUICtrlCreateMenuItem("YouFM",$SMenu)
    $SMenu5 = GUICtrlCreateMenuItem("BigFM",$SMenu)
    $SMenu6 = GUICtrlCreateMenuItem("Rautemusik.fm Main",$SMenu)
    $SMenu7 = GUICtrlCreateMenuItem("1Live",$SMenu)
    $StyleM = GUICtrlCreateMenu("Styles")
    $Style1 = GUICtrlCreateMenuItem("BlackEyes",$StyleM)
    $Style2 = GUICtrlCreateMenuItem("Standard",$StyleM)
    $Menu = GUICtrlCreateMenu("Hilfe")
    $MenuE = GUICtrlCreateMenuItem("About",$Menu)
    $Combo1 = GUICtrlCreateCombo("Bitte auswählen", 144, 112, 209, 25)
    GUICtrlSetData(-1,"TechnoBase.FM|Top100Station|Planet Radio|YouFM|BigFM|Rautemusik.fm Main|1Live","Bitte auswählen")
    $Label1 = GUICtrlCreateLabel("Radio Streams", 144, 88, 94, 20)
    GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetColor(-1, 0xFFFFFF)
    $Button1 = GUICtrlCreateButton("Play", 24, 304, 193, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    $Button2 = GUICtrlCreateButton("Stop", 280, 304, 193, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetState($Button2, $GUI_DISABLE)
    $Progress1 = GUICtrlCreateProgress(8, 30, 33, 265, $PBS_VERTICAL)
    GUICtrlSetBkColor($Progress1,0x1000)
    $Volume = GUICtrlCreateSlider(448, 30, 33, 265, BitOR($TBS_AUTOTICKS,$TBS_VERT))
    GUICtrlSetBkColor($Volume,000000)
    GUICtrlSetData(-1, $oWMP.settings.volume())
    GUICtrlSetState($Volume, $GUI_DISABLE)
    GUISetState(@SW_SHOW)

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

    While 1
    $oWMP.settings.volume = 100 - GUICtrlRead($Volume)
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $HMenuE
    Exit
    Case $SMenu1
    MsgBox(0,"TechnoBase.FM","http://listen.technobase.fm/tunein-dsl-asx")
    Case $SMenu2
    MsgBox(0,"Top100Station","http://www.top100station.de/switch/r3472.asx")
    Case $SMenu3
    MsgBox(0,"Planet Radio","http://lsd.newmedia.nacamar.net/bb/redirect.lsc?stream=planetradio$livestream.mp3&content=live&media=mp3")
    Case $SMenu4
    MsgBox(0,"YouFM","http://metafiles.gl-systemhaus.de/hr/youfm_1.asx")
    Case $SMenu5
    MsgBox(0,"BigFM","http://217.151.152.245/bigfm-mp3-96")
    Case $SMenu6
    MsgBox(0,"Rautemusik.fm Main","http://main-high.rautemusik.fm/listen.asx")
    Case $SMenu7
    MsgBox(0,"1Live","http://www.wdr.de/wdrlive/media/einslive.asx")
    Case $MenuE
    MsgBox(0,"About BlackEyes StreamPlayer","BlackEyes StreamPlayer Version 1.3.1.12")
    Case $Button1
    $readcombo1 = GUICtrlRead($Combo1)
    $oWMP.controls.play()
    GUICtrlSetState($Volume, $GUI_ENABLE)
    GUICtrlSetState($Button2, $GUI_ENABLE)
    Switch $Button1
    Case $readcombo1 = "TechnoBase.FM"
    $oWMP.URL = 'http://listen.technobase.fm/tunein-dsl-asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "Top100Station"
    $oWMP.URL = 'http://www.top100station.de/switch/r3472.asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "Planet Radio"
    $oWMP.URL = 'http://lsd.newmedia.nacamar.net/bb/redirect.lsc?stream=planetradio$livestream.mp3&content=live&media=mp3'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "YouFM"
    $oWMP.URL = 'http://metafiles.gl-systemhaus.de/hr/youfm_1.asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "BigFM"
    $oWMP.URL = 'http://217.151.152.245/bigfm-mp3-96'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "Rautemusik.fm Main"
    $oWMP.URL = 'http://main-high.rautemusik.fm/listen.asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "1Live"
    $oWMP.URL = 'http://www.wdr.de/wdrlive/media/einslive.asx'
    GUICtrlSetData($Progress1, 100)
    Sleep(2000)
    GUICtrlSetData($Progress1, 0)
    Case $readcombo1 = "Bitte auswählen"
    MsgBox(0,"ERROR","Kein Sender ausgewählt!")
    EndSwitch
    Case $Button2
    $oWMP.controls.stop()
    GUICtrlSetState($Volume, $GUI_DISABLE)
    GUICtrlSetState($Button1, $GUI_ENABLE)
    GUICtrlSetState($Button2, $GUI_DISABLE)
    GUICtrlSetState($Combo1, $GUI_ENABLE)
    GUICtrlSetData($Progress1, 0)
    EndSwitch
    WEnd

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

    Func CheckMouse()
    Local Static $mouseout=0
    $aMpos = MouseGetPos()
    $aWpos = WinGetPos("BlackEyes Stream Player")
    If $aMpos[0] > $aWpos[0] And $aMpos[0] < $aWpos[0] + $aWpos[2] And $aMpos[1] > $aWpos[1] And $aMpos[1] < $aWpos[1] + $aWpos[3] Then
    If $mouseout = 1 Then
    For $i=30 to 255 Step 30
    WinSetTrans("BlackEyes Stream Player", "", $i)
    sleep(50)
    Next
    WinSetTrans("BlackEyes Stream Player", "", 255)
    $mouseout=0
    EndIf
    Else
    If $mouseout=0 Then
    For $i=255 to 30 Step -30
    WinSetTrans("BlackEyes Stream Player", "", $i)
    sleep(50)
    Next
    $mouseout=1
    EndIf
    EndIf
    EndFunc

    [/autoit]

    Am besten soll es sich ändern wenn man im Menü Styles auf den jeweiligen Style drückt.

  • Hilfe bei script mit login über mysql

    • Molaynox
    • 3. Oktober 2010 um 14:10

    es funktioniert nicht wenn es kompilliert ist und wenn es nicht kompilliert ist kommt trotzdem das selbe problem

    Edit: Hab vorm antworten nich aktualisiert :rofl: jetzt geht aber dank deiner Lösung

  • Hilfe bei script mit login über mysql

    • Molaynox
    • 3. Oktober 2010 um 14:05

    Scite bringt garkeine fehlermeldung. Die Au3Check sagt auch das alles ok ist.

  • Hilfe bei script mit login über mysql

    • Molaynox
    • 3. Oktober 2010 um 13:27

    Hi ich habe mir dieses Tutorial angesehen und habe alle schritte befolgt. Habe dann mit diesem script von Alina versucht mich einzuloggen:

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <INet.au3>

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

    Global $_MD5Opcode = "0xC85800005356576A006A006A008D45A850E8280000006A00FF750CFF75088D45A850E8440000006A006A008D45A850FF7510E8710700005F5E5BC9C210005589E58B4D0831C0894114894110C70101234567C7410489ABCDEFC74108FEDCBA98C7410C765432105DC21000C80C0000538B5D088B4310C1E80383E03F8945F88B4510C1E0030143103943107303FF43148B4510C1E81D0143146A40582B45F88945F4394510724550FF750C8B45F88D44031850E8A00700008D43185053E84E0000008B45F48945FC8B45FC83C03F39451076138B450C0345FC5053E8300000008345FC40EBE28365F800EB048365FC008B45102B45FC508B450C0345FC508B45F88D44031850E84D0700005BC9C21000C84000005356576A40FF750C8D45C050E8330700008B45088B088B50048B70088B780C89D021F089D3F7D321FB09D801C1034DC081C178A46AD7C1C10701D189C821D089CBF7D321F309D801C7037DC481C756B7C7E8C1C70C01CF89F821C889FBF7D321D309D801C60375C881C6DB702024C1C61101FE89F021F889F3F7D321CB09D801C20355CC81C2EECEBDC1C1C21601F289D021F089D3F7D321FB09D801C1034DD081C1AF0F7CF5C1C10701D189C821D089CBF7D321F309D801C7037DD481C72AC68747C1C70C01CF89F821C889FBF7D321D309D801C60375D881C6134630A8C1C61101FE89F021F889F3F7D321CB09D801C20355DC81C2019546FDC1C21601F289D021F089D3F7D321FB09D801C1034DE081C1D8988069C1C10701D189C821D089CBF7D321F309D801C7037DE481C7AFF7448BC1C70C01CF89F821C889FBF7D321D309D801C60375E881C6B15BFFFFC1C61101FE89F021F889F3F7D321CB09D801C20355EC81C2BED75C89C1C21601F289D021F089D3F7D321FB09D801C1034DF081C12211906BC1C10701D189C821D089CBF7D321F309D801C7037DF481C7937198FDC1C70C01CF89F821C889FBF7D321D309D801C60375F881C68E4379A6C1C61101FE89F021F889F3F7D321CB09D801C20355FC81C22108B449C1C21601F289D021F889FBF7D321F309D801C1034DC481C162251EF6C1C10501D189C821F089F3F7D321D309D801C7037DD881C740B340C0C1C70901CF89F821D089D3F7D321CB09D801C60375EC81C6515A5E26C1C60E01FE89F021C889CBF7D321FB09D801C20355C081C2AAC7B6E9C1C21401F289D021F889FBF7D321F309D801C1034DD481C15D102FD6C1C10501D189C821F089F3F7D321D309D801C7037DE881C753144402C1C70901CF89F821D089D3F7D321CB09D801C60375FC81C681E6A1D8C1C60E01FE89F021C889CBF7D321FB09D801C20355D081C2C8FBD3E7C1C21401F289D021F889FBF7D321F309D801C1034DE481C1E6CDE121C1C10501D189C821F089F3F7D321D309D801C7037D"
    $_MD5Opcode &= "F881C7D60737C3C1C70901CF89F821D089D3F7D321CB09D801C60375CC81C6870DD5F4C1C60E01FE89F021C889CBF7D321FB09D801C20355E081C2ED145A45C1C21401F289D021F889FBF7D321F309D801C1034DF481C105E9E3A9C1C10501D189C821F089F3F7D321D309D801C7037DC881C7F8A3EFFCC1C70901CF89F821D089D3F7D321CB09D801C60375DC81C6D9026F67C1C60E01FE89F021C889CBF7D321FB09D801C20355F081C28A4C2A8DC1C21401F289D031F031F801C1034DD481C14239FAFFC1C10401D189C831D031F001C7037DE081C781F67187C1C70B01CF89F831C831D001C60375EC81C622619D6DC1C61001FE89F031F831C801C20355F881C20C38E5FDC1C21701F289D031F031F801C1034DC481C144EABEA4C1C10401D189C831D031F001C7037DD081C7A9CFDE4BC1C70B01CF89F831C831D001C60375DC81C6604BBBF6C1C61001FE89F031F831C801C20355E881C270BCBFBEC1C21701F289D031F031F801C1034DF481C1C67E9B28C1C10401D189C831D031F001C7037DC081C7FA27A1EAC1C70B01CF89F831C831D001C60375CC81C68530EFD4C1C61001FE89F031F831C801C20355D881C2051D8804C1C21701F289D031F031F801C1034DE481C139D0D4D9C1C10401D189C831D031F001C7037DF081C7E599DBE6C1C70B01CF89F831C831D001C60375FC81C6F87CA21FC1C61001FE89F031F831C801C20355C881C26556ACC4C1C21701F289F8F7D009D031F001C1034DC081C1442229F4C1C10601D189F0F7D009C831D001C7037DDC81C797FF2A43C1C70A01CF89D0F7D009F831C801C60375F881C6A72394ABC1C60F01FE89C8F7D009F031F801C20355D481C239A093FCC1C21501F289F8F7D009D031F001C1034DF081C1C3595B65C1C10601D189F0F7D009C831D001C7037DCC81C792CC0C8FC1C70A01CF89D0F7D009F831C801C60375E881C67DF4EFFFC1C60F01FE89C8F7D009F031F801C20355C481C2D15D8485C1C21501F289F8F7D009D031F001C1034DE081C14F7EA86FC1C10601D189F0F7D009C831D001C7037DFC81C7E0E62CFEC1C70A01CF89D0F7D009F831C801C60375D881C6144301A3C1C60F01FE89C8F7D009F031F801C20355F481C2A111084EC1C21501F289F8F7D009D031F001C1034DD081C1827E53F7C1C10601D189F0F7D009C831D001C7037DEC81C735F23ABDC1C70A01CF89D0F7D009F831C801C60375C881C6BBD2D72AC1C60F01FE89C8F7D009F031F801C20355E481C291D386EBC1C21501F28B4508010801500401700801780C5F5E5BC9C20800C814000053E840000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008F45EC8B5D0C6A088D4310508D"
    $_MD5Opcode &= "45F850E8510000008B4310C1E80383E03F8945F483F838730B6A38582B45F48945F0EB096A78582B45F48945F0FF75F0FF75ECFF750CE831F8FFFF6A088D45F850FF750CE823F8FFFF6A1053FF7508E8050000005BC9C210005589E55156578B7D088B750C8B4D10FCF3A45F5E595DC20C00"

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

    $hWindow_Login = GUICreate("Login", 274, 160)
    GUISetIcon("shell32.dll", -45)
    GUISetFont(8, 800, 0, "MS Sans Serif")
    GUICtrlCreateLabel("Benutzername", 15, 14, 84, 17)
    GUICtrlCreateLabel("Passwort", 43, 38, 55, 17)
    $hInput_Benutzername = GUICtrlCreateInput("", 102, 12, 157, 21)
    $hInput_Passwort = GUICtrlCreateInput("", 102, 36, 157, 21)
    $hButton_Login = GUICtrlCreateButton("Login", 10, 62, 250, 23, $BS_DEFPUSHBUTTON)

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

    $Label1 = GUICtrlCreateLabel("[Tutorial] + [Hilfedatei]", 70, 90, 194, 20)
    $Label2 = GUICtrlCreateLabel("Login + Registrierung über eine MySQL-DB", 12, 105, 252, 20)
    $Label3 = GUICtrlCreateLabel("von Jautois", 105, 123, 100, 20)
    GUICtrlSetColor(-1, 0x0000FF)
    $Label4 = GUICtrlCreateLabel("http://www.autoit.de", 75, 141, 120, 20)
    GUICtrlSetColor(-1, 0x0000FF)

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

    GUISetState(@SW_SHOW)

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $hButton_Login
    $sBenutzername = GUICtrlRead($hInput_Benutzername)
    $sPasswort = GUICtrlRead($hInput_Passwort)

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

    If $sBenutzername <> "" And $sPasswort <> "" Then
    Switch _Login($sBenutzername, _MD5($sPasswort))
    Case 0
    MsgBox(16, "Error", "Benutzername ist nicht registriert!")
    Case 1
    MsgBox(32, "Info", "Erfolgreich eingeloggt!")
    Case 2
    MsgBox(16, "Error", "Passwort ist falsch!")
    EndSwitch
    Else
    MsgBox(48, "Info", "Bitte einen Bentzernamen/Passwort angeben!")
    EndIf
    EndSwitch
    WEnd

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

    Func _Login($sBenutzername = "", $sPasswort = "")
    $iRValue = _INetGetSource("http://blackeyesstream.bl.funpic.de/login.php?benutzername=" & $sBenutzername & "&passwort=" & $sPasswort)
    $iRValue = _INetGetSource("http://account.ac.funpic.de/login.php?benutzername=" & $sBenutzername & "&passwort=" & $sPasswort)
    ; account.ac bedeutet benutzername. die ersten beiden buchstaben vom benutzername

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

    Switch $iRValue
    Case 0
    Return 0
    Case 1
    Return 1
    Case 2
    Return 2
    EndSwitch
    EndFunc ;==>_Login

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

    Func _MD5($Data)
    Local $CodeBuffer = DllStructCreate("byte[" & BinaryLen($_MD5Opcode) & "]")
    DllStructSetData($CodeBuffer, 1, $_MD5Opcode)

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

    Local $Input = DllStructCreate("byte[" & BinaryLen($Data) & "]")
    DllStructSetData($Input, 1, $Data)

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

    Local $Digest = DllStructCreate("byte[16]")

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

    DllCall("user32.dll", "none", "CallWindowProc", "ptr", DllStructGetPtr($CodeBuffer), _
    "ptr", DllStructGetPtr($Input), _
    "int", BinaryLen($Data), _
    "ptr", DllStructGetPtr($Digest), _
    "int", 0)

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

    Local $Ret = DllStructGetData($Digest, 1)
    $Input = 0
    $Digest = 0
    $CodeBuffer = 0
    Return StringLower(StringTrimLeft($Ret, 2))
    EndFunc ;==>_MD5

    [/autoit]

    Dabei kam dass heraus

    [Blockierte Grafik: http://img695.imageshack.us/img695/9015/1autoitv3script.jpg]

    Betriebssystem Windows 7 64bit

  • Hilfe bei Lautstärke slider

    • Molaynox
    • 3. Oktober 2010 um 10:48

    War nur der teil der noh fehler hatte

  • Hilfe bei Lautstärke slider

    • Molaynox
    • 2. Oktober 2010 um 14:05
    Zitat von yxyx

    und was mir noch so auffällt das der select-code oben im case vom stop button is
    also darum musst du erst play dan stop und dan nochma play drücken damit du musik hörst

    Vielen Dank das du mich darauf hingewiesen hast hab ich nämlich nicht bemerkt. jetzt funktioniert alles Vielen Dank. :rock:

  • Hilfe bei Lautstärke slider

    • Molaynox
    • 2. Oktober 2010 um 13:24

    Hi das hier ist mein script für den ich eine lautstärke regulierung per slider brauche. Wieseo funktionert es noch nicht?

    Spoiler anzeigen
    [autoit]

    #include <StructureConstants.au3>
    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <SliderConstants.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <ProgressConstants.au3>
    #include <Security.au3>
    #include <Memory.au3>
    #include <UDFGlobalID.au3>
    #include <GuiStatusBar.au3>
    #include <GUIEdit.au3>
    #include-once
    #include <WinAPI.au3>
    #include <WindowsConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <Constants.au3>
    #include <GUIEdit.au3>
    #include <GuiToolbar.au3>
    #include <inet.au3>
    #include <array.au3>
    #include <ie.au3>

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

    AdlibRegister("CheckMouse")

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

    $oWMP = ObjCreate("WMPLayer.ocx")
    $GUI = GUICreate("BlackEyes Stream Player", 498, 357, 238, 172)
    $Pic1 = GUICtrlCreatePic("C:\Users\Tobias\Desktop\Schwarzer-hintergrund.jpg", 0, 0, 497, 353, BitOR($WS_GROUP,$WS_CLIPSIBLINGS))
    $Combo1 = GUICtrlCreateCombo("Bitte auswählen", 144, 112, 209, 25)
    GUICtrlSetData(-1,"TechnoBase.FM|Top100Station|Planet Radio|YouFM|BigFM|89.0 RTL","Bitte auswählen")
    $Label1 = GUICtrlCreateLabel("Radio Streams", 144, 88, 94, 20)
    GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetColor(-1, 0xFFFFFF)
    $Button1 = GUICtrlCreateButton("Play", 24, 304, 193, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    $Button2 = GUICtrlCreateButton("Stop", 280, 304, 193, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetState($Button2, $GUI_DISABLE)
    $Progress1 = GUICtrlCreateProgress(8, 8, 33, 265, $PBS_VERTICAL)
    $Volume = GUICtrlCreateSlider(448, 8, 33, 265, BitOR($TBS_AUTOTICKS,$TBS_VERT))
    GUICtrlSetData(-1, $oWMP.settings.volume())
    GUICtrlSetState($Volume, $GUI_DISABLE)
    GUISetState(@SW_SHOW)

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    $readcombo1 = GUICtrlRead($Combo1)
    $oWMP.controls.play()
    GUICtrlSetData($Progress1, 100)
    $oWMP.settings.volume = 50
    GUICtrlSetState($Volume, $GUI_ENABLE)
    GUICtrlSetState($Button1, $GUI_DISABLE)
    GUICtrlSetState($Button2, $GUI_ENABLE)
    GUICtrlSetState($Combo1, $GUI_DISABLE)
    Case $Button2
    $oWMP.controls.stop()
    GUICtrlSetState($Volume, $GUI_DISABLE)
    GUICtrlSetState($Button1, $GUI_ENABLE)
    GUICtrlSetState($Button2, $GUI_DISABLE)
    GUICtrlSetState($Combo1, $GUI_ENABLE)
    $oWMP.settings.volume = 100 - GUICtrlRead($Volume)
    Select
    Case $readcombo1 = "TechnoBase.FM"
    $oWMP.URL = 'http://listen.technobase.fm/tunein-dsl-asx'
    Case $readcombo1 = "Top100Station"
    $oWMP.URL = 'http://www.top100station.de/switch/r3472.asx'
    Case $readcombo1 = "Planet Radio"
    $oWMP.URL = 'http://lsd.newmedia.nacamar.net/bb/redirect.lsc?stream=planetradio$livestream.mp3&content=live&media=mp3'
    Case $readcombo1 = "YouFM"
    $oWMP.URL = 'http://metafiles.gl-systemhaus.de/hr/youfm_1.asx'
    Case $readcombo1 = "BigFM"
    $oWMP.URL = 'http://217.151.152.245/bigfm-mp3-96'
    Case $readcombo1 = "89.0 RTL"
    $oWMP.URL = 'http://www.89.0rtl.de/webradio/rtl-high.m3u'
    EndSelect
    EndSwitch
    WEnd

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

    Func CheckMouse()
    Local Static $mouseout=0
    $aMpos = MouseGetPos()
    $aWpos = WinGetPos("BlackEyes Stream Player")
    If $aMpos[0] > $aWpos[0] And $aMpos[0] < $aWpos[0] + $aWpos[2] And $aMpos[1] > $aWpos[1] And $aMpos[1] < $aWpos[1] + $aWpos[3] Then
    If $mouseout = 1 Then
    For $i=30 to 255 Step 30
    WinSetTrans("BlackEyes Stream Player", "", $i)
    sleep(50)
    Next
    WinSetTrans("BlackEyes Stream Player", "", 255)
    $mouseout=0
    EndIf
    Else
    If $mouseout=0 Then
    For $i=255 to 30 Step -30
    WinSetTrans("BlackEyes Stream Player", "", $i)
    sleep(50)
    Next
    $mouseout=1
    EndIf
    EndIf
    EndFunc

    [/autoit]

    Habt ihr vielleicht noch andere vorschläge zur verbesserung??? ?(

  • Mit GUICtrlRead mehrere input felder auslesen

    • Molaynox
    • 19. September 2010 um 20:15

    Hat sich erledigt trotzdem danke.

  • Mit GUICtrlRead mehrere input felder auslesen

    • Molaynox
    • 19. September 2010 um 20:07

    Es soll die 3 inputs und das edit feld auslesen.

  • Mit GUICtrlRead mehrere input felder auslesen

    • Molaynox
    • 19. September 2010 um 19:50

    Also das hier ist der script für den ich dass brauche. (den habe ich im internet gefunden):

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 292, 315, 192, 124)
    $Absenden = GUICtrlCreateButton("Absenden", 40, 264, 201, 33, $WS_GROUP)
    $Input1 = GUICtrlCreateInput("Vorname", 72, 24, 137, 21)
    $Input2 = GUICtrlCreateInput("Nachnahme", 72, 64, 137, 21)
    $Input3 = GUICtrlCreateInput("Betreff", 72, 104, 137, 21)
    $Edit1 = GUICtrlCreateEdit("", 72, 136, 137, 105)
    GUICtrlSetData(-1, "Text")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    Func _Senden ()
    ProgressOn ("E-mail","Email wird versendet! Bitte warten!","Einstellungen auslesen.",-1,-1,2)

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

    $Bericht = GUICtrlRead($Input)
    $Bericht2 = GUICtrlRead($Input2)
    $Bericht3 = GUICtrlRead($Input3)
    $Bericht4 = GUICtrlRead($Edit1)
    ;
    ;##################################
    ; Include
    ;##################################

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

    ;##################################
    ; Variables
    ;##################################
    $SmtpServer = "" ; address for the smtp-server to use - REQUIRED
    $FromName = "" ; name from who the email was sent
    $FromAddress = "" ; address from where the mail should come
    $ToAddress = "" ; destination address of the email - REQUIRED
    $Subject = "" ; subject from the email - can be anything you want it to be
    $Body = $Bericht ; the messagebody from the mail - can be left blank but then you get a blank mail
    $AttachFiles = "" ; the file you want to attach- leave blank if not needed
    $CcAddress = "" ; address for cc - leave blank if not needed
    $BccAddress = "" ; address for bcc - leave blank if not needed
    $Importance = "Normal" ; Send message priority: "High", "Normal", "Low"
    $Username = "" ; username for the account used from where the mail gets sent - REQUIRED
    $Password = "" ; password for the account used from where the mail gets sent - REQUIRED
    $IPPort = 25 ; port used for sending the mail
    $ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS
    ;~ $IPPort=465 ; GMAIL port used for sending the mail
    ;~ $ssl=1 ; GMAILenables/disables secure socket layer sending - put to 1 if using httpS

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

    ;##################################
    ; Script
    ;##################################

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

    ProgressSet (50 , "E-mail wird versendet!")
    $rc = _INetSmtpMailCom($SmtpServer, $FromName, $FromAddress, $ToAddress, $Subject, $Body, $AttachFiles, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl)
    If @error Then
    MsgBox(0, "Error sending message", "Error code:" & @error & " Description:" & $rc)
    EndIf
    ProgressSet (100 , "Fertig!")
    Sleep (100)
    MsgBox (64,"E-mail","E-mail erfolgreich versendet!")
    ProgressOff ()
    EndFunc
    ;
    ; The UDF
    Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Importance="Normal", $s_Username = "", $s_Password = "", $IPPort = 25, $ssl = 0)
    Local $objEmail = ObjCreate("CDO.Message")
    $objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>'
    $objEmail.To = $s_ToAddress
    Local $i_Error = 0
    Local $i_Error_desciption = ""
    If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress
    If $s_BccAddress <> "" Then $objEmail.Bcc = $s_BccAddress
    $objEmail.Subject = $s_Subject
    If StringInStr($as_Body, "<") And StringInStr($as_Body, ">") Then
    $objEmail.HTMLBody = $as_Body
    Else
    $objEmail.Textbody = $as_Body & @CRLF
    EndIf
    If $s_AttachFiles <> "" Then
    Local $S_Files2Attach = StringSplit($s_AttachFiles, ";")
    For $x = 1 To $S_Files2Attach[0]
    $S_Files2Attach[$x] = _PathFull($S_Files2Attach[$x])
    ConsoleWrite('@@ Debug(62) : $S_Files2Attach = ' & $S_Files2Attach & @LF & '>Error code: ' & @error & @LF) ;### Debug Console
    If FileExists($S_Files2Attach[$x]) Then
    $objEmail.AddAttachment ($S_Files2Attach[$x])
    Else
    ConsoleWrite('!> File not found to attach: ' & $S_Files2Attach[$x] & @LF)
    SetError(1)
    Return 0
    EndIf
    Next
    EndIf
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer
    If Number($IPPort) = 0 then $IPPort = 25
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort
    ;Authenticated SMTP
    If $s_Username <> "" Then
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password
    EndIf
    If $ssl Then
    $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
    EndIf
    ;Update settings
    $objEmail.Configuration.Fields.Update
    ; Set Email Importance
    Switch $s_Importance
    Case "High"
    $objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "High"
    Case "Normal"
    $objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "Normal"
    Case "Low"
    $objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "Low"
    EndSwitch
    $objEmail.Fields.Update
    ; Sent the Message
    $objEmail.Send
    If @error Then
    SetError(2)
    Return $oMyRet[1]
    EndIf
    $objEmail=""
    EndFunc ;==>_INetSmtpMailCom
    ;
    ;
    ; Com Error Handler
    Func MyErrFunc()
    $HexNumber = Hex($oMyError.number, 8)
    $oMyRet[0] = $HexNumber
    $oMyRet[1] = StringStripWS($oMyError.description, 3)
    ConsoleWrite("### COM Error ! Number: " & $HexNumber & " ScriptLine: " & $oMyError.scriptline & " Description:" & $oMyRet[1] & @LF)
    SetError(1); something to check for when this function returns
    Return
    EndFunc ;==>MyErrFunc

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    EndSwitch
    WEnd

    [/autoit]


    Was muss ich hier noch ändern damit er funktioniert???? (die felder wo ich smtp server und so eintragen muss mache ich später)

  • Mit GUICtrlRead mehrere input felder auslesen

    • Molaynox
    • 19. September 2010 um 19:20

    Äh naja so schaffe ich das irgendwie auch nicht.
    Ich wollte es auslesen und in eine variable machen.
    Also so:

    [autoit]

    $Read =

    [/autoit]


    So dass ich es als variable verwenden kann.

  • Mit GUICtrlRead mehrere input felder auslesen

    • Molaynox
    • 19. September 2010 um 18:50

    Hallo ich habe eine Frage bezüglich der Funktion GUICtrlRead.
    Wie kann ich mit dieser funktion mehrere input felder auslesen?

    Vielen Dank im Vorraus schonmal für eure Antworten. :rock:

  • Hauptfensterenster soll nach buttonklick noch offen sein

    • Molaynox
    • 16. März 2010 um 15:36

    danke für die schnelle antwort jetzt gehts.

  • Hauptfensterenster soll nach buttonklick noch offen sein

    • Molaynox
    • 15. März 2010 um 19:00

    Ich will einen script machen mit dem man programme starten kann die man häufig verwendet(klappt gut), aber nachdem ich auf einen Button geklickt hab soll das Fenster noch auf sein.
    Was muss ich an meinem script ändern damit das fenster($Form1) offen bleibt???

    [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <TabConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\tobi\eigene dateien\ultim.kxf
    $Form1 = GUICreate("Form1", 349, 251, 322, 213)
    $TabSheet = GUICtrlCreateTab(0, 0, 345, 249)
    $Programme = GUICtrlCreateTabItem("Programme starten")
    $Button1 = GUICtrlCreateButton("Rechner", 16, 32, 121, 25, $WS_GROUP)
    $IntExp = GUICtrlCreateButton("Internet Explorer", 16, 64, 121, 25, $WS_GROUP)
    $Arbeitsplatz = GUICtrlCreateButton("Arbeitsplatz", 208, 64, 121, 25, $WS_GROUP)
    $wmplayer = GUICtrlCreateButton("Windows Media Player", 208, 32, 121, 25, $WS_GROUP)
    $Word = GUICtrlCreateButton("WordPad (Texteditor)", 16, 96, 121, 25, $WS_GROUP)
    $editor = GUICtrlCreateButton("Editor", 208, 96, 121, 25, $WS_GROUP)
    $cmd = GUICtrlCreateButton("Eingabeaufforderung", 16, 128, 121, 25, $WS_GROUP)
    $Laufwerk = GUICtrlCreateTabItem("CD Laufwerk auswerfen")
    $Label1 = GUICtrlCreateLabel("Ihr müsst wissen welches Laufwerk euer CD Laufwerk ist", 32, 32, 272, 17)
    $c = GUICtrlCreateButton("C:", 16, 64, 121, 25, $WS_GROUP)
    $e = GUICtrlCreateButton("E:", 16, 96, 121, 25, $WS_GROUP)
    $d = GUICtrlCreateButton("D:", 208, 64, 121, 25, $WS_GROUP)
    $g = GUICtrlCreateButton("G:", 16, 128, 121, 25, $WS_GROUP)
    $h = GUICtrlCreateButton("H:", 208, 96, 121, 25, $WS_GROUP)
    $z = GUICtrlCreateButton("Z:", 16, 192, 121, 25, $WS_GROUP)
    $l = GUICtrlCreateButton("L:", 208, 160, 121, 25, $WS_GROUP)
    $m = GUICtrlCreateButton("M:", 208, 192, 121, 25, $WS_GROUP)
    $i = GUICtrlCreateButton("I:", 208, 128, 121, 25, $WS_GROUP)
    $k = GUICtrlCreateButton("K:", 16, 160, 121, 25, $WS_GROUP)
    $Windows = GUICtrlCreateTabItem("Windows Optionen")
    $sys = GUICtrlCreateButton("Systemsteuerung", 8, 32, 121, 25, $WS_GROUP)
    $softw = GUICtrlCreateButton("Installierte Software", 208, 32, 121, 25, $WS_GROUP)
    $bildschirmtast = GUICtrlCreateButton("Bildschirmtastatur", 8, 64, 121, 25, $WS_GROUP)
    $task = GUICtrlCreateButton("Taskmanager", 208, 64, 121, 25, $WS_GROUP)
    GUICtrlCreateTabItem("")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $IntExp
    Run("iexplore")
    ExitLoop
    Case $Arbeitsplatz
    Run("explorer")
    ExitLoop
    Case $wmplayer
    Run("wmplayer")
    ExitLoop
    Case $Word
    Run("WordPad")
    ExitLoop
    Case $editor
    Run("notepad")
    ExitLoop
    Case $cmd
    Run("cmd")
    ExitLoop
    Case $Button1
    Run("calc")
    ExitLoop
    Case $c
    CDTray("C", "closed")
    ExitLoop
    Case $e
    CDTray("E", "closed")
    ExitLoop
    Case $d
    CDTray("D", "closed")
    ExitLoop
    Case $g
    CDTray("G", "closed")
    ExitLoop
    Case $h
    CDTray("H", "closed")
    ExitLoop
    Case $z
    CDTray("Z", "closed")
    ExitLoop
    Case $l
    CDTray("L", "closed")
    ExitLoop
    Case $m
    CDTray("M", "closed")
    ExitLoop
    Case $i
    CDTray("I", "closed")
    ExitLoop
    Case $k
    CDTray("K", "closed")
    ExitLoop
    Case $sys
    Run("control")
    ExitLoop
    Case $softw
    Run("appwiz.cpl")
    ExitLoop
    Case $bildschirmtast
    Run("osk")
    ExitLoop
    Case $task
    Run("taskmgr")
    ExitLoop
    EndSwitch
    WEnd

    [/autoit]

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™