Hi folks, first of all thank you for compot, great idea!
Unfortunately I have a problem I couldnt find a solution for yet. I will describe my problem in german first, cause I dunno how well I can explain it in english...
Also, mein Problem:
Ich hab mir gestern compot + Treiber + dll geholt und angefangen rumzuspielen. War dann gestern abend so weit, dass ich chippen konnte, pet und char greifen an, nächster mob suchen, bißchen rumrennen wenn man keinen findet usw. Lief alles so weit gut, keine Exceptions oder Abstürze.
Heute hab ich dann begonnen den Bot ein bißchen intelligenter zu machen.
Doch als ich das ganze Testen wollte, passierte folgendes:
Manchmal (selten) krieg ich ne Exception bei Mouse = new Mouse(ID); direkt nach dem Starten. (Ich glaub es war Access denied, kann's aber grad nicht reproduzieren und nachprüfen.)
Meistens geht es bis zum Finden des Rappelz-Fensters und er hängt dann in der Schleife fest:
Code:
public void SendMouseEvent_LeftClick(int x, int y)
{
// Bewege die Maus und warte bis die Maus da ist.
SetPos(x, y);
[B]while (Workdone == false)
{
Heartbeat();
System.Threading.Thread.Sleep(5);
}[/B]
// Klick once with the left Button
Mouse.Stroke x1 = new Mouse.Stroke();
x1.state = Mouse.States.LEFT_BUTTON_DOWN;
Mouse.Write(x1);
x1.state = Mouse.States.LEFT_BUTTON_UP;
Mouse.Write(x1);
}
da sich die Maus nicht bewegt.
Ich habe seit gestern nichts an den Deklarationen/Definitionen von Mouse oder Keyboard geändert. Der Device Driver Test zeigt mir die IDs 1,2 und 3 als "ok" an (warum mehrere? Hab nur jeweils eine die über Bluetooth mit nem Empfänger(USB) verbunden sind), gestern funktionierte es mit ID 3, aber ich hab heute auch mal 1 und 2 probiert -ohne Erfolg.
Irgendwelche Ideen, was da schief läuft?
---------------
I'll try to explain it in english now, but I will shorten things for the english version:
I got compot, driver and dll yesterday and started coding a simple bot. It all worked well, after 1-2 hours I got a bot that could chip, attack and search for new mobs. Today I started to improve the bot, but only added a few functions which shouldnt have any effect on the main routines. When I wanted to test them, this is what happened and keeps happening since then:
Seldomly the programme throws an exception right after start when executing the line Mouse = new Mouse(ID);. I think the exception is Access denied, but I cant reproduce it at the moment.
Most of the time, the programme starts and finds the Rappelz Window. Then it gets stuck in the while loop:
Code:
public void SendMouseEvent_LeftClick(int x, int y)
{
// Bewege die Maus und warte bis die Maus da ist.
SetPos(x, y);
[B]while (Workdone == false)
{
Heartbeat();
System.Threading.Thread.Sleep(5);
}[/B]
// Klick once with the left Button
Mouse.Stroke x1 = new Mouse.Stroke();
x1.state = Mouse.States.LEFT_BUTTON_DOWN;
Mouse.Write(x1);
x1.state = Mouse.States.LEFT_BUTTON_UP;
Mouse.Write(x1);
}
cause the mouse won't move a bit.
I didn't change anything on the declarations/definitions of mouse and keyboard since yesterday. Device Driver Test shows IDs 1,2 and 3 as "ok". Yesterday it worked with 3, but I already tested 1 and 2 also, without success.
Any ideas on what's going wrong?
Help would be very much appreciated.
Edit: It just came to my mind to try the original compot. I get the same errors with it now and it really is an Access denied exception. I could run the original compot without any problems yesterday.
Edit2: I just tried uninstalling and re-installing the kernelhotkey.exe with rebooting my system each time. Didnt change anything. My OS is XP (32 bit) btw.