Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:35

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

Advertisement



Frage zu Skript!

Discussion on Frage zu Skript! within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
HAcker240's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 162
Received Thanks: 37
Frage zu Skript!

HI ich hab ein problem mit einem script und zwar habe ich mir ein programm was ein fadenkreuz anzeigt jedoch brauch ich hilfe weil ich nicht weiß wie ich die koordinaten des fadenkreuzes verstellen soll !!!!!

Code:
HotKeySet("{F5}", "_Run")
HotKeySet("{F7}", "_pause")
HotKeySet("{F6}", "_exit")
$color1=0x0000FF ;gelb = 0x00F0F0 ;  rot = 0x0000FF  ;  grün = 0x00FF00  ;  blau = 0xFF0000  ;  weiß = =0xFFFFFF ; lila=0xAC00A9
TrayTip("Hotkeys:", "F5 Start; F6 Ende ;)", 5)
_pause()

Func _Run()
    $handle = ControlGetHandle("paskjh^2g387zaisug2937856", "", 1);$handle = ControlGetHandle("Counter-Strike", "", 1)
    While 1
    SetPixel($handle, @DesktopWidth/2, @DesktopHeight/2, $color1)
    For $i=1 To 10
        SetPixel($handle, @DesktopWidth/2+$i, @DesktopHeight/2, $color1)
        SetPixel($handle, @DesktopWidth/2-$i, @DesktopHeight/2, $color1)
        Sleep(0.1)
        SetPixel($handle, @DesktopWidth/2, @DesktopHeight/2+$i, $color1)
        SetPixel($handle, @DesktopWidth/2, @DesktopHeight/2-$i, $color1)
    Next
    Sleep(0.1)
    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 _pause()
    While True
        Sleep(1000)
    WEnd
EndFunc ;==>_pause

Func _exit()
    Exit
EndFunc ;==>_exit
Wäre nett wenn mir eienr helfen könnte
HAcker240 is offline  
Old 05/21/2011, 17:12   #2
 
derpo's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 344
Received Thanks: 151
Ich habe das Ganze mal geändert (mit den Pfeiltasten kannst du das Zielkreuz steuern, falls das Fenster sich aktualisiert) :
PHP Code:
#include <Misc.au3>
HotKeySet("{F5}""_Run")
HotKeySet("{F7}""_pause")
HotKeySet("{F6}""_exit")
$color1=0x0000FF ;gelb 0x00F0F0 ;  rot 0x0000FF  ;  grün 0x00FF00  ;  blau 0xFF0000  ;  weiß = =0xFFFFFF lila=0xAC00A9
TrayTip
("Hotkeys:""F5 Start; F6 Ende ;)"5)
_pause()
Func _Run()
    
$x = @DesktopWidth 2
    $y 
= @DesktopHeight 2
    $handle 
ControlGetHandle("[ACTIVE]"""1);$handle ControlGetHandle("Counter-Strike"""1)
    While 
1
    
