The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
Thread Tools Display Modes
Old 05-02-2008, 08:03 PM   #1
Variable Bitrate
 
Join Date: Aug 2004
Location: Germany
Vehicle: 91 Ford Probe
Posts: 309
My Photos: (0)
AutoIt Question (GDI)

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")

Konrad is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
heavy-duty OBD standards support question Michael2006 Engine Management, OBD-II, Engine Diagnostics, etc. 0 01-07-2007 04:13 AM
Any in-dash monitor with built in FM Radio QUESTION. ??? 74Camaro LCD/Display 2 05-02-2006 05:15 PM
Forum Etiquette Enforcer Newbie 5 01-09-2006 05:58 PM
Paint And Polish Question gboy Fabrication 8 08-13-2005 07:22 PM
FM Card Question.... Superbike1k Car Audio 1 05-16-2005 09:03 AM


All times are GMT -5. The time now is 04:17 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics