|
You last visited: Today at 23:48
Advertisement
Image on the screen
Discussion on Image on the screen within the AutoIt forum part of the Coders Den category.
07/08/2012, 21:40
|
#1
|
elite*gold: 0
Join Date: Apr 2012
Posts: 379
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???
|
|
|
07/09/2012, 00:25
|
#2
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
|
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
|
|
|
07/09/2012, 13:17
|
#3
|
elite*gold: 0
Join Date: Apr 2012
Posts: 379
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.
|
|
|
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 +2. The time now is 23:48.
|
|