[autoit]
GUICtrlSetState($checkbox_1, $GUI_CHECKED)
[/autoit]GUICtrlSetState($checkbox_1, $GUI_CHECKED)
[/autoit]Genau
Sollten aber relativ aktuell sein.
Laut OneByOneFestival.de wird das Festival am 11.9 ausfallen, deswegen ist es wohl nicht in der Datenbank.
Hallo,
Möchte mein kleines Tool veröffentlichen. Gibt nen paar Infos aus, bei welchem Festival/Konzert eine Band spielt und was der Eintritt dafür kosten würde.
Ist vllt. ganz nützlich für ein paar Festivalbesucher unter euch ![]()
Edit: Bug behoben :o
Die GUI ist schon gelöscht bevor du mit GuiCtrlRead den Text ließt.
D.h.:
GuiCtrlRead, dann erst Deleten, und später Senden.
Ist der RegKey vllt. das richtige? (Existiert auch bei Portable)
HKEY_CURRENT_USER\Software\TeamViewer\Version5\Last_Machine_Connections
$TextRead = GUICtrlRead($Text1)
sleep(500)
send($TextRead)
![]()
Array
[autoit]MsgBox(0, "test", $string[0])
[/autoit]#include <array.au3>
$IniSection = IniReadSection("a.ini", "table")
_ArraySort($IniSection, 0, 0, 0, 1)
For $i = UBound($IniSection) - 1 To 1 Step -1
IniWrite("b.ini", "table", $IniSection[$i][0], $IniSection[$i][1])
Next
#include <array.au3>
$IniSection = IniReadSection("a.ini", "table")
_ArraySort($IniSection, 0, 0, 0, 1)
For $i = 1 To UBound($IniSection) - 1
IniWrite("b.ini", "table", $IniSection[$i][0], $IniSection[$i][1])
Next
Bei mir klappts. Grüße
$str = FileRead("test.dat")
$str = StringReplace($str, "L40", "L30")
FileWrite("test2.dat", $str)
Das ganze klappt schon so, es scheitert lediglich an der MsgBox, die es nicht anzeigen kann. Die Variable hat aber den kompletten Inhalt.
Ein Array ist keine normale Variable. Du musst schon angeben welchen genauen Wert du im Array haben willst.
Edit:
Hier mal eine bessere Version mit mehr Übersicht.
While True
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $zuruck, $vor
Local $Name
If $nMsg = $zuruck Then $Name = _GetActiveUser($avArray, GUICtrlRead($Label), -1)
If $nMsg = $vor Then $Name = _GetActiveUser($avArray, GUICtrlRead($Label), 1)
GUICtrlSetData($Label, $Name)
If $Name = "Jon" Then MsgBox(0, "", "Jon")
EndSwitch
WEnd
Func _GetActiveUser($aArray, $sLabel, $iMove)
If $aArray[0] = $sLabel And $iMove = -1 Then Return $aArray[UBound($aArray) - 1]
If $aArray[UBound($aArray) - 1] = $sLabel And $iMove = 1 Then Return $aArray[0]
For $i = 0 To UBound($aArray) - 1
If $aArray[$i] = $sLabel Then Return $aArray[$i + $iMove]
Next
EndFunc ;==>_GetActiveUser
While True
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $zuruck
$iActive -= 1
If $iActive < 0 Then $iActive = UBound($avArray) - 1
GUICtrlSetData($Label, $avArray[$iActive])
If $avArray[$iActive] = "Jon" Then MsgBox(262144, "Jon", "Ich bin Jon")
Case $vor
$iActive += 1
If $iActive >= UBound($avArray) Then $iActive = 0
GUICtrlSetData($Label, $avArray[$iActive])
If $avArray[$iActive] = "Jon" Then MsgBox(262144, "Jon", "Ich bin Jon")
EndSwitch
WEnd
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 192, 124)
$zuruck = GUICtrlCreateButton("<---------", 24, 88, 225, 57, $WS_GROUP)
$vor = GUICtrlCreateButton("--------->", 368, 88, 217, 57, $WS_GROUP)
$Label = GUICtrlCreateLabel("", 192, 264, 266, 33)
GUICtrlSetFont(-1, 18, 800, 0, "Arial Narrow")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x000000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
#include <Array.au3>
Local $avArray[10] = ["JPM","Holger","Jon","Larry","Jeremy","Valik","Cyberslug","Nutster","JdeB","Tylo"]
GUICtrlSetData($Label, $avArray[0])
$iActive = 0
While True
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $zuruck
$iActive -= 1
If $iActive < 0 Then $iActive = UBound($avArray) - 1
GUICtrlSetData($Label, $avArray[$iActive])
Case $vor
$iActive += 1
If $iActive >= UBound($avArray) Then $iActive = 0
GUICtrlSetData($Label, $avArray[$iActive])
EndSwitch
WEnd
.db, oder was auch immer du willst.
If GuiCtrlRead($stunde1) = @HOUR and GuiCtrlRead($minute) = @MIN Then
[/autoit]Also ich habe da nicht wirklich was eingestellt. Später ja, aber es ging eigentlich immer, egal welche Einstellungen.
Das Problem ist, Themida hilft dir auch nicht. Habe auch schon selbst meine Scripte damit gepackt und mit paar Minuten google sie wieder entpackt, ohne jegliche Erfahrung darin zu haben.
Da gibts schon ne Func dazu :E? Auch recht^^ Meine ist eh langsam.
Hey, vorhin hatte ich mal Zeit.
#include <GuiConstantsEx.au3>
#include <GDIPlus.au3>
#include <array.au3>
$hGUI = GUICreate("GDI+", 400, 300, 100)
GUISetState()
_GDIPlus_Startup()
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI)
;#################### EXAMPLE 1
_GDIPlus_GraphicsDrawLine($hGraphic, 10, 75, 100, 80)
_GDIPlus_GraphicsDrawRect($hGraphic, 30, 20, 50, 50)
$Koords1 = _GetPixelOfLineRectIntercept(10, 75, 100, 80, 30, 20, 50, 50)
[/autoit] [autoit][/autoit] [autoit]If $Koords1[0][0] = True Then
$hBrushRed = _GDIPlus_BrushCreateSolid(0xFFFF0000)
_GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords1[1][0] - 2, $Koords1[1][1] - 2, 4, 4)
_GDIPlus_GraphicsFillPie($hGraphic, $Koords1[1][0] - 2, $Koords1[1][1] - 2, 4, 4, 0, 360, $hBrushRed)
_GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords1[2][0] - 2, $Koords1[2][1] - 2, 4, 4)
_GDIPlus_GraphicsFillPie($hGraphic, $Koords1[2][0] - 2, $Koords1[2][1] - 2, 4, 4, 0, 360, $hBrushRed)
EndIf
_ArrayDisplay($Koords1)
;####################
;#################### EXAMPLE 2
_GDIPlus_GraphicsDrawLine($hGraphic, 260, 100, 300, 50)
_GDIPlus_GraphicsDrawRect($hGraphic, 250, 20, 30, 70)
$Koords2 = _GetPixelOfLineRectIntercept(260, 100, 300, 50, 250, 20, 30, 70)
[/autoit] [autoit][/autoit] [autoit]If $Koords2[0][0] = True Then
$hBrushRed = _GDIPlus_BrushCreateSolid(0xFFFF0000)
_GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords2[1][0] - 2, $Koords2[1][1] - 2, 4, 4)
_GDIPlus_GraphicsFillPie($hGraphic, $Koords2[1][0] - 2, $Koords2[1][1] - 2, 4, 4, 0, 360, $hBrushRed)
_GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords2[2][0] - 2, $Koords2[2][1] - 2, 4, 4)
_GDIPlus_GraphicsFillPie($hGraphic, $Koords2[2][0] - 2, $Koords2[2][1] - 2, 4, 4, 0, 360, $hBrushRed)
EndIf
_ArrayDisplay($Koords2)
;####################
;#################### EXAMPLE 3
_GDIPlus_GraphicsDrawLine($hGraphic, 210, 180, 270, 260)
_GDIPlus_GraphicsDrawRect($hGraphic, 150, 190, 150, 50)
$Koords3 = _GetPixelOfLineRectIntercept(210, 180, 270, 260, 150, 190, 150, 50)
[/autoit] [autoit][/autoit] [autoit]If $Koords3[0][0] = True Then
$hBrushRed = _GDIPlus_BrushCreateSolid(0xFFFF0000)
_GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords3[1][0] - 2, $Koords3[1][1] - 2, 4, 4)
_GDIPlus_GraphicsFillPie($hGraphic, $Koords3[1][0] - 2, $Koords3[1][1] - 2, 4, 4, 0, 360, $hBrushRed)
_GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords3[2][0] - 2, $Koords3[2][1] - 2, 4, 4)
_GDIPlus_GraphicsFillPie($hGraphic, $Koords3[2][0] - 2, $Koords3[2][1] - 2, 4, 4, 0, 360, $hBrushRed)
EndIf
_ArrayDisplay($Koords3)
_GDIPlus_GraphicsDrawLine($hGraphic, 120, 210, 320, 220)
[/autoit] [autoit][/autoit] [autoit]$Koords4 = _GetPixelOfLineRectIntercept(120, 210, 320, 220, 150, 190, 150, 50)
[/autoit] [autoit][/autoit] [autoit]If $Koords4[0][0] = True Then
$hBrushRed = _GDIPlus_BrushCreateSolid(0xFFFF0000)
_GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords4[1][0] - 2, $Koords4[1][1] - 2, 4, 4)
_GDIPlus_GraphicsFillPie($hGraphic, $Koords4[1][0] - 2, $Koords4[1][1] - 2, 4, 4, 0, 360, $hBrushRed)
_GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords4[2][0] - 2, $Koords4[2][1] - 2, 4, 4)
_GDIPlus_GraphicsFillPie($hGraphic, $Koords4[2][0] - 2, $Koords4[2][1] - 2, 4, 4, 0, 360, $hBrushRed)
EndIf
_ArrayDisplay($Koords4)
;####################
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
_GDIPlus_GraphicsDispose($hGraphic)
_GDIPlus_Shutdown()
Func _GetPixelOfLineRectIntercept($iLineX1, $iLineY1, $iLineX2, $iLineY2, $iRectX, $IRectY, $IRectW, $iRectH)
Local $iVals[16] = [$iRectX, $iRectX + $IRectW, $IRectY, 0, $IRectY, $IRectY + $iRectH, $iRectX, 1, $iRectX, $iRectX + $IRectW, $IRectY + $iRectH, 0, $IRectY, $IRectY + $iRectH, $iRectX + $IRectW, 1]
Dim $aArray[2], $aFoundArray[3][2]
If $iLineX1 >= $iLineX2 And $iLineY1 >= $iLineY2 Then ; RECHTS UNTEN
$xAbstand = $iLineX1 - $iLineX2
$yAbstand = $iLineY1 - $iLineY2
If $yAbstand > $xAbstand Then
For $j = 1 To $yAbstand Step +1
ReDim $aArray[$yAbstand + 1]
$aArray[$j] = ($iLineY1) - $j & ";" & Round(($iLineX1) - $j * ($xAbstand / $yAbstand))
Next
Else
For $j = 1 To $xAbstand Step +1
ReDim $aArray[$xAbstand + 1]
$aArray[$j] = ($iLineX1) - $j & ";" & Round(($iLineY1) - $j * ($yAbstand / $xAbstand))
Next
EndIf
ElseIf $iLineX1 < $iLineX2 And $iLineY1 > $iLineY2 Then ; LINKS UNTEN
$xAbstand = $iLineX2 - $iLineX1
$yAbstand = $iLineY1 - $iLineY2
If $yAbstand > $xAbstand Then
For $j = 1 To $yAbstand Step +1
ReDim $aArray[$yAbstand + 1]
$aArray[$j] = Round(($iLineX1) + $j * ($xAbstand / $yAbstand)) & ";" & ($iLineY1) - $j
Next
Else
For $j = 1 To $xAbstand Step +1
ReDim $aArray[$xAbstand + 1]
$aArray[$j] = ($iLineX1) + $j & ";" & Round(($iLineY1) - $j * ($yAbstand / $xAbstand))
Next
EndIf
ElseIf $iLineX1 > $iLineX2 And $iLineY1 < $iLineY2 Then ; RECHTS OBEN
$xAbstand = $iLineX1 - $iLineX2
$yAbstand = $iLineY2 - $iLineY1
If $yAbstand > $xAbstand Then
For $j = 1 To $yAbstand Step +1
ReDim $aArray[$yAbstand + 1]
$aArray[$j] = Round(($iLineX1) - $j * ($xAbstand / $yAbstand)) & ";" & ($iLineY1) + $j
Next
Else
For $j = 1 To $xAbstand Step +1
ReDim $aArray[$xAbstand + 1]
$aArray[$j] = ($iLineX1) - $j & ";" & Round(($iLineY1) + $j * ($yAbstand / $xAbstand))
Next
EndIf
ElseIf $iLineX1 <= $iLineX2 And $iLineY1 <= $iLineY2 Then ; LINKS OBEN
$xAbstand = $iLineX2 - $iLineX1
$yAbstand = $iLineY2 - $iLineY1
If $yAbstand > $xAbstand Then
For $j = 1 To $yAbstand Step +1
ReDim $aArray[$yAbstand + 1]
$aArray[$j] = Round(($iLineX1) + $j * ($xAbstand / $yAbstand)) & ";" & ($iLineY1) + $j
Next
Else
For $j = 1 To $xAbstand Step +1
ReDim $aArray[$xAbstand + 1]
$aArray[$j] = ($iLineX1) + $j & ";" & Round(($iLineY1) + $j * ($yAbstand / $xAbstand))
Next
EndIf
EndIf
$aFoundArray[0][0] = False
For $k = 0 To 15 Step +4
Local $Val
$Val = _CalcRect($iVals[$k], $iVals[$k + 1], $iVals[$k + 2], $iVals[$k + 3], $aArray)
If $aFoundArray[1][0] = '' And $Val <> '' Then
$aFoundArray[1][0] = $Val[0]
$aFoundArray[1][1] = $Val[1]
ElseIf $aFoundArray[2][0] = '' And $Val <> '' Then
$aFoundArray[2][0] = $Val[0]
$aFoundArray[2][1] = $Val[1]
EndIf
Next
If $aFoundArray[1][0] <> "" And $aFoundArray[2][0] <> "" Then $aFoundArray[0][0] = True
Return $aFoundArray
EndFunc ;==>_GetPixelOfLineRectIntercept
Func _CalcRect($iVar1, $iVar2, $iVar3, $iMode, $aArray)
Local $aCalcArray[2]
For $i = $iVar1 To $iVar2
For $j = 1 To UBound($aArray) - 1
If $iMode = 0 Then
If $aArray[$j] = $i & ";" & $iVar3 Then
Local $aCalcArray[2] = [$i, $iVar3]
Return $aCalcArray
EndIf
ElseIf $iMode = 1 Then
If $aArray[$j] = $iVar3 & ";" & $i Then
Local $aCalcArray[2] = [$iVar3, $i]
Return $aCalcArray
EndIf
EndIf
Next
Next
Return ''
EndFunc ;==>_CalcRect