|
You last visited: Today at 10:20
Advertisement
AutoIt: CSS Autopistol coden
Discussion on AutoIt: CSS Autopistol coden within the AutoIt forum part of the Coders Den category.
05/04/2012, 16:49
|
#1
|
elite*gold: 0
Join Date: Aug 2011
Posts: 122
Received Thanks: 8
|
AutoIt: CSS Autopistol coden
Hey,
ich wollte ein Autopistol coden, hänge aber gerade an If _IsPressed.
Ich habe keine Ahnung, wie ich es hinbringe, wenn LEFT gefrückt wird eine While 1 aktiviert wird.
|
|
|
05/05/2012, 13:55
|
#2
|
elite*gold: 0
Join Date: May 2012
Posts: 56
Received Thanks: 12
|
Du willst das z.b. wenn du links drückst der die ganze munition so schnell wie möglich raushaut
|
|
|
05/05/2012, 18:34
|
#3
|
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
|
Quote:
Originally Posted by xCrazyN00B
Hey,
ich wollte ein Autopistol coden, hänge aber gerade an If _IsPressed.
|
Code:
If calling this function repeatedly, you should open 'user32.dll' and pass the handle.
Make sure to close the handle at end of script using DllClose.
MfG
|
|
|
05/06/2012, 08:39
|
#4
|
elite*gold: 0
Join Date: Aug 2011
Posts: 122
Received Thanks: 8
|
Quote:
#NoTrayIcon
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $DLL = DllOpen("user32.dll")
HotKeySet ("{F5}", start )
HotKeySet ("{F6}", pause )
HotKeySet ("{F7}", ende )
#Region ### START Koda GUI section ### Form=
$form = GUICreate("Autopistol by crazylumi", 258, 48, 192, 124)
$on = GUICtrlCreateButton("F5 = On", 8, 8, 75, 25, 0)
$pause = GUICtrlCreateButton("F6 = Pause", 88, 8, 75, 25, 0)
$off = GUICtrlCreateButton("F7 = Off", 168, 8, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $on
start ()
Case $pause
pause ()
Case $off
ende ()
EndSwitch
WEnd
Func start ()
While 1
If _IsPressed("01", $hDLL) Then
Send ("{left}")
Sleep (10)
EndIf
WEnd
EndFunc
Func pause()
While True
Sleep(100)
If _isPressed("75") Then return ;F6
WEnd
EndFunc
Func ende ()
Exit
EndFunc
DllClose($DLL)
|
Nun zeigt es an: Error parsing function call,
|
|
|
05/06/2012, 11:37
|
#5
|
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
|
So habe hier mal die Fehler verbessert, du kannst es jetzt starten. In de Kommentaren habe ich dir dazu geschrieben, was falsch war.
Code:
;Corrected by Achat on www.elitepvpers.com
#NoTrayIcon
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Misc.au3> ;Du hast das Include für _IsPressed vergessen - also existierte die Funktion gar nicht.
Global $hDLL = DllOpen("user32.dll") ;Global damit diese Variable überall gültig ist -> du rufst sie ja in einer Funktion auf ; Außerdem hast du diese Varibale $DLL genannt, in den Funcs heist sie aber $hDll !
HotKeySet("{F5}", "start") ; Hallo? Strings oder Zeichen oder Zeichenketten immer in "Anführungszeichen"
HotKeySet("{F6}", "pause")
HotKeySet("{F7}", "ende")
#region ### START Koda GUI section ### Form=
$form = GUICreate("Autopistol by crazylumi", 258, 48, 192, 124)
$on = GUICtrlCreateButton("F5 = On", 8, 8, 75, 25, 0)
$pause = GUICtrlCreateButton("F6 = Pause", 88, 8, 75, 25, 0)
$off = GUICtrlCreateButton("F7 = Off", 168, 8, 75, 25, 0)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $on
start()
Case $pause
pause()
Case $off
ende()
EndSwitch
WEnd
Func start()
While 1
If _IsPressed("01", $hDLL) Then
Send("{left}")
Sleep(10)
EndIf
WEnd
EndFunc ;==>start
Func pause()
While True
Sleep(100)
If _IsPressed("75") Then Return ;F6
WEnd
EndFunc ;==>pause
Func ende()
Exit
EndFunc ;==>ende
DllClose($hDLL)
MfG
|
|
|
06/14/2014, 22:49
|
#6
|
elite*gold: 0
Join Date: Jun 2013
Posts: 12
Received Thanks: 0
|
Und wie mach ich das jetzt zu einem script ? der auch funktioniert
|
|
|
 |
Similar Threads
|
Speedhack Coden? Habe die AutoIt Kenntnisse!
06/30/2011 - Nostale - 15 Replies
Hallo erstmal,
ich wollte fragen ob mir nicht jemand ein TuT geben könnte wie man einen Speedhack für den P-Server Codet oder wenigstens mit was? Und dann wie lern ich das wenn ich kein TuT hab! pls melden danke im vorraus!
|
[Tut]Bots zum Power~lvln coden mit autoIT
05/31/2011 - WarRock Guides, Tutorials & Modifications - 13 Replies
Hallo ich möchte euch zeigen wie ihr mit autoIT 3 bots codet z.B. zum Warrock Power lvln (sicher gibts bei den Hacks auch bot funktionen aber ist doch schön wenn man das selber machen kann und selber entscheiden kann wieviel Zeit zwischen Tastendrücken vergeht :D) ich weiß es gibt schon ein Guide darüber aber meines ist wesentlich einfacher vom Code her und umfasst auch einen Guide zum power lvln :D das Tut stammt 100% von MIR!
Was habe ich heute mit euch vor ? :p
-Bot Coden
...
|
Ein Paar Functionen die ihr Vielleicht zum AutoIt Bot Coden braucht!
10/09/2007 - GW Exploits, Hacks, Bots, Tools & Macros - 3 Replies
Also, ich hab hier mal ein paar Nützlich Funktionen geschreiben. Ja klar gehts bei ein paar Sachen noch komplizierter aba dafür genauer, aber ich den mir mal, ihr könnets brauchen!
Func GWRunning()
WinActivate("Guild Wars","")
Sleep(7000)
EndFunc
Func LoadCity()
While 1
|
All times are GMT +1. The time now is 10:20.
|
|