Hallo Leutz,
Ich muss schon wieder nerven ^^
Und zwar hab ich (mal so aus spaß)
ein virtuelles iPhone erstellt... (Prototyp nur Testweise)
Ich nehm natürlich auch ein paar Tipps an :)
Da ich neu bin (auch in AutoIT) weiß ich nicht was der Fehler ist..
Ich glaub mal das ich irgendwas mit dem "$path" Falsch gemacht hab..
Naja Danke im vorraus ;)
Ich muss schon wieder nerven ^^
Und zwar hab ich (mal so aus spaß)
ein virtuelles iPhone erstellt... (Prototyp nur Testweise)
Ich nehm natürlich auch ein paar Tipps an :)
Da ich neu bin (auch in AutoIT) weiß ich nicht was der Fehler ist..
Code:
$path = @ScriptDir & '\Doodle_Jump.exe'
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("iPhone", 248, 438, 192, 124)
$Pic = GUICtrlCreatePic("C:\Users\Admin\Desktop\AutoIT\iPhone Projekt\CroppedImage180320-iphone-vnc-33179.jpg", 0, -8, 241, 433)
$Button1 = GUICtrlCreateButton("Button1", 56, 88, 49, 49, $BS_BITMAP)
GUICtrlSetImage(-1, "C:\Users\Admin\Desktop\2678.bmp", -1)
$Label1 = GUICtrlCreateLabel("Doodle Jump", 48, 144, 66, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Case $Button1
Run ("$path")
Exit
EndSwitch
WEnd
Naja Danke im vorraus ;)