Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Graphic bug


  • Please log in to reply
26 replies to this topic

#1 Kip

Kip

    Into the JavaScript

  • Active Members
  • PipPipPipPipPipPip
  • 1,690 posts

Posted 15 September 2007 - 12:14 PM

Hi

I have a weird bug, if i wanna set pixels to a graphic, it skips parts.

Posted Image
the blue area is the graphic.
but it just doesnt set pixels in the red part.

this is with all my scripts with a graphic.

Kip :)







#2 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,557 posts

Posted 15 September 2007 - 12:28 PM

Demonstrating script is missing ...

#3 Kip

Kip

    Into the JavaScript

  • Active Members
  • PipPipPipPipPipPip
  • 1,690 posts

Posted 15 September 2007 - 08:14 PM

ok, (this is an another script, but it has the same problems)

just move your mouse over the window, and you'll see that it will go 'under something else'

Edited by kip, 15 September 2007 - 08:47 PM.


#4 therks

therks

    Witty quote

  • Active Members
  • PipPipPipPipPipPip
  • 2,168 posts

Posted 16 September 2007 - 08:43 AM

Actually, that script appears to work fine. It displays a little arrow where my mouse is and hides my mouse. I examined the code, and that's all I can see that you are doing. It doesn't show anything like your first example.

#5 Xenobiologist

Xenobiologist

    Xx Code~Mega xX

  • MVPs
  • 4,821 posts

Posted 16 September 2007 - 08:46 AM

Hi,

no problem for me.

Plain Text         
#cs ----------------------------------------------------------------------------  AutoIt Version: 3.2.8.1  Author:         myName  Script Function:     Just move the custom cursor over the window, and youll see my problem #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <GUIConstants.au3> $GUI = GUICreate("OSdesign",@DesktopWidth/2,@DesktopHeight/2,-1,-1,$WS_POPUP) GUISetBkColor(0xeeeeee) GUISetCursor(16,1) $MOUSE_GRAPHIC = GUICtrlCreateGraphic(0,0,12,12) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_COLOR,0x000000) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,0) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,1,0) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,1) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,2) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,3) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,4) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,5) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,6) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,7) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,8) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,0,9) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,1,9) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,2,8) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,3,7) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,4,7) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,5,7) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,6,7) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,7,7) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,7,6) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,6,5) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,5,4) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,4,3) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,3,2) GUICtrlSetGraphic($MOUSE_GRAPHIC,$GUI_GR_PIXEL,2,1) GUISetState(@SW_SHOW) While 1     $MousePos = GUIGetCursorInfo($GUI)     GUICtrlSetPos($MOUSE_GRAPHIC,$MousePos[0],$MousePos[1])     Sleep(10) WEnd


So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files *new

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times


#6 BrettF

BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • MVPs
  • 7,662 posts

Posted 16 September 2007 - 08:51 AM

Works fine with me too?

#7 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,549 posts

Posted 16 September 2007 - 12:30 PM

Works fine for me too
NOT REPRODUCIBLE

#8 Kip

Kip

    Into the JavaScript

  • Active Members
  • PipPipPipPipPipPip
  • 1,690 posts

Posted 16 September 2007 - 04:33 PM

ok, it does work on XP, but doesnt work on Vista :)

Edited by kip, 16 September 2007 - 04:45 PM.


#9 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,549 posts

Posted 16 September 2007 - 05:20 PM

ok, it does work on XP, but doesnt work on Vista :)

So you can understand why it is important to follow sticky directives.
I have no acess to Vista so Jon or other dev have to debug it. :)

#10 Kip

Kip

    Into the JavaScript

  • Active Members
  • PipPipPipPipPipPip
  • 1,690 posts

Posted 16 September 2007 - 06:47 PM

sorry (you mean the os, autoit version, etc. right?)

#11 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,549 posts

Posted 17 September 2007 - 09:33 AM

sorry (you mean the os, autoit version, etc. right?)

right :)
in your case Vista was so important

#12 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,549 posts

Posted 28 December 2007 - 02:44 PM

I got a Vista system so now I see that the problem is occuring if the mouse is 250<X>500 for any Y.
X,Y being relative coordinated in the windows;
There is no such check inside AutoIt code so I don't know how to debug such behavior. :)

#13 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 12 January 2008 - 12:42 AM

I can't reproduce this on Vista running under VMware. Does it require Aero to be enabled? I see nothing out of the ordinary using a non-Aero theme.

#14 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,549 posts

Posted 12 January 2008 - 09:31 PM

I can't reproduce this on Vista running under VMware. Does it require Aero to be enabled? I see nothing out of the ordinary using a non-Aero theme.

No I am running with Classic. I hope you did understood that the custom cursor is not paint in the read area.
That the script I use

#15 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 12 January 2008 - 09:40 PM

Cursor is painted fine for me no matter where it's at in the GUI.

#16 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,549 posts

Posted 13 January 2008 - 10:39 AM

Cursor is painted fine for me no matter where it's at in the GUI.

Can Jos/jon check about this?
I am running Vista X86 FR

#17 Jos

Jos

    oh joy ...

  • Developers
  • 22,534 posts

Posted 13 January 2008 - 11:05 AM

I don't get it in my VMware Vista instance...

Visit the SciTE4AutoIt3 Download page for the latest versions                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#18 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,549 posts

Posted 13 January 2008 - 06:00 PM

I don't get it in my VMware Vista instance...

at least you and Valik using VMware get same result.
Now I need Jon feedback which is running Vista UK

#19 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 10,292 posts

Posted 13 January 2008 - 06:13 PM

Cursor looks OK here.

#20 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,549 posts

Posted 13 January 2008 - 09:40 PM

Cursor looks OK here.

Are You running Classic theme?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users