Quote:
Originally Posted by My420Time
I need to stop being lazy and just find the offset for it. That way we don't have to simulate a key press to dismiss the dialog. Were you running more than 1 character btw? Also, I will put some confirmation into the crusade quests so it doesn't crash. Shouldn't be hard to have it detail whats in that slot.
|
my ideas to fix this:
1.)
if the killcount dont increase in X msec (set by the user) press the ESC key again.
2.)
you can also record the X and Y Position of the "Done-Button" for each game window by the user once.
because the dialog is always on the same position if the user dont change the resolution.
then send a mouseclick to the X and Y position like this:
Code:
PostMessage(wnd, WM_MOUSEMOVE , 0 , MakeLParam(DoneX, DoneY));
PostMessage(wnd, WM_LBUTTONDOWN, MK_LBUTTON, MakeLParam(DoneX, DoneY));
PostMessage(wnd, WM_LBUTTONUP , 0 , MakeLParam(DoneX, DoneY));
only until you find the right adress.
i'm only programming in pascal and dont really know C# :D