 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
[sYn] Guest
|
Posted: Mon Apr 03, 2006 8:21 pm Post subject: |
|
|
Having checked my script again it seems the above DOES work, it simply doesn't do what I want it to. If I add a simple
This is passed to the game fine and provides the correct action. This means that my %number% variable is not passing the correct information to the game. Any suggestions would be great? |
|
| Back to top |
|
 |
Plocploc Guest
|
Posted: Fri Apr 07, 2006 10:16 am Post subject: |
|
|
Hello all,
I have recently found out that AHK SendPlay function could work for lot of online games protected by Gameguard/nprotect (priston tale, ...). But I noticed some strange phenomenon. Actually SendPlay would successfully send a click and bypass gameguard. On the other hand, SendPlay keystrokes is more random. Most of keystroke won't go through but I noticed some interesting thing:
If you sendplay let's says {I } keystroke (=open inventory shortkey) then it won't work. But if you sendplay {Enter} then the game open the chat window. Now sendplay some strings again ("blablabla") you will see the blablabla autotyping in the chat window! SendPlay {Enter} again and you'll see your char saying "blablabla" in game.
Now this behaviour is pretty weird. How can the game protection intercept keystrokes, and allow keystroke typed in chat-mode to pass through
Any comment/hint would be greatly appreciated, thank you. |
|
| Back to top |
|
 |
jr-1
Joined: 25 Feb 2005 Posts: 4
|
Posted: Thu Apr 20, 2006 3:41 am Post subject: |
|
|
I encountered an identical problem with trying to send keystrokes to the active game window. I was able to always send keystrokes to a chat/console window, but not the active game window. I finally figured it out and it was because I was not specifying the MapVirtualKey/VkKeyScan scancodes. After specifying this then all keys recognized correctly in the chat/console windows and the regular active game window. As I mentioned in an ealier part of this thread the program name is G-Hotkey. Please note that G-Hotkey does not work (as far as I know) with Gameguard/Nprotect games. The code I use only uses the kebyd_event library which I believe is then translated into SendInput. If the SendPlay function is bypassing Gameguard/Nprotect then this would be a superior way of sending keystrokes to games. Anyway, perhaps this can help Chris out to determine if this would fix the problem. I realize that I am not posting this as a pure Autohotkey soultion, but I'm just trying to help out as I had this exact same problem.
For further information regarding this and code samples please see the thread:
http://www.vdsworld.com/forum/viewtopic.php?t=3395&highlight=keybdevent |
|
| Back to top |
|
 |
roninn Guest
|
Posted: Fri Apr 21, 2006 6:31 pm Post subject: Zonealarm |
|
|
| What is strange is that Zonealarm accepts ControlSend if I run the ahk script, but after compiling the script, it doesn't work anymore. Now how just does an ahk script execute? |
|
| Back to top |
|
 |
roninn Guest
|
Posted: Fri Apr 21, 2006 7:03 pm Post subject: |
|
|
| I got it, the uncompiled script executes through AutoHotkey.exe, and AutoHotkey.exe is set as Trusted in Zonealarm. That's why a script can send controls to Zonealarm and a compiled script fails (unless set as trusted manually). So if you want to send controls to Zonealarm, set your executable as trusted |
|
| Back to top |
|
 |
