Halle Gemeinde
ich habe vor mit meinem script eine GUI zu erstellen die Coordinaten jedoch holt es sich aus jeweiligen txt dateien.
anschließend sollen zu den coordinaten noch einige Pixel dazugerechnet bzw. abgezogen werden (das definiere ich durch eine weitere txt)
allerdings scheint es nicht zu klappen. Er ließt alles richtig aus jedoch rechnet er scheinbar die coordinaten nicht zusammen
hoffentlich war das einigermßen verständlich.
MfG Eistee
Scriptteil :
Spoiler anzeigen
$Posi1 = FileReadLine("C:\Excite\Clock\Position.txt",1)
$Posi2 = FileReadLine("C:\Excite\Clock\Position.txt",2)
$PosiR1 = FileReadLine("C:\Excite\Clock\Position3.txt",1)
$PosiR2 = FileReadLine("C:\Excite\Clock\Position3.txt",2)
;$Posit1 = $Posi1 +25
;$Posit2 = $Posi2 -99 ;+119
$Posit11 = $Posi1 & " " & $PosiR1 ; $Posi11 beinhaltet die coordinaten $PosiR1 was zu den coordinaten gerechnet werden soll (in diesem fall 25 )
$Posit22 = $Posi2 & " " & $PosiR2 ;+119
$Positi1 =$Posit1
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]$Style2 = FileReadLine("C:\Excite\Clock\Style.txt",1)
$Style = "C:\Excite\Clock\" & $Style2 & "\BG1A.jpg"
$Sound2 = FileReadLine("C:\Excite\Clock\AlertSound.txt",1)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AlertSoundChange", 250, 100, $Posit11, $Posit22,$WS_POPUP)
$Input1 = GUICtrlCreateInput($Sound2, 30, 15, 152, 25)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Choose", 150, 65, 70, 25, 0)
$Button2 = GUICtrlCreateButton("Cancel", 30, 65, 70, 25, 0)
$Button3 = GUICtrlCreateButton("...", 192, 15, 25, 25, 0)
$Pic1 = GUICtrlCreatePic($Style, 0, 0, 250, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###