Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 10:12

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

Advertisement



[Frage]AimPoint

Discussion on [Frage]AimPoint within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 108
Received Thanks: 41
[Frage]AimPoint

Ich habe eine frage zu einem AimPoint...
Wie bekommt man es hin das die bestimmten Pixel ihre Farbe ändern?


Welchen Befehl braucht man dafür?

Ihr wisst ya hoffentlich was ein AimPoint ist wenn nicht:
checker0899 is offline  
Old 12/12/2010, 20:15   #2
 
PenGuin :O's Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
D3D Hook. Damit gehts auf jeden Fall.
Bräuchtest C++...

Wobei vllt. ist das mit Kanonen auf Spatzen geschossen
Wahlweise einfach eine kleine GUI erstellen und als Child angeben. Also, dass das FPS Parent vom GUI ist.
PenGuin :O is offline  
Thanks
1 User
Old 12/12/2010, 20:22   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 542
Received Thanks: 112
Benutz ma google, hier:

ist von BugFix
von autoit.de
PHP Code:
[PHP]#include <WindowsConstants.au3>
#include <WinAPI.au3>

Global $hDC$hPen$obj_orig
Global $active$lastActive 0
HotKeySet
("!e"'_ende')

_SetCrossToActive()

While 
1
    Sleep
(100)
WEnd

Func _SetCrossToActive
()
    
$active WinGetHandle('[ACTIVE]')
    If 
$lastActive $active Then Return
    
$lastActive $active
    $hDC 
_WinAPI_GetWindowDC($active)
    
ShowCross($hDC, @DesktopWidth 2, @DesktopHeight 22020xFF)
EndFunc

Func ShowCross
($hDC$start_x$start_y$length$width$color)
    
$hPen _WinAPI_CreatePen($PS_SOLID$width$color)
    
$obj_orig _WinAPI_SelectObject($hDC$hPen)
    
_WinAPI_DrawLine($hDC$start_x $length$start_y$start_x 5$start_y) ; horizontal left
    _WinAPI_DrawLine
($hDC$start_x $length$start_y$start_x 5$start_y) ; horizontal right
    _WinAPI_DrawLine
($hDC$start_x$start_y $length$start_x$start_y 5) ; vertical up
    
;    _WinAPI_DrawLine($hDC$start_x$start_y $length$start_x$start_y 5) ; vertical down
    _WinAPI_MoveTo
($hDC$start_x$start_y $length)
    
_WinAPI_LineTo($hDC$start_x$start_y 5)
EndFunc   ;==>ShowCross

Func _ende
()

    
_WinAPI_RedrawWindow(_WinAPI_GetDesktopWindow(), 00BitOR($RDW_INVALIDATE,$RDW_ALLCHILDREN))
    
_WinAPI_SelectObject($hDC$obj_orig)
    
_WinAPI_DeleteObject($hPen)
    
_WinAPI_ReleaseDC(0$hDC)
    Exit
EndFunc 
[/PHP]
maxi39 is offline  
Thanks
1 User
Old 12/12/2010, 21:21   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 108
Received Thanks: 41
Quote:
Originally Posted by maxi39 View Post
Benutz ma google, hier:

ist von BugFix
von autoit.de
PHP Code:
[PHP]#include <WindowsConstants.au3>
#include <WinAPI.au3>

Global $hDC$hPen$obj_orig
Global $active$lastActive 0
HotKeySet
("!e"'_ende')

_SetCrossToActive()

While 
1
    Sleep
(100)
WEnd

Func _SetCrossToActive
()
    
$active WinGetHandle('[ACTIVE]')
    If 
$lastActive $active Then Return
    
$lastActive $active
    $hDC 
_WinAPI_GetWindowDC($active)
    
ShowCross($hDC, @DesktopWidth 2, @DesktopHeight 22020xFF)
EndFunc

Func ShowCross
($hDC$start_x$start_y$length$width$color)
    
$hPen _WinAPI_CreatePen($PS_SOLID$width$color)
    
