Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 05.05.07 08:28 
Ich hab mir WarRock runtergeladen und es ist auch recht lustig zum Spielen nur das Problem ist das man die Tastenbelegung nicht ändern kann. Ich hab einmal gelesen das man mittels Keyboardhook "Tasten" ändern kann. Also wenn ich z.b "B" drücke das es bei WarRock mit dem Buchstaben "F" ankommt.

Geht das wirklich?

Wenn ja Wie? Das Hooktutorial von Aserbad hilft in dem Punkt auch nicht weiter.

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 05.05.07 10:29 
Kommt ganz auf die Technik deines Hooks an:

Wenn Du WarRock direkt in seiner Eingabe (also bei GetAsyncKeystate) oder der Message-Behandlung (Window Subclassing) hookst, kannst Du die vom Programm gesehenen Werte entsprechend abändern.

Bei globalen Hooks Müsst ich kurz in die Header schauen, dort werden aber die Dinge auch in einer Chain weitergereicht, so dass Du einfach nur deine manipulierten Werte durchschleifen müsstest (CallNextHookEx). Bin mir bei den globalen Hooks aber grad nicht sicher, ob die Synchron oder Asynchron zur Eingabe des Programms laufen (also nur Notify sind) ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 05.05.07 11:05 
na ja wie müsst den die Hookdll aussehen damit ich die Taste ändern kann bevor warrock die taste bekommt?

würde es dann geschwindigkeit bringen wenn man die in C++ programmiert?

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 06.05.07 22:06 
Wozu brauchst Du bitteschön in einem HOOK, der vielleicht alle 500 ms (wenn jemand schnell schreibt vielleicht alle 100ms) mal EINE Taste filtern muss noch mehr Geschwindigkeit, als Delphi sie bereitstellt?

Außerdem hilft Dir C auch nicht eine Funktion zu bauen, wenn sie so vom Betriebssystem nicht bereitgestellt wird.

Darauf zielte nämlich meine Frage im vorigen Post ab, ob die Verarbeitung als Notify im Hook geschieht, oder ob das Gechaint ans Programm weitergegeben wird. Wenn es lediglich Notify ist, bringt Dir auch C nix, weil's dann technisch nicht geht; wenn's gechaint ist, siehe bitte Dokumentation vom MSDN, da steht alles Notwendige. Dokumentation ist zum Lesen da.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 07.05.07 00:01 
Ich weiß halt nicht obs gechaint sein soll oder als Notify. was ist der unterschied?

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 19.05.07 08:41 
Also ich hab mich jetzt schlau gemacht und weiß jetzt das ich einen Chain Hook brauche da der sich ja zwischen tastatur und Spiel "hacken" muss.

Wie müsst jetzt dazu die dll aussehen?

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 19.05.07 10:07 
Ein globaler Hook sollte sich laut MSDN zwischen Tastatur und Spiel stellen. Es ist zumindest die Rede davon, dass CallNextHookEx aufgerufen werden muss, damit die Eingaben weiterverarbeitet werden können.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 02.06.07 09:01 
ok danke!

mich interessiert eigentlich mehr wie man die Tasten verändern kann.
weißt jmd. wie das geht?

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 02.06.07 10:03 
Vermutlich dadurch, dass du einen veränderten lParam an CallNextHookEx weitergibst.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)