Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 15:43

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

Advertisement



SendInput to kal won't work

Discussion on SendInput to kal won't work within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
gw2selling's Avatar
 
elite*gold: 235
Join Date: Jul 2010
Posts: 266
Received Thanks: 19
SendInput to kal won't work

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?

Code:
#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */


#define WINVER 0x0500
#include <windows.h>
 
int main()
{
	int a=1;
    // This structure will be used to create the keyboard
    // input event.
    INPUT ip;
 
    // Pause for 5 seconds.
    
 do {
 Sleep(3000);
    // Set up a generic keyboard event.
    ip.type = INPUT_KEYBOARD;
    ip.ki.wScan = 0; // hardware scan code for key
    ip.ki.time = 0;
    ip.ki.dwExtraInfo = 0;
 
    // Press the "A" key
    ip.ki.wVk = 0x33; // virtual-key code for the "3" key
    ip.ki.dwFlags = 0; // 0 for key press
    SendInput(1, &ip, sizeof(INPUT));
 Sleep(500);
    // Release the "3" key
    ip.ki.dwFlags = KEYEVENTF_KEYUP; // KEYEVENTF_KEYUP for key release
    SendInput(1, &ip, sizeof(INPUT));
	a++;
	}
    while (a>0);
 	

    // Exit normally
    return 0;
}
gw2selling is offline  
Old 09/27/2015, 18:10   #2
 
elite*gold: 0
Join Date: Oct 2007
Posts: 856
Received Thanks: 35
make ur sendinput via dll injection, i guess it should work then
Slade100 is offline  
Reply


Similar Threads Similar Threads
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 15:44.


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