Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 自动更新图像不工作_User Interface_Autoit - Fatal编程技术网

User interface 自动更新图像不工作

User interface 自动更新图像不工作,user-interface,autoit,User Interface,Autoit,我有一个应该更新图像的代码,但它没有。它适用于标签(文本),但不适用于图像。有人能帮忙吗这是我的密码: $tmppic="Images\tmp\Nodata.bmp" GUICreate("CPU Temp") Opt("GUIOnEventMode", 1) $tmpimg=GUICtrlCreatePic($tmppic,100,100,200,100) GUISetState() while 1 $tmppic="Images\tmp\1.bmp" GUICtrlSetdata

我有一个应该更新图像的代码,但它没有。它适用于标签(文本),但不适用于图像。有人能帮忙吗这是我的密码:

$tmppic="Images\tmp\Nodata.bmp"
GUICreate("CPU Temp")
Opt("GUIOnEventMode", 1)
$tmpimg=GUICtrlCreatePic($tmppic,100,100,200,100)
GUISetState()
while 1
   $tmppic="Images\tmp\1.bmp"
   GUICtrlSetdata($tmpimg,$tmppic)
WEnd

用GUICTRLESTIMAGE替换GUICTRLESTDATA,它应该可以工作;)