I have a problem with my AutoIt3 script. Basically I want to show a picture. I create a borderless gui with the same dimensions as the picture, the picture is always skewed, though. So what am I doing wrong ?
Code:
include <GUIConstants.au3>
#include <GDIPlus.au3>
; create variables and objects
dim $resX=800
dim $resY=61
_GDIPlus_Startup()
$gpsind0=_GDIPlus_ImageLoadFromFile("gpsind_0.png")
$gpsind1=_GDIPlus_ImageLoadFromFile("gpsind_1.png")
$gpsind2=_GDIPlus_ImageLoadFromFile("gpsind_2.png")
$gpsindgui=GUICreate("GPSIND",$resX,$resY,0,0,$WS_POPUP)
GUISetState(@SW_SHOW)
$hGraphic=_GDIPlus_GraphicsCreateFromHWND($gpsindgui)
; main program code
$flashcount=3
for $i=1 to $flashcount
_GDIPlus_GraphicsDrawImage($hGraphic,$gpsind0,0,0)
Sleep(600)
if $i<$flashcount then
_GDIPlus_GraphicsDrawImage($hGraphic,$gpsind2,0,0)
Sleep(600)
endif
next
; cleaning up
_GDIPlus_ImageDispose($gpsind0)
_GDIPlus_ImageDispose($gpsind1)
_GDIPlus_ImageDispose($gpsind2)
_GDIPlus_GraphicsDispose($hGraphic)
_GDIPlus_ShutDown()
GUIDelete("GPSIND")