Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:36

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

Advertisement



Ghost Mouse

Discussion on Ghost Mouse within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
SCORNI's Avatar
 
elite*gold: 26
Join Date: Jun 2009
Posts: 972
Received Thanks: 228
Ghost Mouse

Ich hab mal ein 20 linien skript das die mouseclicks aufnimmt und in einer au3 datei abspeichert. Es gibt hier ein thema wo sowas benötigt wird und hier die Antwort. Aber das ist eine 5 minuten arbeit und noch sehr ausbaufähig.
Code:
#include <Misc.au3>
#include <String.au3>
$dll = DllOpen("user32.dll")

$asd=""
filewrite (@DesktopDir&"\mouse.au3","")
$file = FileOpen(@DesktopDir&"\mouse.au3", 1)
If $file = -1 Then
    MsgBox(0, "Fehler", "Die Datei konnte nicht geöffnet werden.")
    Exit
EndIf
$time=timerinit()
Do
	If _IsPressed("01", $dll) Then
	$a=mousegetpos()
	
	$b=filewrite ($file,fileread ($file)&"mouseclick ("&_HexToString ("22")&"left"&_HexToString ("22")&","&$a[0]&","&$a[1]&")"&@CRLF)
	
	filewrite ($file,"sleep ("&TimerDiff ($time)&")"&@CRLF)
	$time=timerinit()
	endif
	if _IsPressed("79", $dll) Then
	$asd="ans"
	EndIf
	sleep (100)
	until $asd="ans"
sry wegen Zeilenumbruch im skript, die Zeile war einfach zu Lang
MfG SCORNI
edit: doch kein zeilenumbruch
SCORNI is offline  
Old 10/16/2009, 19:09   #2


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Ist nicht getestet, ist aber so irgendwie übersichtlicher ^^
Code:
#include <Misc.au3>

HotKeySet("{End}", "_Break")

$dll = DllOpen('user32.dll')
If $dll = -1 Then SetError(-1)

Global Const $fName = String("Mouse.au3")
Global $init = 0

Func _Break()
	DllClose($dll)
	Exit
EndFunc   ;==>_Break

While True
	If _IsPressed('01', $dll) Then
		While _IsPressed('01', $dll)
			Sleep(100)
		WEnd
		$xy = MouseGetPos()

		;mouseclick
		FileWriteLine($fName, _
				StringFormat("MouseClick('left',%i,%i)", $xy[0], $xy[1]))

		;time
		If $init <> 0 Then
			FileWriteLine($fName, _
					StringFormat("Sleep(%d)", _
					TimerDiff($init)))
		EndIf
		$init = TimerInit()
	EndIf
WEnd
buFFy! is offline  
Thanks
1 User
Old 10/16/2009, 21:26   #3
 
SCORNI's Avatar
 
elite*gold: 26
Join Date: Jun 2009
Posts: 972
Received Thanks: 228
wieso einfach wenns auch kompliziert geht xD
meins hat 20 zeilen deins ca 40 aber thx
SCORNI is offline  
Old 10/16/2009, 21:31   #4


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Mein's ist aber übersichtlicher. Ich könnte das auch in 15 Zeilen quetschen wenn ich will ^^

^this
Code:
#include <Misc.au3>
HotKeySet("{End}", "_Break")
$dll = DllOpen('user32.dll')
If $dll = -1 Then SetError(-1)
Global Const $fName = String("Mouse.au3")
Global $init = 0
Func _Break()
	DllClose($dll)
	Exit
EndFunc   ;==>_Break
While True
	If _IsPressed('01', $dll) Then
		While _IsPressed('01', $dll)
			Sleep(100)
		WEnd
		$xy = MouseGetPos()
		FileWriteLine($fName, StringFormat("MouseClick('left',%i,%i)", $xy[0], $xy[1]))
		If $init <> 0 Then FileWriteLine($fName, StringFormat("Sleep(%d)", TimerDiff($init)))
		$init = TimerInit()
	EndIf
WEnd
21 Zeilen^^
buFFy! is offline  
Old 10/17/2009, 19:27   #5
 
SCORNI's Avatar
 
elite*gold: 26
Join Date: Jun 2009
Posts: 972
Received Thanks: 228
SCORNI is offline  
Reply


Similar Threads Similar Threads
Ghost Mouse
03/23/2011 - CO2 Bots & Macros - 27 Replies
Its an old click recorder i started useing on other projects many years ago. But still works like a charm to this day.. Only thing i use it for now days in moving a miner 1 step to the left every 45 min.. But im sure you will all find a use for it. GhostMousev2.0
Ghost Mouse
09/21/2009 - Metin2 Private Server - 2 Replies
Hi an alle,ich habe ein problem mit Ghost Mouse und Vista 64bit.Ich habe weder hier noch in Google was gefunden was mir helfen könnte.Es kommt immer eine Fehlermeldung von wegen:Diese Datei ist nicht mit der ausgeführten Windows Version kompatibäl (ist noch mehr Text da aber keine Lust alles zu schreiben). Gibt es denn keine Version von Ghost Mouse für Vista 64bit,weil auch über den kompatibilitäts Modus geht es nicht. Ich hoffe einer kann mir weiter helfen,denn ich brauche das...
Ghost-Mouse + Rootkit?
01/07/2009 - Kal Online - 2 Replies
Hello Epvpers, I still was bored like everyday and came on a Idea. Would it be able to Record a mouse moving with Ghost-Mouse and replayit how often you´ll like. Ghost-Mose is still a hacking tool so you have to use the rootkit , i tryed and it works. So my question is : Is it able to to Record the klicks infront of a Mops Respawn and replay it? So you still have a simple BOT =) i hope for fast answers
Ghost mouse
01/07/2007 - Conquer Online 2 - 2 Replies
ok everyone i was using ghost mouse in the lab and i recorded and everything then pressd play. but for some reason everytime i playd it, it woodnt fly. does anyone know Y??text2schild.php?smilienummer=1&text=ima newb ^^' border='0' alt='ima newb ^^' />
ghost mouse skript
03/03/2006 - CO2 Bots & Macros - 1 Replies
ok this is just a skript gor ghost mouse it works great for lvling guards and your soumon mob to use you will need to have ghost mouse and also need to hot key sit and jame the key down for it to keep sitting back down after soumoning i didnt not make anything to do with this program i just recorded the script with it timed right make sure you got full stamina before starting it though btw if you dont know where to get ghost mouse just google it btw feel free to scan it all you want...



All times are GMT +1. The time now is 22:37.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.