 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Mon Sep 03, 2007 10:58 am Post subject: |
|
|
Conclusion: The program that defeats AutoHotKey is..... GameGuard!
*sigh*  |
|
| Back to top |
|
 |
julieppy Guest
|
Posted: Mon Oct 08, 2007 1:03 am Post subject: |
|
|
| Quote: | F1::
{
DllCall("Kport.dll\OutPortb", UShort, 0x64, UChar, 0xD2)
DllCall("Kport.dll\OutPortb", UShort, 0x60, UChar, 0x04)
Sleep 100
DllCall("Kport.dll\OutPortb", UShort, 0x64, UChar, 0xD2)
DllCall("Kport.dll\OutPortb", UShort, 0x60, UChar, 0x84)
} |
by using this code..if i want to press 2 keys together as da same time (ex: shift+1), then i need to modify that code like how? |
|
| Back to top |
|
 |
xx3nvyxx
Joined: 05 Sep 2005 Posts: 84 Location: Down the hall, on your left.
|
Posted: Mon Oct 08, 2007 7:13 pm Post subject: |
|
|
That code (in the last post) will not work. If you somehow got it to work, tell me, but I doubt you did. It needs to be "Kport\_Outportb@8" and you need to make sure it's installed. The code I supplied is in this form:
add something to buffer
that something is "press three"
sleep 100
add something to buffer
that something is "release three"
You need to sleep for at least 100ms between writes to the buffer, but you can string together as many writes as you'd like.
To press/release a different/another key, just change the last parameter to the make/break code for that key. _________________ Now the world has gone to bed,
Darkness won't engulf my head,
I can see by infra-red,
How I hate the night.
Now I lay me down to sleep,
Try to count electric sheep,
Sweet dream wishes you can keep,
How I hate the night. |
|
| Back to top |
|
 |
