Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 11:34

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Image on the screen

Discussion on Image on the screen within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
CantShutMyMouth's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 380
Received Thanks: 163
Image on the screen

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???
CantShutMyMouth is offline  
Old 07/09/2012, 00:25   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
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 

omer36 is offline  
Old 07/09/2012, 13:17   #3
 
CantShutMyMouth's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 380
Received Thanks: 163
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.
CantShutMyMouth is offline  
Reply


Similar Threads Similar Threads
[VB.NET] Image From Screen?
03/20/2012 - .NET Languages - 2 Replies
Hey, Is there any understandable way to found image X from screen? For example if I have set image X as elitepvpers logo. I come to this site and click "find" button -> msgbox("imagefound" + image.size + image.location....). This above is the main question but if someone knows how to draw perfectly to screen it would be nice to know. I know how to draw dot, squares, etc but they stay on screen just until I draw other window above them. (=how to get them to stay on screen (topmost) even...
Dibiase - New Sig/Full Size Image - [GIANT IMAGE WARNING]
10/26/2011 - General Art - 1 Replies
WARNING - SOME OF THESE IMAGES ARE MASSIVE(OVER 2000 PIXELS WIDE/1000 PIXELS HIGH). This is my latest signature collection, the full size images show the detail. Full-Size: http://img339.imageshack.us/img339/971/dibiaseful l.png Super-Sized:



All times are GMT +1. The time now is 11:35.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.