Image on the screen

07/08/2012 21:40 CantShutMyMouth#1
Hello ppls.

Is it possible,in autoit,to dont make anything only an transparent background image somewhere on the screen,like a "+" or something?? If yes,please,tell me how.

And to make the script to be ALWAYS ON TOP???
07/09/2012 00:25 omer36#2
like this?

PHP Code:

#Include <Misc.au3>

HotKeySet("{ESC}", "_exit")

$color1 = 0x0000FF

_run
()


Func _Run()
    
$handle = ControlGetHandle("Program Manager", "", 1) 
    ;
$handle = ControlGetHandle("Counter-Strike", "", 1)
    ;
$handle = ControlGetHandle("[active]", "", 1)

    While 
1

    
For $i=1 To 20
        SetPixel
($handle, (@DesktopWidth/2-10)+$i, @DesktopHeight/2, $color1)
        
Sleep(10)
        
SetPixel($handle, @DesktopWidth/2, (@DesktopHeight/2-10)+$i, $color1)
    
Next
    Sleep
(10)
    
WEnd
EndFunc 
;==>_Run

Func SetPixel
($handle, $x, $y, $color)
    
$dc = DllCall("user32.dll", "int", "GetDC", "hwnd", $handle)
    
$setpixel = DllCall("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color)
    
$realesedc = DllCall("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0])
EndFunc   ;==>SetPixel

Func _exit
()
    Exit
EndFunc ;==>_exit 

[Only registered and activated users can see links. Click Here To Register...]
07/09/2012 13:17 CantShutMyMouth#3
Actually,it's kinda good...I changed the $handle(Program Manager) with Counter-Strike Source,but now it doesn;t work....it appear and disappear.