Jump to content

Set Pixel


Recommended Posts

I know the set pixel function using dllcall and all, but if another color is written to that certain pixel, it goes away. Is it possible to "lock" the set pixel function so that if another color replaces that pixel, that it won't set? And I don't want and loop because it looks to glitchy to those windows that always set every pixel to a different color.

Thanks.

Link to comment
Share on other sites

Actually, your method has come to use to me, but I have 1 more question before I get off your tail =P.

So I have the GUI:

#include <GUIConstants.au3>

$GUI = GUICreate("My GUI", 50, 50, -1, -1, $WS_POPUP, $WS_EX_TOOLWINDOW); will create a dialog box that when displayed is centered
GUISetState (@SW_SHOW)

While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

But how do I get the box to reapear if another window pops up? I tried:

#include <GUIConstants.au3>

$GUI = GUICreate("My GUI", 50, 50, -1, -1, $WS_POPUP, $WS_EX_TOOLWINDOW); will create a dialog box that when displayed is centered
GUISetState (@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    GUISetState (@SW_Show, $GUI)
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

but that didn't work.

--Edit--

GUISetState(@SW_Restore) does the trick :whistle:

Edited by =sinister=
Link to comment
Share on other sites

Actually, your method has come to use to me, but I have 1 more question before I get off your tail =P.

So I have the GUI:

#include <GUIConstants.au3>

$GUI = GUICreate("My GUI", 50, 50, -1, -1, $WS_POPUP, $WS_EX_TOOLWINDOW); will create a dialog box that when displayed is centered
GUISetState (@SW_SHOW)

While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

But how do I get the box to reapear if another window pops up? I tried:

#include <GUIConstants.au3>

$GUI = GUICreate("My GUI", 50, 50, -1, -1, $WS_POPUP, $WS_EX_TOOLWINDOW); will create a dialog box that when displayed is centered
GUISetState (@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    GUISetState (@SW_Show, $GUI)
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

but that didn't work.

--Edit--

GUISetState(@SW_Restore) does the trick :whistle:

#include <GUIConstants.au3>

$GUI = GUICreate("My GUI", 50, 50, -1, -1, $WS_POPUP, $WS_EX_TOOLWINDOW); will create a dialog box that when displayed is centered
GUISetState (@SW_SHOW)

WinSetOnTop($GUI,"",1); this.

While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
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...