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

Beiträge von dark

  • gui button gedrückt halten

    • dark
    • 19. August 2015 um 15:08

    Hab es selber gelöst..


    C
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    
    
    
    
    $x = 400
    $y = 300
    
    
    
    
    $Form1 = GUICreate("Form1", $x, $y, 192, 114)
    $downbttn = GUICtrlCreateButton("<", 104, 48, 27, 25)
    $Label1 = GUICtrlCreateLabel("100", 144, 56, 22, 17)
    $upbttn = GUICtrlCreateButton(">", 176, 48, 27, 25)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    
    
    
    
    
    
    
    
    while 1
    	$aCursorInfo = GUIGetCursorInfo()
    		If $aCursorInfo[2] And $aCursorInfo[4] = $upbttn Then
    			GUICtrlSetData($Label1, GUICtrlRead($Label1) + 10)
    			sleep(100)
    		EndIf
    		If $aCursorInfo[2] And $aCursorInfo[4] = $downbttn Then
    			GUICtrlSetData($Label1, GUICtrlRead($Label1) - 10)
    			sleep(100)
    		EndIf
    WEnd
    Alles anzeigen
  • gui button gedrückt halten

    • dark
    • 19. August 2015 um 14:58
    C
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 413, 314, 192, 114)
    $downbttn = GUICtrlCreateButton("<", 104, 48, 27, 25)
    $Label1 = GUICtrlCreateLabel("100", 144, 56, 22, 17)
    $upbttn = GUICtrlCreateButton(">", 176, 48, 27, 25)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    
    
    While 1
    	$nMsg = GUIGetMsg()
    	Switch $nMsg
    		Case $GUI_EVENT_CLOSE
    			Exit
    		Case $upbttn
    			GUICtrlSetData($Label1, GUICtrlRead($Label1) + 10)
    		Case $downbttn
    			GUICtrlSetData($Label1, GUICtrlRead($Label1) - 10)
    	EndSwitch
    WEnd
    Alles anzeigen

    look at this code just c&p it in an autoit script..

    i want that if i hold my mouse down on one of this buttons that the case will be looped until i will release my mousebutton

  • gui button gedrückt halten

    • dark
    • 19. August 2015 um 14:30
    Zitat von Bioshade

    Zweites Problem:

    GUICTRLRead auf dem TabView selbst gibt dir den Aktuellen Tab als Nummer - 0 basiert. ;)

    danke das funktioniert jetz brauche ich nur noch zu wissen wie ich durch das gedr+ckt halten der maus taste den button öfters klicken lasse
    könnte ich nicht auslesen wo das gui ist das dan + left / top vom button rechnen und wenn der maus zeiger in einem bestimmten feld ist das dan eine aktion ausgeführt wird ?

  • gui button gedrückt halten

    • dark
    • 19. August 2015 um 12:44

    Hay ich brauche dringend hilfe.
    ich weis das es möglich ist da ich es schon mal gesehen habe aber ich weis leider nicht wie

    ich habe ein gui in diesem gui befindet sich ein button der durch anklicken eine variable + 1 rechnet
    ich möchte das mann den button nicht immer wieder klicken muss sondern das mann ihn gedrückt halten kann.

    außerdem würde es mich interessieren ob mann auslesen kann auf welchem tabcontrol mann sich gerade befindet
    da ich auf 2 tabs an der selben stelle den selben button habe aber sie für 2 unterschiedliche dinge gedacht sind.

    danke im vorraus :)
    dark

  • Autoit script ändert windows standart funktionen / Tastatur

    • dark
    • 17. August 2015 um 12:00

    hab es gefixt..

    Problem:

    Code
    while 1
    send("{i up}")
    ;funktionen
    wend
  • Autoit script ändert windows standart funktionen / Tastatur

    • dark
    • 17. August 2015 um 11:01

    könnte soetwas durch viele inireads und iniwrites entstehen?

    hab noch vergessen zu erwähnen im gui sind noch 2 bilder eingebaut die über checkboxen und dem tabcontrol liegen und mit dem status $GUI_DISABLE belegt sind.

  • Autoit script ändert windows standart funktionen / Tastatur

    • dark
    • 17. August 2015 um 10:58
    Zitat von minx

    Weder die Funktionen, die du erwähnt hast, noch der Schnipsel helfen da weiter. Du musst zumindest allen Code posten, der irgendwas mit dem GUI bzw. dem Keyboard zu tun hat.

    hatte ich mir schon gedacht :D

    Code
    $Width = 500
    $Height = 300
    $sTitle = " sample"
    $sX = Default
    $sY = Default
    
    
    $hgui = GUICreate($sTitle, $Width, $Height, $sX, $sY , $WS_POPUP, $WS_EX_TOOLWINDOW)
    GUISetFont(10, 800, 0, "Tahoma")
    GUISetBkColor(0x464646)
    WinSetOnTop($sTitle,"",1)
    $Bar = GUICtrlCreateLabel($sTitle , 0 , 0 , $Width - 20, 20 , $SS_NOTIFY , $GUI_WS_EX_PARENTDRAG)
    GUICtrlSetFont($Bar, 12, 800, 0, "Tahoma") ; Bold
    GUICtrlSetColor($Bar , 0xD8DED3)
    GUICtrlSetBkColor($Bar , 0x5A6A50)
    
    
    
    
    $Exit = GUICtrlCreateLabel("X" , $Width - 20 , 0 , 20 , 20 , $SS_CENTER)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    GUICtrlSetFont($Exit, 10, 800, 0, "Tahoma") ; Bold
    GUICtrlSetColor($Exit , 0xD8DED3)
    GUICtrlSetBkColor($Exit, 0x5A6A50)
    $Tab1 = GUICtrlCreateTab(2, 22, $Width-2, $Height -22)
    GUICtrlSetFont($Tab1, 9, 800, 0, "Tahoma") ; Bold
    _GUICtrlTab_SetBkColor($hgui, $Tab1, 0x555555)
    
    
    
    
    ;tab1
    $sample = GUICtrlCreateTabitem("   sample   ")
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateButton("sample", 10, 54, 70, 24)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateButton("sample", 10, 84, 70, 24)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateButton("sample", 10, 114, 70, 24)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $Edit1 = GUICtrlCreateEdit("", 90, 54, $Width-100, $Height -64, "", $WS_EX_CLIENTEDGE)
    GUICtrlSendMsg($Edit1 , $EM_SETREADONLY, True, 0)
    GUICtrlSetFont($Edit1, 9, 800, 0, "Tahoma") ; Bold
    GUICtrlSetBkColor(-1, 0x555555)
    
    
    GUICtrlSetData($Edit1, "sample")
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ;tab1
    $Tab12 = GUICtrlCreateTabitem("   sample   ")
    $sample = GUICtrlCreateCombo("sample", 10, 54,  $Width-20, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
    GUICtrlSetData(-1, "sample")
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateButton("sample", 10, 84, 70, 24)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateButton("sample", 90, 84, 70, 24)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateLabel("sample", 41, 124, 25, 17)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    $sample	 = GUICtrlCreateButton("<",  19, 144, 17, 17)
    GUICtrlSetbkColor(-1, 0x565656)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample 	 = GUICtrlCreateButton(">",  69, 144, 17, 17)
    GUICtrlSetbkColor(-1, 0x565656)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateLabel("$sample", 42, 144, 25, 17)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateLabel("sample", 27, 184, 60, 17)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    $sample	 = GUICtrlCreateButton("<",  19, 204, 17, 17)
    GUICtrlSetbkColor(-1, 0x565656)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample 	 = GUICtrlCreateButton(">",  69, 204, 17, 17)
    GUICtrlSetbkColor(-1, 0x565656)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateLabel("$sample", 49, 204, 25, 17)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample 	  = GUICtrlCreateCheckbox("sample", 160, 164, 80,15)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateCheckbox("sample", 160, 184, 80,15)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    $Tab13 = GUICtrlCreateTabitem(" sample ")
    $sample = GUICtrlCreateCombo("sample", 10, 54,  $Width-20, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
    GUICtrlSetData(-1, "sample")
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateButton("sample", 10, 84, 70, 24)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateButton("sample", 90, 84, 70, 24)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateLabel("sample", 10, 124, 110, 17)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    $sample	 = GUICtrlCreateButton("<",  19, 144, 17, 17)
    GUICtrlSetbkColor(-1, 0x565656)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample 	 = GUICtrlCreateButton(">",  69, 144, 17, 17)
    GUICtrlSetbkColor(-1, 0x565656)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateLabel("0", 42, 144, 25, 17)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateLabel("sample", 12, 184, 110, 17)
    GUICtrlSetFont(-1, 10, 800, 0, "Tahoma") ; Bold
    $sample	 = GUICtrlCreateButton("<",  19, 204, 17, 17)
    GUICtrlSetbkColor(-1, 0x565656)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample 	 = GUICtrlCreateButton(">",  69, 204, 17, 17)
    GUICtrlSetbkColor(-1, 0x565656)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateLabel("0", 42, 204, 25, 17)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateCheckbox("sample", 14, 240,160,15)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateTabitem("    sample    ")
    $sample = GUICtrlCreateButton("sample", 10, 54, 70, 24)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateButton("sample", 90, 54, 70, 24)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateCheckbox("sample", 10, 100,80,15)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateCheckbox("sample", 10, 120,100,15)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateCheckbox("sample", 10, 140,100,15)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateCheckbox("sample", 10, 160,100,15)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample 	= GUICtrlCreateButton("sample",  220, 100, 100, 23)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample 	= GUICtrlCreateButton("sample",   220, 125, 100, 23)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample  = GUICtrlCreateButton("sample", 220, 150, 100, 23)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateTabitem("    sample   ")
    $sample = GUICtrlCreateButton("sample", 10, 54, 70, 24)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateButton("sample", 90, 54, 70, 24)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    GUICtrlSetbkColor(-1, 0x565656)
    $sample = GUICtrlCreateCheckbox("sample", 10, 100,80,15)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateCheckbox("sample", 10, 120,80,15)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    $sample = GUICtrlCreateCheckbox("sample", 10, 140,80,15)
    GUICtrlSetFont(-1, 9, 800, 0, "Tahoma") ; Bold
    GUISetState(@SW_SHOW)
    
    
    
    
    While 1
        $Msg = GUIGetMsg()
        Switch $Msg
            Case $Exit
                Exit
        EndSwitch
    WEnd
    Alles anzeigen

    das ist jetzt der code vom GUI aber mir ist aufgefallen das es nicht daran liegen kann..
    ich hab alle relevanten variablen auf "sample" umbenannt.

  • Autoit script ändert windows standart funktionen / Tastatur

    • dark
    • 17. August 2015 um 08:49

    Hay ich habe meinem autoit script ein neues menü verschafft doch seit dem ich das neue menü habe kommt es immer wieder vor das meine tastatur rumspackt zb:
    -auf ESC werde ich auf den Desktop getabt
    -auf TAB werde ich auf den Desktop getabt
    -"_" = "?"

    -"?" = "_"
    -usw.

    ich habe jetzt schon einige tage mein script immer wieder durchgeschaut aber keine lösung bzw auch nicht die fehlerquelle gefunden.
    ich möchte vorerst keinen source posten aber ich bin mir sicher das es am menü liegen muss.

    ich denke nicht das es am einfärben des tab controls liegt..

    Code
    Func _GUICtrlTab_SetBkColor($hWnd, $hSysTab32, $sBkColor)
    	Local $aTabPos = ControlGetPos($hWnd, "", $hSysTab32)
    	Local $aTab_Rect = _GUICtrlTab_GetItemRect($hSysTab32, -1)
    	GUICtrlCreateLabel("", $aTabPos[0]+2, $aTabPos[1]+$aTab_Rect[3]+4, $aTabPos[2]-6, $aTabPos[3]-$aTab_Rect[3]-7)
    	GUICtrlSetBkColor(-1, $sBkColor)
    	GUICtrlSetState(-1, $GUI_DISABLE)
    EndFunc

    ansonsten benutze ich nur normale funktionen wie guictrlcreatebutton, guictrlcreatelabel, guictrlcreatecheckbox, guictrlcreateradio, guictrlcreatetabitem, guictrlcreatecombo
    weis jemand einen schnellen weg um das zu fixen ohne das ich meine source raus rücken muss ?

    mfg dark

  • checkbox auf bild ?

    • dark
    • 15. August 2015 um 17:59

    dankeschön :)

  • checkbox auf bild ?

    • dark
    • 15. August 2015 um 17:43

    Was eigentlich ganz simples behindert mich an meiner weiterarbeit.

    Ich habe in einem GUI ein Bild eingefügt über GUICtrlCreatePic
    nun will ich 2 checkboxen über dieses bild legen.
    mein problem ist jetzt das die checkboxen entweder hinter dem bild verschwinden oder nicht anklick bar sind.
    wäre super wenn jemand eine lösung hätte
    mfg dark

  • Autoit Kreisförmiges GUI?

    • dark
    • 30. Juli 2015 um 15:49

    ich habe alle fehler behoben vielen dank :)

  • Autoit Kreisförmiges GUI?

    • dark
    • 30. Juli 2015 um 15:48

    okay vielen dank es hat funktioniert jedoch wenn ich das gui jetzt mit winmove verschieben will bzw die größe ändern möchte klappt das nicht mehr

  • Autoit Kreisförmiges GUI?

    • dark
    • 30. Juli 2015 um 15:44

    okay dankeschön ich werde mich mal dran versuchen :)

  • Autoit Kreisförmiges GUI?

    • dark
    • 30. Juli 2015 um 15:23

    ja schon so in die richting nur halt kreisrund sodass der durchmesser an jeder stelle gleich ist :)
    die funktion hatte ich bereits auch schon gefunden
    trotzdem danke für die antwort :)

  • Autoit Kreisförmiges GUI?

    • dark
    • 30. Juli 2015 um 14:56

    Hey
    Ich versuche aus einem GUI ein Kreisförmiges gui zu machen sodass alles was außerhalb des Kreises ist Transparent ist.

    Jedoch möchte ich das ganze micht mit GDI+ zeichnen lassen und den hintergrund transparent zeichnen lassen da das bei der hohen refreshzahl schnell anfängt zu laggen.
    wäre super wenn mir jemand da einen tipp geben kann.


    $hGUI = GUICreate("test gui", $size+1, $size,$posx,$posy, $WS_POPUP, BitOR( $WS_EX_TOPMOST,""))GUISetBkColor(0x404040)

    dieses gui einfach zu einem kreisförmigem gui machen das wäre perfekt :)
    mfg ditor

  • obfusecator

    • dark
    • 26. Februar 2015 um 19:08
    Zitat von water

    Den Obfuscator gibt es teilweise noch, er heisst jetzt Au3Stripper. Damit werden die nicht benötigten Teile des Skripts entfernt. Unleserlich machen lässt es sich mit der neuen Version nicht mehr.


    ja das ist mir bekannt aber mann kann trotzdem noch die alte version von scite benutzen mit obfusecator aber die habe ich leider nicht mehr

  • obfusecator

    • dark
    • 26. Februar 2015 um 18:15

    Hay ich hatte die ganze zeit noch das alte scite und desshalb auch den obfusecator doch heute hab ich es geschafft hab mein altes scite gelöscht.
    habe mir jetzt das neuste geholt und musste feststellen das der obfusecator entfernt wurde.
    wäre super wenn mir jemand das alte scite zur verfügung stellen könnte oder eine alternative vorschlagen könnte.
    mfg phillip

  • Autoit GDI+ GUI ohne rahnen

    • dark
    • 1. Januar 2015 um 20:26

    ich habe es hingekriegt dankeschön kann geclosed werden

  • Autoit GDI+ GUI ohne rahnen

    • dark
    • 1. Januar 2015 um 20:21
    Zitat von ShitDown

    Frage: Warum benutzt du eine "Dummy-GUI"? Brauchst du doch gar nicht...

    Siehe dir mal den Style $WS_POPUP an!

    das habe ich schon gemacht aber ich wüsste jetzt nicht an welcher stelle es hin müsste weil es so nicht funktioniert:

    Code
    _GDIPlus_Startup()
    $hDummy = GUICreate("")
    $hGUI = GUICreate("Control", 500, 200, $position[1], $position[2],"","",$WS_POPUP)


    aber danke für die antwort

  • Autoit GDI+ GUI ohne rahnen

    • dark
    • 1. Januar 2015 um 20:13

    Hay ich würde gerne mit gdi+ arbeiten um mir Sachen wie CPU-Auslastung / Temperatur usw anzeigen lassen darum geht es aber garnicht das habe ich alles ja schon ich möchte einfach nur ein kleines fenster das mit winsetontop auf dem desktop ist aber das ganze ohne rahmen und fensternamen (noborder) haben habe vieles versuch aber nichts bis jetzt hinbekommen

    Code
    _GDIPlus_Startup()
    $hDummy = GUICreate("")
    $hGUI = GUICreate("Control", 500, 200, $position[1], $position[2],"","",$hDummy)

    wäre echt super wenn mir jemand sagen kann was jetzt hier verändert werden muss um ein Noborder hinzubekommen
    mfg fred

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™