|
You last visited: Today at 22:14
Advertisement
Metin2 SendInput (python)
Discussion on Metin2 SendInput (python) within the General Coding forum part of the Coders Den category.
04/04/2025, 00:42
|
#1
|
elite*gold: 0
Join Date: Apr 2010
Posts: 44
Received Thanks: 4
|
Metin2 SendInput (python)
i wish to make a clickbot with python to sendinput mouse clicks . i dont know how to get it to work. tried with postmessage and got an erroe "its blocked" something like that. am i doing right but getting ac block ?
EDİT:
008C0846 S WM_SETCURSOR hwnd:008C0846 hittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE
008C0846 P WM_MOUSEMOVE fwKeys:0000 xPos:1187 yPos:523
008C0846 S WM_MOUSEACTIVATE hwndTopLevel:008C0846 hittest:HTCLIENT wMsg:WM_LBUTTONDOWN
008C0846 S WM_SETCURSOR hwnd:008C0846 hittest:HTCLIENT wMouseMsg:WM_LBUTTONDOWN
008C0846 P WM_LBUTTONDOWN fwKeys:MK_LBUTTON xPos:1187 yPos:523
008C0846 P WM_MOUSEMOVE fwKeys:MK_LBUTTON xPos:1187 yPos:523
008C0846 P WM_LBUTTONUP fwKeys:00 xPos:1187 yPos:523
008C0846 S WM_SETCURSOR hwnd:008C0846 hittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE
i found this with spy++
MOUSEEVENTF_LEFTDOWN = 0x0002
MOUSEEVENTF_LEFTUP = 0x0004
WM_LBUTTONDOWN = 0x0201
WM_LBUTTONUP = 0x0202
WM_MOUSEMOVE = 0x0200
# Koordinatları normalize etmek için kullanılan fonksiyon
def normalize_coords(x, y):
screen_width = ctypes.windll.user32.GetSystemMetrics(0)
screen_height = ctypes.windll.user32.GetSystemMetrics(1)
return int(x * 65535 / screen_width), int(y * 65535 / screen_height)
# Fare tıklama işlemi (mouse hareket ettirmeden)
def send_click(hwnd, x, y):
# Sanal fare hareketi simülasyonu
# WM_MOUSEMOVE (fareyi hareket ettirme)
# Fare hareketi simülasyonu için fare pozisyonunu ayarla
ctypes.windll.user32.PostMessageW(hwnd, WM_MOUSEMOVE, 0, (y << 16) | x)
#time.sleep(0.05) # Hareket simülasyonu için küçük bir gecikme
# WM_LBUTTONDOWN (fareyi basma)
ctypes.windll.user32.PostMessageW(hwnd, WM_LBUTTONDOWN, 0, (y << 16) | x)
ctypes.windll.user32.PostMessageW(hwnd, WM_MOUSEMOVE, 0, (y << 16) | x)
#time.sleep(0.05) # Hareket simülasyonu için küçük bir gecikme
# WM_LBUTTONUP (fareyi bırakma)
ctypes.windll.user32.PostMessageW(hwnd, WM_LBUTTONUP, 0, (y << 16) | x)
tried this code clicking but not moving (without moving cursor)
|
|
|
 |
Similar Threads
|
Sending into chat without SendInput / ...
11/09/2016 - Aion - 2 Replies
Making a little aion tool atm, and got most of the stuff i need. One of the things left is sending into chat, without emulating input.
I hoped to be able to write stuff just by writing to a specific address, but that doesn't seem to be the case.
What i found:
* Chat length (symbol count) (changing will cut the input off)
* Chat changed (an int that ++ every time you send something) (changing didnt do shit)
* Is chat empty (1 = empty, 0 = not) (changing doesnt do shit)
* Redirect input...
|
SendInput to kal won't work
09/27/2015 - Kal Online - 1 Replies
Hey guys, I'm trying to figure out, how to send input to kalonline.
When I run this script, it works great if I open notepad. It will spam 33333...
But when I try it on kal, it just won't send any input.
I tried 0x04, but I figured it's either right click or middle click on mouse. Can't find codes for numbers to work in kal.
Any ideas?
#include <stdio.h>
#include <stdlib.h>
|
Keyboard emulation mit SendInput [Metin2] [RESOLVED]
02/02/2012 - C/C++ - 12 Replies
Hallo liebe Leute,
ich sitz zur zeit an einem kleinen Projekt in C++, uns zwar versuche ich, für das MMORPG Metin2 einen nicht den Client exploitenden, den Spielregeln folgenden, AI-gesteuerten Bot zu programmieren. Man mag sich fragen wieso einen Bot, wenn man dann den regeln folgen will? Nun, im grunde geht's eher um die Programmiererfahrung im Bereich AI, als um den Bot an sich ;)
Nun, nachdem die ersten Hindernisse aus dem weg waren (HackShield, OCR, ...) scheitert's nun an einer...
|
SendInput C++/C#
06/22/2010 - C/C++ - 5 Replies
hi ihc hab mal ne frage, nämlich wie kann ich in dem spiel Eingaben simulieren?
so wie ich es bisher immer versucht habe:
public void SendKey(int key)
{
SendMessage(hwnd, WM_KEYDOWN, key, 0);
SendMessage(hwnd, WM_KEYUP, key, 1);
}
funktioniert es irgendwie nicht :(, kann mir jmd sagen was ich falsch mache?
|
SendInput C#
12/07/2006 - .NET Languages - 4 Replies
Ich habe folgende Klasse geschrieben:
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
|
All times are GMT +1. The time now is 22:14.
|
|