Jump to content

Bug report


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...