$obj_orig _WinAPI_SelectObject($hDC$hPen)
    
_WinAPI_DrawLine($hDC$start_x $length$start_y$start_x 5$start_y) ; horizontal left
    _WinAPI_DrawLine
($hDC$start_x $length$start_y$start_x 5$start_y) ; horizontal right
    _WinAPI_DrawLine
($hDC$start_x$start_y $length$start_x$start_y 5) ; vertical up
    
;    _WinAPI_DrawLine($hDC$start_x$start_y $length$start_x$start_y 5) ; vertical down
    _WinAPI_MoveTo
($hDC$start_x$start_y $length)
    
_WinAPI_LineTo($hDC$start_x$start_y 5)
EndFunc   ;==>ShowCross

Func _ende
()

    
_WinAPI_RedrawWindow(_WinAPI_GetDesktopWindow(), 00BitOR($RDW_INVALIDATE,$RDW_ALLCHILDREN))
    
_WinAPI_SelectObject($hDC$obj_orig)
    
_WinAPI_DeleteObject($hPen)
    
_WinAPI_ReleaseDC(0$hDC)
    Exit
EndFunc 
[/PHP]
also des geht ned wirklich wenn ich des starte dann bildet er des kreuz nur da wo ich es starte und es geht mit dem Fenster mit..
checker0899 is offline  
Old 12/12/2010, 21:26   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 542
Received Thanks: 112
du hast den code nicht ganz verstanden oda?
da steht:
$active = WinGetHandle('[ACTIVE]')
d.h nimmt das jetzige aktive fenster und macht dort ein kreuz
maxi39 is offline  
Old 12/12/2010, 21:31   #6
 
elite*gold: 0
Join Date: May 2010
Posts: 108
Received Thanks: 41
Quote:
Originally Posted by maxi39 View Post
du hast den code nicht ganz verstanden oda?
da steht:
$active = WinGetHandle('[ACTIVE]')
d.h nimmt das jetzige aktive fenster und macht dort ein kreuz
sorry hab ich nicht gesehen


€dit: okay jz geht es gar nicht ich geb den fensterprozessnamen ein und es passiert gar nix..
checker0899 is offline  
Old 12/13/2010, 15:58   #7
 
PenGuin :O's Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
Du musst den Fenstertitel dort eingeben.
PenGuin :O is offline  
Thanks
1 User
Old 12/19/2010, 12:09   #8
 
elite*gold: 9
Join Date: Dec 2009
Posts: 1,071
Received Thanks: 819
Machs doch einfach mit GDI+... Ist denke ich einfacher als mit der WinApi
.Infinite is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Aimpoint Tool
07/08/2010 - Combat Arms - 8 Replies
Hi leuts :) Kennt vllt einer nen guten Aimpoint Tool? Thx im Voraus :D
Frage zum AimPoint
03/25/2010 - WarRock - 1 Replies
Hey leute, hatte die Frage wie Ich mir ein AimPoint tool selber coden kann. Wäre nett wenn mir jemand helfen würde. Danke im Voraus Mfg xIsOo
working aimpoint
12/21/2008 - Soldier Front - 25 Replies
save in soldier front folder then extract it there and run it. cant be any familair i guess. here`s the freaking virus scan Antivir: Nothing found ArcaVir: Nothing found Avast: Nothing found AVG: Nothing found BitDefender: Nothing found F-Prot: Nothing found Norman: Nothing found
For those of you that need an Aimpoint.
12/11/2008 - Soldier Front - 3 Replies
So basically an aimpoint is just a little mini in side your crosshair to help improve your Accuracy. But i've noticed it makes no difference its not really a hack its just a thing inside your crosshair. So my solutioin is Stick a piece of tape on to the middle of your screen and while playing take a marker and draw a dot in between your crosshair. And there ya have it! And the great thing is that it can never EVER get patched. -Hope this helped...somehow



All times are GMT +1. The time now is 10:12.


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.