Page 1 of 1

[HELP] Sending arrow keys with MapleSEA minimized

Posted: Mon Aug 30, 2010 12:42 pm
by madeforum
Hello everyone currently im sending arrow keys to MapleSEA using sendinput, which requires MapleSEA to be the foreground window. Is there another method for sending input with MapleSEA minimized? or a method to trick MapleSEA into thinking its the foreground window?

Re: [HELP] Sending arrow keys with MapleSEA minimized

Posted: Mon Aug 30, 2010 8:13 pm
by PIEzLOVERS
madeforum wrote:Hello everyone currently im sending arrow keys to MapleSEA using sendinput, which requires MapleSEA to be the foreground window. Is there another method for sending input with MapleSEA minimized? or a method to trick MapleSEA into thinking its the foreground window?
NRZBot is capable of doing that , download the source and explore it :)

Re: [HELP] Sending arrow keys with MapleSEA minimized

Posted: Tue Sep 07, 2010 4:20 pm
by madeforum
I explored it but i realised its using sendinput too. Can you tell me what have i missed? The program im making is an external one like Nullz Pyramid Bot.


E.g of sendinput from NRZBot 2.2 source

Code: Select all

/*MoveLeft*/
void MoveLeft()
{
	while(!MoveLeftExit)
	{
	KEYBDINPUT  kb={0};
	INPUT    Input={0};	
	kb.wVk  = 0x25;  
	Input.type  = INPUT_KEYBOARD;
	Input.ki  = kb;
	::SendInput(1,&Input,sizeof(Input));//keydown
	Sleep (MoveDelay);
	::ZeroMemory(&kb,sizeof(KEYBDINPUT));
	::ZeroMemory(&Input,sizeof(INPUT));
	kb.dwFlags  =  KEYEVENTF_KEYUP;
	kb.wVk    =  0x25;
	Input.type  =  INPUT_KEYBOARD;
	Input.ki  =  kb;
	::SendInput(1,&Input,sizeof(Input));//keyup
	Sleep(MovementDelay*1000);
	}
}