If _IsPressed("25"Then
        $x 
$x 1
    
EndIf
    If 
_IsPressed("26"Then
        $y 
$y 1
    
EndIf
    If 
_IsPressed("27"Then
        $x 
$x 1
    
EndIf
    If 
_IsPressed("28"Then
        $y 
$y 1
    
EndIf
    
SetPixel($handle$x$y$color1)
    For 
$i=1 To 10
        SetPixel
($handle$x+$i$y$color1)
        
SetPixel($handle$x-$i$y$color1)
        
SetPixel($handle$x$y+$i$color1)
        
SetPixel($handle$x$y-$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 _pause
()
    While 
True
        Sleep
(1000)
    
WEnd
EndFunc 
;==>_pause

Func _exit
()
    Exit
EndFunc ;==>_exit 
derpo is offline  
Old 05/21/2011, 19:20   #3
 
WennsHilft's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 341
Received Thanks: 67
@derpo

Ich finde es ja toll wenn das Script verbessert wird ^^
aber meinst du das mit den Pfeiltasten ist Sinnvoll?
(nache dreh ich mich nach links und das CrossHiar rennt weg ^^)

Den Hotkey F7 hättest du auch ganz streichen können.


EDIT: Größe und Farbe wären vlt. Cool.
WennsHilft is offline  
Old 05/21/2011, 19:24   #4
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Quote:
Originally Posted by WennsHilft View Post
@derpo

Ich finde es ja toll wenn das Script verbessert wird ^^
aber meinst du das mit den Pfeiltasten ist Sinnvoll?
(nache dreh ich mich nach links und das CrossHiar rennt weg ^^)

Den Hotkey F7 hättest du auch ganz streichen können.


EDIT: Größe und Farbe wären vlt. Cool.
W A S D ftw!
omer36 is offline  
Old 05/21/2011, 19:53   #5
 
WennsHilft's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 341
Received Thanks: 67
@omer36

Es gibt auch leute die andere Games zocken.
(und das ganz ohne maus)
WennsHilft is offline  
Old 05/21/2011, 20:27   #6
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Quote:
Originally Posted by WennsHilft View Post
@omer36

Es gibt auch leute die andere Games zocken.
(und das ganz ohne maus)
und dafür braucht man nen fadenkreuz?
omer36 is offline  
Old 05/21/2011, 21:09   #7
 
HAcker240's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 162
Received Thanks: 37
Quote:
Ich habe das Ganze mal geändert (mit den Pfeiltasten kannst du das Zielkreuz steuern, falls das Fenster sich aktualisiert) :
Danke ich werds gleich mal ausprobieren
Quote:
Größe und Farbe wären vlt. Cool.
->Farbe is doch dabei
PHP Code:
$color1=0x0000FF ;gelb 0x00F0F0 ;  rot 0x0000FF  ;  grün 0x00FF00  ;  blau 0xFF0000  ;  weiß = =0xFFFFFF lila=0xAC00A9 
Ohh habs gerade ausprobiert aber leider is das fadenkreuz wenn ich im spiel bin nich mehr im vordergrund -.- was muss man dafür verändern ???
HAcker240 is offline  
Old 05/21/2011, 23:00   #8
 
WennsHilft's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 341
Received Thanks: 67
@omar36: Es gibt genug Games ohne CH, zum streiten suchst du dir bitte jemand anderen.

@HAcker240: ja im Script stehen se drinn, aber als .exe wären se dann unerreichbar ^^
(HotKey= Color)
WennsHilft is offline  
Old 05/22/2011, 10:58   #9
 
derpo's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 344
Received Thanks: 151
PHP Code:
    $handle ControlGetHandle("[ACTIVE]"""1)
    
$timer TimerInit()
    While 
1
        
If TimerDiff($timer) >= 2000 Then
            $handle 
ControlGetHandle("[ACTIVE]"""1)
            
$timer TimerInit()
        EndIf 
Hier nochmal eine Keyliste für _IsPressed :

Quote:
Originally Posted by WennsHilft View Post
@derpo

Den Hotkey F7 hättest du auch ganz streichen können.
Der war schon am Anfang da
derpo is offline  
Old 05/23/2011, 13:43   #10
 
WennsHilft's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 341
Received Thanks: 67
ok sorry ^^
WennsHilft is offline  
Reply


Similar Threads Similar Threads
[FRage]skript
10/27/2010 - AutoIt - 5 Replies
was ist daran falsch? es geht nicht sollte es für mom machen xD #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 283, 314, 283, 171) $Pic1 = GUICtrlCreatePic(@ScriptDir &"\datein\bilder\uhr.jpg", -8, 0, 289, 313, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
frage zum Necro skript/reichweite
10/25/2010 - Diablo 2 - 5 Replies
Hi. Ich habe schon lange und viel gesucht aber nichts zu meinem Problem gefunden. Ich würde gerne mit meinem Boner Baal bot laufen lassen. Das klappt alles ganz gut... NUR wenn der bot eimal im thron ist. steht er auf MAXIMALER reichweite zum gegner und castet.Ob ne wand dazwischen ist ode rnicht ist ihm egal^^ er soll auf die gegner porten wie ein hammerdin
MT2GS CMS Skript frage
09/15/2010 - Metin2 Private Server - 4 Replies
Hi habe vor kurzem über den BUG im MTGS Script erfahren der auch auf meinem server genutzt wird. Und deswegen habe ich eine frage Also wenn jemand sich mit meinem acc auf der hp einloggt kann er irgendwie an meine sicherheits frage ran das er meine daten verändern kann? Oder kann er nur auf den acc zugreifen und daten zu verändern?ß Wenn man die daten änderbar sind könnte mir jemand ein tut machen oder so wie man die daten dann ändert?
HP Skript+Regi Skript+Geiles Design
09/04/2010 - Metin2 Private Server - 18 Replies
Hey,Leutz! Wollte ein neues HP Skript Publik machen das über Xampp läuft. Es hat ein cooles Design und es ist ein Regi-Skript beigefügt! Screen: http://s10.directupload.net/images/100425/temp/zr m5nykf.png Natürlich kann alles geändert werden,auch Hintergrund und Logo! Ihr benötigt Xampp! Xampp Download:http://www.chip.de/downloads/c1_downloads _hs_getfile_v1_22023282.html?t=1272220567&v=36 00& So wenn ihr das installiert habt,ladet ihr euch meine Website runter!Ist im Anhang.
[FRAGE]Psc auszahl pw änder Skript?
07/08/2010 - Metin2 Private Server - 11 Replies
wollte mal fragen ob jemand soetwas hatt oder mir ein link für geben könnte damit ich dass auf ne HP machen kann oder so änlich



All times are GMT +1. The time now is 17: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.