Hello guys, as i learned some JAVA and C# now i decided to do some stuff for silkroad, just for fun..
My questions are, how i can attach my program to silkroad client, for example, im doing a simple autoclicker i want to attach it to client and allow him to press keys ONLY in silkroad window, that means i can minimize silkroad window and program wont be pressing keys in windows, just in silkroad window..
I started to code that and i have a little problem with sro_Client..
This should close my window, but it does not.. Same as
doesn't send any information to silkroad client
My questions are, how i can attach my program to silkroad client, for example, im doing a simple autoclicker i want to attach it to client and allow him to press keys ONLY in silkroad window, that means i can minimize silkroad window and program wont be pressing keys in windows, just in silkroad window..
I started to code that and i have a little problem with sro_Client..
Code:
Process[] procs = Process.GetProcessesByName("sro_client");
foreach (Process p in procs)
{
IntPtr pFoundWindow = p.MainWindowHandle;
p.CloseMainWindow();
}
}
Code:
SendKeys.Send("{ENTER}")