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

Beiträge von Ineluki

  • 1-Click-Shutdown

    • Ineluki
    • 2. August 2010 um 16:16
    [autoit]

    Int()

    [/autoit]
  • Elegantere Lösung als das hier, action je nach IPadresse

    • Ineluki
    • 2. August 2010 um 13:51

    Beispiel:

    [autoit]

    $LeftPartIP=StringLeft(@IPAddress1,12)
    For $i=0 to 30
    If $LeftPartIP="172.30."&$i&"." Then
    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\samplekey", "Remote", "REG_SZ", "ON")
    Else
    RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\samplekey", "Remote")
    EndIf
    Next

    [/autoit]
  • Elegantere Lösung als das hier, action je nach IPadresse

    • Ineluki
    • 2. August 2010 um 13:25

    Guck dir mal

    [autoit]

    For ... to ... Step ...
    ...
    Next

    [/autoit]
  • Textdatei läßt sich nicht auslesen

    • Ineluki
    • 2. August 2010 um 10:07

    Es scheint an dem freien Platz am Anfang zu liegen.
    So dürfte es gehen:

    [autoit]

    MsgBox(0, "", StringReplace(FileRead("1.txt"), @TAB, ""))

    [/autoit]
  • Mehrzeiliger Button mit mehreren Bildern drin

    • Ineluki
    • 1. August 2010 um 21:01

    Wie wäres mal mit in der Hilfe gucken? ;)
    Ich hab nach 10 Sekunden das hier gefunden:

    [autoit]

    #include <ButtonConstants.au3>
    $hGUI = GUICreate("$BS_MULTILINE Beispiel", 408, 243, 192, 124)
    $Button1 = GUICtrlCreateButton("1.Zeile"&@CRLF&"2.Zeile", 128, 144, 169, 57, $BS_MULTILINE)
    GUISetState()
    While 1
    Switch GUIGetMsg()
    Case -3
    Exit
    EndSwitch
    WEnd

    [/autoit]
  • Differenz zwischen 2 Tastenanschlägen berechnen so schnell gelöst *Very Nice*

    • Ineluki
    • 31. Juli 2010 um 20:43

    Wieso denn so lang? :

    [autoit]

    #include <Misc.au3>
    Func WaitKeyPressed()
    While sleep(10)
    For $i=7 to 255
    If _IsPressed(Hex($i)) Then Return
    Next
    WEnd
    EndFunc

    [/autoit]

    Beispielscript:

    [autoit]

    #include <Misc.au3>
    WaitKeyPressed()
    MsgBox(0, "", "")

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

    Func WaitKeyPressed()
    While sleep(10)
    For $i=7 to 255
    If _IsPressed(Hex($i)) Then Return
    Next
    WEnd
    EndFunc

    [/autoit]
  • Buttons Drücken lassen

    • Ineluki
    • 31. Juli 2010 um 18:20

    Geh in den Tab Control...

  • Wurzel (Sqrt) Rückgabewertproblem

    • Ineluki
    • 31. Juli 2010 um 18:19
    Zitat von AspirinJunkie

    Ineluki
    Was mache ich mit deinem Skript wenn ich die Wurzel von 0.5 bestimmen will?
    So sollte die Abfrage wohl eher aussehen:

    [autoit]

    If $Wurzeltest <= 0 Then

    [/autoit]


    Nö, 0.5 ist ja größer als 0 ;)

  • Buttons Drücken lassen

    • Ineluki
    • 31. Juli 2010 um 18:15

    Drück mal in SciTE Strg+F6 ;)

  • Bestimmte Position Zahlen auslesen

    • Ineluki
    • 31. Juli 2010 um 18:14
    [autoit]

    #include <String.au3>
    $source=BinaryToString(INetRead("http://web93.server-drome.org/index.php"))
    $zahl=_StringBetween($source, "<h2>", "</h2>")
    MsgBox(0, "Zahl", $zahl[0])

    [/autoit]
  • Wurzel (Sqrt) Rückgabewertproblem

    • Ineluki
    • 31. Juli 2010 um 18:12
    Spoiler anzeigen
    [autoit]

    While 1
    $Wurzeltest = InputBox("Wurzelrückgabewert Test", "Gib die Zahl ein, deren Wurzel Du erfahren möchtest!")
    If @error = 1 Then
    Exit
    EndIf
    If $Wurzeltest < 0 Or Int($Wurzeltest) = 0 Then
    MsgBox(0, "Ungültige Eingabe!", "Du hast entweder nichts, oder eine fehlerhafte Zahl eingegeben.")
    Else
    $Ergebnis = Sqrt($Wurzeltest)
    MsgBox(0, "Ergebnis der Wurzel", "Die Wurzel aus " & $Wurzeltest & " ist " & $Ergebnis & ".")
    EndIf
    WEnd

    [/autoit]
  • Bass.dll funktioniert auf Win7 x64 nicht??

    • Ineluki
    • 31. Juli 2010 um 18:07
    Zitat von Developer30

    damit ändert sich bei mir komischerweise nichts.


    Hast du die volle Version von SciTE? Wenn nein, installiere sie, wenn ja, klick mal auf Run Script (x86) bzw. Compile Script(x86)

  • Buttons Drücken lassen

    • Ineluki
    • 31. Juli 2010 um 18:06
    [autoit]

    ControlClick

    [/autoit]
  • Bestimmte Position Zahlen auslesen

    • Ineluki
    • 31. Juli 2010 um 18:02

    Source der Website?

  • Bass.dll funktioniert auf Win7 x64 nicht??

    • Ineluki
    • 31. Juli 2010 um 18:01
    [autoit]

    #AutoIt3Wrapper_usex64=n

    [/autoit]


    An den Anfang vom Script schreiben

  • Wurzel (Sqrt) Rückgabewertproblem

    • Ineluki
    • 31. Juli 2010 um 17:41

    Du fragst schon vorher ab, ob der Wert negativ ist, wenn ja, wird das Script gar nicht weiter ausgeführt. Also kann die If Bedingung nie wahr sein.

  • GUI Transparent machen

    • Ineluki
    • 31. Juli 2010 um 16:21

    Benutz mal die SuFu, dzu gibts schon mehrere Threads ;)

  • alternative aktuallisierungsschleife zu while

    • Ineluki
    • 31. Juli 2010 um 12:51

    Steht alles in der GUIConstantsEx.au3:

    Spoiler anzeigen
    [autoit]

    #include-once

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

    ; #INDEX# =======================================================================================================================
    ; Title .........: GUIConstantsEx
    ; AutoIt Version : 3.2
    ; Language ......: English
    ; Description ...: Constants to be used in GUI applications.
    ; Author(s) .....: Jpm, Valik
    ; Dll ...........:
    ; ===============================================================================================================================

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

    ; #CONSTANTS# ===================================================================================================================
    ; Events and messages
    Global Const $GUI_EVENT_CLOSE = -3
    Global Const $GUI_EVENT_MINIMIZE = -4
    Global Const $GUI_EVENT_RESTORE = -5
    Global Const $GUI_EVENT_MAXIMIZE = -6
    Global Const $GUI_EVENT_PRIMARYDOWN = -7
    Global Const $GUI_EVENT_PRIMARYUP = -8
    Global Const $GUI_EVENT_SECONDARYDOWN = -9
    Global Const $GUI_EVENT_SECONDARYUP = -10
    Global Const $GUI_EVENT_MOUSEMOVE = -11
    Global Const $GUI_EVENT_RESIZED = -12
    Global Const $GUI_EVENT_DROPPED = -13

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

    Global Const $GUI_RUNDEFMSG = 'GUI_RUNDEFMSG'

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

    ; State
    Global Const $GUI_AVISTOP = 0
    Global Const $GUI_AVISTART = 1
    Global Const $GUI_AVICLOSE = 2

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

    Global Const $GUI_CHECKED = 1
    Global Const $GUI_INDETERMINATE = 2
    Global Const $GUI_UNCHECKED = 4

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

    Global Const $GUI_DROPACCEPTED = 8
    Global Const $GUI_NODROPACCEPTED = 4096
    Global Const $GUI_ACCEPTFILES = $GUI_DROPACCEPTED ; to be suppressed

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

    Global Const $GUI_SHOW = 16
    Global Const $GUI_HIDE = 32
    Global Const $GUI_ENABLE = 64
    Global Const $GUI_DISABLE = 128

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

    Global Const $GUI_FOCUS = 256
    Global Const $GUI_NOFOCUS = 8192
    Global Const $GUI_DEFBUTTON = 512

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

    Global Const $GUI_EXPAND = 1024
    Global Const $GUI_ONTOP = 2048

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

    ; Font
    Global Const $GUI_FONTITALIC = 2
    Global Const $GUI_FONTUNDER = 4
    Global Const $GUI_FONTSTRIKE = 8

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

    ; Resizing
    Global Const $GUI_DOCKAUTO = 0x0001
    Global Const $GUI_DOCKLEFT = 0x0002
    Global Const $GUI_DOCKRIGHT = 0x0004
    Global Const $GUI_DOCKHCENTER = 0x0008
    Global Const $GUI_DOCKTOP = 0x0020
    Global Const $GUI_DOCKBOTTOM = 0x0040
    Global Const $GUI_DOCKVCENTER = 0x0080
    Global Const $GUI_DOCKWIDTH = 0x0100
    Global Const $GUI_DOCKHEIGHT = 0x0200

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

    Global Const $GUI_DOCKSIZE = 0x0300 ; width+height
    Global Const $GUI_DOCKMENUBAR = 0x0220 ; top+height
    Global Const $GUI_DOCKSTATEBAR = 0x0240 ; bottom+height
    Global Const $GUI_DOCKALL = 0x0322 ; left+top+width+height
    Global Const $GUI_DOCKBORDERS = 0x0066 ; left+top+right+bottom

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

    ; Graphic
    Global Const $GUI_GR_CLOSE = 1
    Global Const $GUI_GR_LINE = 2
    Global Const $GUI_GR_BEZIER = 4
    Global Const $GUI_GR_MOVE = 6
    Global Const $GUI_GR_COLOR = 8
    Global Const $GUI_GR_RECT = 10
    Global Const $GUI_GR_ELLIPSE = 12
    Global Const $GUI_GR_PIE = 14
    Global Const $GUI_GR_DOT = 16
    Global Const $GUI_GR_PIXEL = 18
    Global Const $GUI_GR_HINT = 20
    Global Const $GUI_GR_REFRESH = 22
    Global Const $GUI_GR_PENSIZE = 24
    Global Const $GUI_GR_NOBKCOLOR = -2

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

    ; Background color special flags
    Global Const $GUI_BKCOLOR_DEFAULT = -1
    Global Const $GUI_BKCOLOR_TRANSPARENT = -2
    Global Const $GUI_BKCOLOR_LV_ALTERNATE = 0xFE000000

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

    ; Other
    Global Const $GUI_WS_EX_PARENTDRAG = 0x00100000
    ; ===============================================================================================================================

    [/autoit]


    Die Namen dürften alles erklären ;)

  • Sprache von Gadgets in Win 7

    • Ineluki
    • 31. Juli 2010 um 10:22

    Danke, sowas hab ich gesucht :thumbup:

  • Sprache von Gadgets in Win 7

    • Ineluki
    • 30. Juli 2010 um 21:57

    Dein erster Link funktioniert nicht :P
    Edit: jetzt geht er
    Und den 2. muss ich nicht verstehen, oder? xD

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™