Guest123 Guest
|
Posted: Fri Apr 21, 2006 8:56 pm Post subject: |
|
|
| [sYn] wrote: | Having tried AutoHotKey with Elder Scrolls Oblivion (http://www.elderscrolls.com/) I can't seem to get it working..
[...]
I tried using Send, SendPlay and as seen above SendInput.. No luck at all. Originally I thought the issue was caused by me trying to use keys that where premapped inside of the game engine, however changing the keys did not help. Any thoughts? |
I have had the same problem. Funny thing: The supposedly older and worse method "SendEvent" works. |
|
| Back to top |
|
 |
Plocploc Guest
|
Posted: Tue May 02, 2006 10:47 am Post subject: |
|
|
| jr-1 wrote: | | I finally figured it out and it was because I was not specifying the MapVirtualKey/VkKeyScan scancodes. After specifying this then all keys recognized correctly in the chat/console windows and the regular active game window. |
Do you know a way to do that only using AHK? or in C/VB? Thanks |
|
| Back to top |
|
 |
MisterW
Joined: 20 Jul 2005 Posts: 65
|
Posted: Tue May 16, 2006 10:47 pm Post subject: Some code that MAY be of use for capturing keyboard events |
|
|
Here is some source code from Sysinternals that isn't device driver code but may be useful in allowing AHK to handle keyboard input from more applications (I really don't know as I just come across it and haven't researched it or read this thread for a long time).
http://www.sysinternals.com/Utilities/Ctrl2Cap.html |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Tue May 16, 2006 10:56 pm Post subject: |
|
|
| Thanks; I think someone mentioned that URL a while back. I've made a note to take a closer look at it. |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Jun 02, 2006 6:46 am Post subject: |
|
|
| Plocploc wrote: | Hello all,
I have recently found out that AHK SendPlay function could work for lot of online games protected by Gameguard/nprotect (priston tale, ...). But I noticed some strange phenomenon. Actually SendPlay would successfully send a click and bypass gameguard. On the other hand, SendPlay keystrokes is more random. Most of keystroke won't go through but I noticed some interesting thing:
If you sendplay let's says {I } keystroke (=open inventory shortkey) then it won't work. But if you sendplay {Enter} then the game open the chat window. Now sendplay some strings again ("blablabla") you will see the blablabla autotyping in the chat window! SendPlay {Enter} again and you'll see your char saying "blablabla" in game.
Now this behaviour is pretty weird. How can the game protection intercept keystrokes, and allow keystroke typed in chat-mode to pass through
Any comment/hint would be greatly appreciated, thank you. |
funny, I thought I'd be the only one encountering this problem. Its even more weird in DAoC, if you send more than 1 keystroke they appear in the chat window, WITHOUT (!) previously "opening" the chat with enter. So basically what you can do and what works is sending single keystrokes with a certain delay (1 sec), not very much. And indeed this behaviour is weird and I must confess I dont have an explanation... |
|
| Back to top |
|
 |
Visitor Guest
|
Posted: Fri Sep 15, 2006 5:59 pm Post subject: |
|
|
Dunno if this topic here is still kinda active / needed, but I found something about DirectInput Hooking (and a Sample):
C++ DirectInput Hooking component and sample
Maybe that can help creating a low low low level hook for DirectInput in AutoHotkey,
so that u can use AHK in every Programm and Game.  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Sat Sep 16, 2006 9:02 pm Post subject: |
|
|
Pretty impressive. I'll review it more when the time comes to work on better keystrokes, mouse clicks, and joystick control.
Thanks for the link. |
|
| Back to top |
|
 |
jtbalogh
Joined: 05 Feb 2006 Posts: 35
|
Posted: Mon Sep 25, 2006 11:47 pm Post subject: |
|
|
Thank you for the new version 104413 of autohotkey. It is remapping keys with the Send command for my games now. Whatever changes you made after version 104305, is looking good for me. For example,
w::
Send, {w down}
return
w up::
Send, {w up}
return
I no longer have to use the tilde anymore, or inline remap (~w:: label or w::e). |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Oct 11, 2006 6:29 pm Post subject: |
|
|
| Anonymous wrote: |
funny, I thought I'd be the only one encountering this problem. Its even more weird in DAoC, if you send more than 1 keystroke they appear in the chat window, WITHOUT (!) previously "opening" the chat with enter. So basically what you can do and what works is sending single keystrokes with a certain delay (1 sec), not very much. And indeed this behaviour is weird and I must confess I dont have an explanation... |
^_^ I have the same problem. I'm not use AutoHotKey but modify a typing software (because this software can send unicode character to game protected by GameGuard) to send some key. And i got the same result as you.
Ex: I want to send key "9" to game (which will active a skill), then i sent a keycode "0x39". If the chat box, it receive character "9". But if the main game screen, it don;t active the skill.
So i'm really confuse what wrong here. |
|
| Back to top |
|
 |
Giethet Guest
|
Posted: Mon Oct 16, 2006 4:47 pm Post subject: |
|
|
| Plocploc wrote: | | Actually SendPlay would successfully send a click and bypass gameguard. On the other hand, SendPlay keystrokes is more random. |
how can you do that, i did try but no mouse click in game at all. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|