SendInput menu

Shout-Out

User Tag List

Thread: SendInput

Results 1 to 2 of 2
  1. #1
    syron1988's Avatar Member
    Reputation
    1
    Join Date
    Nov 2008
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SendInput

    Need help,

    I was wondering about, that the autoit function ControlSendPlus doesn't work for Warhammer, well... some games got a special thing in there to inactivate stuff like that, but usually it works with functions such as sendinput in c++ and Im wondering why this doesn't work...

    Code:
    #define _WIN32_WINNT 0x0501
    #include <iostream>
    #include <windows.h>
    #include <time.h>
    #include <stdlib.h>
    
    using namespace std;
    
    
    int main()
    {
    	INPUT InputData;
    	INPUT *key;
    	HWND windowHandle = FindWindow(NULL, "Warhammer: Age of Reckoning, Copyright 2001-2008 Electronic Arts, Inc.");
    	DWORD thisThread,otherThread;
    	int iEvents;
    	
    	thisThread=GetCurrentThreadId();
        otherThread=GetWindowThreadProcessId(windowHandle,NULL);
        
        AttachThreadInput(thisThread,otherThread,true);
    	
        // 0x4D
    	InputData.type = INPUT_KEYBOARD;
    	InputData.ki.wVk = 0x4D;
    	InputData.ki.wScan = 35;
    	InputData.ki.dwFlags = 0;
    	InputData.ki.time = time(NULL);
    	InputData.ki.dwExtraInfo = 0;
    
    	iEvents = SendInput(1, &InputData, sizeof(InputData));
    
    	return 0;
    }
    Is it my code or is it the .exe which disables this function... if it's the .exe, there should be a possibility to disable it with ollydbg, right?


    Btw. Is there any possibility to create a path bot without packets? Just noticed, that there are some autoit scripts, which run through waypoints...

    regards
    Last edited by syron1988; 11-14-2008 at 01:32 PM.

    SendInput
  2. #2
    onebit's Avatar Member
    Reputation
    1
    Join Date
    Nov 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try setting wVk = 0. You want to send a scan code, not a virtual key.

    Also you might try:

    Code:
    SetForegroundWindow(windowHandle);
    before making the call to SendInput().
    Last edited by onebit; 11-16-2008 at 09:29 PM.

Similar Threads

  1. SendInput Example In C#
    By onebit in forum MMO Exploits|Hacks
    Replies: 2
    Last Post: 11-17-2013, 02:33 PM
  2. [C#] SendInput Blocked?
    By PyGuy in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 01-28-2011, 11:51 PM
All times are GMT -5. The time now is 07:35 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search