Jump to content
Sign in to follow this  
taotao878

Bug report

Recommended Posts

taotao878

1. please run this script in Win XPsp2

2. please run this script in Win 2003

The result of 1 is different from the result of 2.

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
Opt("MouseCoordMode", 2)

Global $n = 0
Global $MousePos = True
Global $Last


$mainwindow = GUICreate("test", 220, 220)
GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit")
GUISetOnEvent($GUI_EVENT_PRIMARYUP, '_PRIMARYup')
GUISetOnEvent($GUI_EVENT_MOUSEMOVE, "MouseOver")
$Previewimage = GUICtrlCreatePic("act_rs.bmp", 20, 20, 92, 46)
GUICtrlSetCursor($Previewimage, 0)
GUISetState(@SW_SHOW)

While 1
    Sleep(1000)
WEnd


Func _Exit()
     Exit
EndFunc


Func _PRIMARYup()
    If $MousePos Then
        If $n = 2 Then 
            $n = 0
        Else
            $start = TimerInit()
        EndIf
    EndIf
    $GGCI = GUIGetCursorInfo($mainwindow)
    If $GGCI[4] = $Previewimage Then msgbox(0,"test","Very beauty´╝ü")
EndFunc


Func MouseOver()
    $GGCI = GUIGetCursorInfo($mainwindow)
    If $GGCI[4] = $Previewimage And $Last <> $Previewimage  Then
        GUICtrlsetimage($Previewimage, "") 
        GUICtrlsetimage($Previewimage, "act_rs1.bmp")
        GuiCtrlSetCursor($Previewimage, 0)
        $Last = $Previewimage
    ElseIf $GGCI[4] <> $Previewimage And $Last = $Previewimage Then
        GUICtrlsetimage($Previewimage, "")
        GUICtrlsetimage($Previewimage, "act_rs.bmp")
        $Last = 0
    EndIf
EndFunc

The attached files are 32bit ARGB format BMP (with alpha channel)

act_rs1.bmp

act_rs.bmp

Edited by taotao878

Share this post


Link to post
Share on other sites
taotao878

run this script in WinXPsp2, the result like the attached file

post-24544-1207615622_thumb.jpg

Share this post


Link to post
Share on other sites
taotao878

run this script in Win2003, the result like the attached file

post-24544-1207615686_thumb.jpg

Share this post


Link to post
Share on other sites
JustinReno

I doubt this is a bug.

Share this post


Link to post
Share on other sites
taotao878

I think this is a bug also.

But nobody see this topic.

Share this post


Link to post
Share on other sites
taotao878

I think au3 isn't fully to support aRGB bmp format.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.