Shiraz
Joined: 21 Oct 2007 Posts: 2
|
Posted: Sun Oct 21, 2007 4:13 am Post subject: |
|
|
I'm abit confused on this...
While you guys were figuring out on how to enter key strokes and mouse events within a game (Pristontale), I was using the functions within the AutoHotkey Manual (Send, MouseClick, MouseMove) and they were working fine for me. I managed to write a script for Prisontale that will train my skills automatically for me (Right clicks automatically and changes skills via a keystroke).
2 weeks ago, i cannot send keystrokes and mouse events to the game and it seems that everyone is trying to find out on how to do this. I was wondering if anyone knows how to send mouse clicks and keyboard strokes to the game?
I have done alot of research and have been reading this thread but I still havent found an answer.
The only thing that works for me in Pristontale is DllCall("SetCursorPos" which moves the mouse for me.
You can contact me via MSN or email. shirazkhan_172@hotmail.com |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 753 Location: London, UK
|
Posted: Sun Oct 21, 2007 1:31 pm Post subject: |
|
|
| Quote: | | I have ran into this problem with GameGuard before (in MapleStory), and successfully gotten around it. The thing that got it to work for me was to compile my script and rename it "JoyToKey" because GameGuard just uses a list of allowed program/DLL names allowed to send it input. I don't know if Gunbound has GameGuard using the same list or not, but it's worth a try. |
Have you tried this. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
Shiraz
Joined: 21 Oct 2007 Posts: 2
|
Posted: Sun Oct 21, 2007 4:33 pm Post subject: |
|
|
| Yes I have tryed that but it does not work anymore. That is a very old bypass method. |
|
| Back to top |
|
 |
photonbolt
Joined: 23 Oct 2007 Posts: 1
|
Posted: Tue Oct 23, 2007 12:57 pm Post subject: |
|
|
I've been trying to bypass gameguard for skill spamming on Flyff, and have had about as much luck as all the rest of you.
I've noticed a couple of useful things, though. If you use Windows XP's built in On-Screen Keyboard, Flyff accepts the keystrokes. I've tryed sending keyboard input to the on-screen keyboard using AHK but Flyff won't recognise it.
I'm about to try using MouseClick on the osk and see if Flyff will accept input that way. Watch this space.
EDIT:
No luck. I can make the click happen when Flyff isn't the active window, but it blocks ALL of AHK's mouseclicks when it IS the active window. It's enfuriating that On-Screen Keyboard can control Flyff. I guess that means there must be a way with AHK...
EDIT:
BANZAI!
I've got it working. It's hopelessly slow, but I can actually get it working!
Basically, I told osk to use mouse hovering instead of mouse clicks for its input. Since osk will take input even when it's not the active window, I can get the mouse onto my key of choice without AHK's mouse movement being blocked by GameGuard. And when you use hover key selection for osk, it will require the mouse to stay over the key for a certain amout of time before it carries out the keypress. And in that time period, AHK puts the window focus back to Flyff, and the keypress from osk will be accepted by GameGuard.
This isn't really a solution, but it works. Only other point to note, though, is that the mouse's movement is interrupted if it tries to move directly over the Flyff window. I'm considering creating a tiny window that the mouse can use as a "surfboard" to cross the Flyff window if need be. I'll stick my code here when I finish making it tidy.
EDIT:
I hadn't actually tested with the F-Keys, only with typing in a chat bar. Even real mouse clicks on the osk don't work for hotkeys ingame. I'm seeing if I can make them work some other way. |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Oct 24, 2007 2:15 am Post subject: |
|
|
| A free game to test this out on is 9Dragons. They get paid through in-game ads, and currently use GameGuard to block input. |
|
| Back to top |
|
 |
Agent Smith15 Guest
|
Posted: Wed Oct 24, 2007 2:24 am Post subject: |
|
|
| Same guy here is it possible to make the game in window mode and use the osk aswell? |
|
| Back to top |
|
 |
Agent Smith15 Guest
|
|
| Back to top |
|
 |
AgentSmith15
Joined: 06 May 2005 Posts: 37
|
Posted: Thu Oct 25, 2007 5:54 pm Post subject: |
|
|
I got a list on my system of everything hooked by GameGuard.
The revision of GameGuard is 1057.
If you go through the list you will see interesting stuff like....
GetPixel from gdi32.dll is hooked, so none of that.
PostMessageW from user32.dll is hooked too.
SendMessageW as well
SendInput
Believe me there is alot of stuff.
http://thesixthseal.net/9Dragons.rar |
|
| Back to top |
|
 |
zeeprime Guest
|
Posted: Tue Nov 06, 2007 5:10 pm Post subject: Left Mousebutton |
|
|
Hi.
I have been able to bypass some gameguard's protection for a game
I am able to use any key of the keyboard, I am able to move the mouse wherever I want
But I have not been able to "simulate" the pressing of the Left mousebutton.
1. Actual implemented solution.
Gameguard intercepts almost everything, but it seems that they have forgotten (or they couldn't do it) intercepting the TranslateMessage API.
Sending a text via TranslateMessage is then possible.
The return key doesn't work, but with the trick of the Microsoft Virtual keyboard I've read here I've been able to send it:
I move the mouse on the return button of the virtual keyboard and then I press it with a virtual leftmousebutton message, that is obviously not blocked by the virtual keyboard.
Yes, I could do both the message and the Return with the virtual keyboard only, but finding one single coordinate is easyier then finding 50.
Then the mouse move. It's really simple. I can set the focus in an external window, move the mouse and then again put the focus on the game's window.
But the left mousebutton sent to the game window is out of mine control.
Any idea?
I can use the assistant of Windows for moving the mouse (using the pair MicrosoftVirtualKeyboard and MouseAssistant), but its left click (key 5 of the numeric pad) is inibithed by gameguard (wtf, I wonder if it's a collateral behaviour or if they really thought about it).
I was thinking of opening my old serial mouse, wiring the leftbutton to an appropriate pin of the parallel port and send then a real leftmousebutton throught an apposite command to the parallel, but I was wondering if there is another clean way to do it...
2. Definitive and more complex architecture:
2a. I can install a virtual couple of serial port.
2b. I can configure them to act as a Null-Modem, so each command sent to the A port is received from the B port.
2c. I can install a serial mouse driver on the port B.
2d. I can finally send the 3 bytes of each mouse message from the port A, with both coordinates and mouse buttons, simulating a "real" virtual mouse to do anything. No more tricks finally...
2e. If this thing works, I can move doing the same thing for the keyboard (on the USB maybe, where things sound to be more complex)
So far I've done the points 2a and 2b.
I've not been successful in doing the 2c.
The 2d is apparentrly trivial, apart from the fact the maybe the driver would like that my virtual mouse answers to some question I don't know at the moment.
Anyway the 2d point is for sure less complex then rewriting my own serial mouse driver with the DDK (task which includes mouse responses too for sure, if any).
So: Is anybody able to install a serial mouse driver for WindowsXP on a virtual serial port?
As far as I know you can attach a serial mouse whenever you want to a serial port (not ps/2), so the driver could be installed without any real or virtual device attached to it...
I remember about some configurable driver on which I selected the COM port... but it's very likely it was under Win95 or Win3.11
Has anybody of you inspected if there is a way to solve our problems installing something BEFORE WinXp starts, that is in the CONFIG.SYS that is always present in our machine?
And also... i am enjoying more finding the solution than using it for the game!!!
Thanks.
Zee. |
|
| Back to top |
|
 |
ColacX Guest
|
Posted: Wed Nov 28, 2007 4:20 pm Post subject: |
|
|
Sorry for the previous post it was just a test. Anyways I'm not so good at programming I just made a program in C++ that uses keybd_event() to send key commands. Ofcourse that doesn't work in maplestory because it's protected by gameguard.
I tried making my program constantly press the "z" button with regualar intervals.
As far as I've understood is that keybd_event() is too high level. But why aren't there a function that uses more low level coding that is identical to the same code that the mouse button sends? I mean technicly I could open up my keyboard program the circuts and then it would work.
Someone should make a function that simulates low level user inputs.
Something that's intressting is that my Saitek P990 Joypad works perfectly it uses its own drivers for keyboard and mouse.
Please I'd like some helping in making my simple program, it's just supposed to press the "z" button. Thank you for time. |
|
| Back to top |
|
 |
AgentSmith15
Joined: 06 May 2005 Posts: 37
|
|
| Back to top |
|
 |
games4ever90 Guest
|
Posted: Fri Dec 07, 2007 8:24 am Post subject: |
|
|
Anyone know how to use Kioport driver to simulate a mouse click?
DllCall("Kport\_Outportb@8", Short, 0x64, Char, 0xD4)
and...?
Any help will be appriciated |
|
| 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
|