Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 03:37

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

Advertisement



python mouse clicks im Hintergrund simulieren?

Discussion on python mouse clicks im Hintergrund simulieren? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1


 
Ky0n''s Avatar
 
elite*gold: 12312
The Black Market: 280/0/0
Join Date: Dec 2010
Posts: 10,834
Received Thanks: 639
python mouse clicks im Hintergrund simulieren?

Hey,
ich hab mir ein kleines Skript geschrieben, dass mir verschiedene Mausklicks simuliert. Soweit so gut, das Problem ist allerdings das ich dieses Skript mehrmals laufen lassen möchte (nach Möglichkeit nicht in X VM's).

Die Fenster sind theoretisch alle offen, und auch sichtbar. Als Zusatz soll jetzt meine Maus nicht mehr geblockt werden währenddessen die generierten Maus-Positionen durch geklickt werden. Das Grundgerüst funktioniert genau so wie es soll, es wäre nur wichtig wenn die click-funktion im Hintergrund arbeiten könnte.

Hier ist mein aktueller Stand in Python:

Code:
hWnd = win32gui.GetForegroundWindow()
hWnd1= win32gui.FindWindowEx(hWnd, None, None, None)
win32gui.SendMessage(hWnd1, win32con.WM_LBUTTONDOWN, win32con.MK_LBUTTON, lParam)
win32gui.SendMessage(hWnd1, win32con.WM_LBUTTONUP, None, lParam)
Leider ist die hWnd1 hier immer 0, und beim Senden an die hWnd passiert nichts. Kann jemand helfen ?

edit: Ich habe es noch mit anderem Code versucht, allerdings bekomme ich da bei der Aktion ein return value 0 (obere Aktion war händig von mir):
edit edit: ****, musste das Sendinput to PostInput ändern, jetzt sieht es gleich aus und es gibt kein return 0, funktionieren tut es allerdings immer noch nicht, nur jetzt eben ohne eine Fehlermeldung...
Ky0n' is offline  
Reply


Similar Threads Similar Threads
[SCRIPT] P.E.T. Auto-Kamikaze (working in background, no mouse clicks)
01/16/2012 - DarkOrbit - 88 Replies
With the new version client of darkorbit 5.x, this tool is not working anymore, if an update will be I will post here Short info: This script will auto-repair, auto-start, auto-select kamikaze. Is all working in background so it wont use your mouse as coordinates, so you can battle easy in PvP or use on cubikons. Also you can have multiple modules and still working like a charm. Download and use: PET Kamikaze 1.3 Must do to work:
[How²] Mehr Youtube Clicks/More Youtube Clicks.
07/16/2011 - Tutorials - 3 Replies
Vorwort : Dies ist mein aller erstes TuTorial , dies bestimmt nicht sehr perfekt sein wird! Rechtschreibfehler könnt ihr gerne behalten , ihr haftet nicht ich hafte nicht xD. Was machen wir? Heute möchte ich mit verschiedenen möglichkeiten zeigen wie ihr mehr Clicks auf Youtube bekommt. Dies wird problemlos gehen und man braucht nichts downloaden dafür. Natürlich ist das auch eine sache wo man viel geduldt haben muss und wo auch nicht alles klappt. Viel spaß. Angefangen wird so :
Mouse clicks in background
08/01/2009 - General Gaming Discussion - 6 Replies
Hi, i'm tryin to perfom mouse clicks in rom, while it's in background, but i have so far no success. I tried SendMessage/PostMessage and AutoIt, discovered that rom checks mouse clicks with getCursor but even when i NOPed the GetCursor func i had no success. Also, i didn't find any hooks that would manipulate SendMessage/PostMessage, so i'm very confused why my code isn't working. Please help me with some advice. Thanks for your aid. so long backtoreality



All times are GMT +1. The time now is 03:38.


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.