|
You last visited: Today at 17:35
Advertisement
Frage zu Skript!
Discussion on Frage zu Skript! within the AutoIt forum part of the Coders Den category.
05/20/2011, 19:07
|
#1
|
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
|
|
|
05/21/2011, 17:12
|
#2
|
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
|
|
|
05/21/2011, 19:20
|
#3
|
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.
|
|
|
05/21/2011, 19:24
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
Quote:
Originally Posted by WennsHilft
@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!
|
|
|
05/21/2011, 19:53
|
#5
|
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)
|
|
|
05/21/2011, 20:27
|
#6
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
Quote:
Originally Posted by WennsHilft
@omer36
Es gibt auch leute die andere Games zocken.
(und das ganz ohne maus)
|
und dafür braucht man nen fadenkreuz?
|
|
|
05/21/2011, 21:09
|
#7
|
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 ???
|
|
|
05/21/2011, 23:00
|
#8
|
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)
|
|
|
05/22/2011, 10:58
|
#9
|
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 :
Code:
01 Left mouse button Linke Maustaste
02 Right mouse button Rechte Maustaste
04 Middle mouse button (three-button mouse) Mittlere Maustaste
05 Windows 2000/XP: X1 mouse button X1 Maus-Taste
06 Windows 2000/XP: X2 mouse button X2 Maus-Taste
08 BACKSPACE key Löschtaste rückwärts
09 TAB key Tabulator-Taste
0C CLEAR key Entf-Taste
0D ENTER key Enter/Return-Taste
10 SHIFT key Shift/Umschalt/"Großschreib"-Taste
11 CTRL key Ctrl/Strg-Taste
12 ALT key Alt-Taste
13 PAUSE key Pause-Taste
14 CAPS LOCK key Feststelltaste
1B ESC key Esc-Taste
20 SPACEBAR Leertaste
21 PAGE UP key Bild-auf Taste
22 PAGE DOWN key Bild-ab Taste
23 END key Ende-Taste
24 HOME key Pos 1-Taste
25 LEFT ARROW key Pfeiltaste nach links
26 UP ARROW key Pfeiltaste nach oben
27 RIGHT ARROW key Pfeiltaste nach rechts
28 DOWN ARROW key Pfeiltaste nach unten
29 SELECT key Auswahltaste
2A PRINT key Druck
2B EXECUTE key Ausführentaste
2C PRINT SCREEN key Drucktaste
2D INS key Einfg-Taste
2E DEL key Entf-Taste
30 0 key 0
31 1 key 1
32 2 key 2
33 3 key 3
34 4 key 4
35 5 key 5
36 6 key 6
37 7 key 7
38 8 key 8
39 9 key 9
41 A key A
42 B key B
43 C key C
44 D key D
45 E key E
46 F key F
47 G key G
48 H key H
49 I key I
4A J key J
4B K key K
4C L key L
4D M key M
4E N key N
4F O key O
50 P key P
51 Q key Q
52 R key R
53 S key S
54 T key T
55 U key U
56 V key V
57 W key W
58 X key X
59 Y key Y
5A Z key Z
5B Left Windows key Linke Windows-Taste
5C Right Windows key Rechte Windows-Taste
60 Numeric keypad 0 key rechter Nummerblock Taste 0
61 Numeric keypad 1 key rechter Nummerblock Taste 1
62 Numeric keypad 2 key rechter Nummerblock Taste 2
63 Numeric keypad 3 key rechter Nummerblock Taste 3
64 Numeric keypad 4 key rechter Nummerblock Taste 4
65 Numeric keypad 5 key rechter Nummerblock Taste 5
66 Numeric keypad 6 key rechter Nummerblock Taste 6
67 Numeric keypad 7 key rechter Nummerblock Taste 7
68 Numeric keypad 8 key rechter Nummerblock Taste 8
69 Numeric keypad 9 key rechter Nummerblock Taste 9
6A Multiply key rechter Nummerblock Malzeichen
6B Add key rechter Nummerblock Pluszeichen
6C Separator key Eingabetaste
6D Subtract key rechter Nummerblock Minuszeichen
6E Decimal key rechter Nummerblock Kommazeichen
6F Divide key rechter Nummerblock Geteiltzeichen
70 F1 key F1
71 F2 key F2
72 F3 key F3
73 F4 key F4
74 F5 key F5
75 F6 key F6
76 F7 key F7
77 F8 key F8
78 F9 key F9
79 F10 key F10
7A F11 key F11
7B F12 key F12
7C-7F F13 key - F16 key F13 - F16
80H-87H F17 key - F24 key F17 - F24
90 NUM LOCK key Num-Taste
91 SCROLL LOCK key Rollen-Taste
A0 Left SHIFT key linke Shift/Umschalt/Feststelltaste
A1 Right SHIFT key rechte Shift/Umschalt/Feststelltaste
A2 Left CONTROL key linke Ctrl/Strg-Taste
A3 Right CONTROL key rechte Ctrl/Strg-Taste
A4 Left MENU key (linke) Alt-Taste
A5 Right MENU key (rechte) Alt Gr-Taste
Quote:
Originally Posted by WennsHilft
@derpo
Den Hotkey F7 hättest du auch ganz streichen können.
|
Der war schon am Anfang da
|
|
|
05/23/2011, 13:43
|
#10
|
elite*gold: 0
Join Date: Jan 2011
Posts: 341
Received Thanks: 67
|
ok sorry ^^
|
|
|
 |
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.
|
|