AutoHotkey Community

It is currently May 26th, 2012, 1:07 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: October 23rd, 2007, 12:57 pm 
Offline

Joined: October 23rd, 2007, 12:57 pm
Posts: 1
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 24th, 2007, 2:15 am 
A free game to test this out on is 9Dragons. They get paid through in-game ads, and currently use GameGuard to block input.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 24th, 2007, 2:24 am 
Same guy here is it possible to make the game in window mode and use the osk aswell?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2007, 1:26 am 
I wonder if we can get a guy from RentACoder to make us a Vxd. If this happens I can contribute $40 and possibly more. Would this be possible?

Just doing a quick search there and here are my pick.

http://www.rentacoder.com/RentACoder/So ... rId=945703


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2007, 5:54 pm 
Offline

Joined: May 6th, 2005, 5:09 am
Posts: 37
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Left Mousebutton
PostPosted: November 6th, 2007, 5:10 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2007, 4:20 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 29th, 2007, 5:29 am 
Offline

Joined: May 6th, 2005, 5:09 am
Posts: 37
http://www.programmersheaven.com/mb/beg ... ssage.aspx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 7th, 2007, 8:24 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 9th, 2007, 3:59 pm 
gurkesaft wrote:
Okay, I just lost interest because I found a way to send input to my game. This may help others, so I'm posting it here. Try a bind like this to map Joy2 to "z". The 300 ms delay is just to be safe. 50 ms should be fine for most cases:


Joy2::
SetKeyDelay,300
Send {Blind}{z DownTemp}
Send {Blind}{z Up}
return


This will NOT work with my game (rfactor) if you use SendInput or SendPlay or anything. For some reason, you NEED Send, {Blind}, and the DownTemp/Up combo.

Hope this helps--Maybe this can be a new method, like "SendFancy" or something.

-Jack


This doesn't work if you send a string re: house
I have been trying to get this to work for hours and still no luck.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 13th, 2007, 7:28 pm 
Offline

Joined: December 13th, 2007, 7:08 pm
Posts: 1
Hey all.

I'm trying to achieve the same as you guys. I noticed that MouseClick was being block, so I came up with the idea to call the actual function from Windows OSK that does the keypress.

I have totally no idea on howto call functions from an external program, but I know it can be done.

It would be very easy to create macros if we could do something like "OskSendKey('-')" or "OskSendKeys('1 2 3')", since most protected games will accept input from Windows OSK.

Any help on this idea is greatly appreciated!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 15th, 2007, 11:44 pm 
Offline

Joined: April 5th, 2004, 7:24 pm
Posts: 98
Location: Connecticut USA
ChronoDragon wrote:
if anyone need a program that resist ahk, heres one by acclaim company

http://9dragons.acclaim.com/

resistant to SendInput, SendPlay, Send, ControlSend, etc...

hope i been a help.. have to ..return.. to.. button... smashing.......*dies* :(


acclaims new game '2moons' also uses gameguard. sniff.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2007, 12:36 am 
Autohotkey uses windows messages to simulate keypress in active windows. Well games using gameguard has somehow placed themselfes outside windows / the keys pressed in (games using gameguard) leads to someother part of the memory that windows has no access too.

Anyway this probly means that Autohotkey has meeten its superior adversairy and now I wonder is theres anyone who knows other scripting programs close as good as AutoHotkey that doesn't uses windows messages? Im talking lowlvl codes.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2007, 7:56 am 
GameGuard hook tons of win32API + kernelAPI. It make sure that you can not address their target application.

For example
inorder to send fake input. you might need a HWND.
GG hook kernel and make sure that you can not find the correct HWND of their target. These include HDC and all handle to the application.


^^


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2008, 10:30 pm 
Offline

Joined: January 24th, 2008, 9:17 pm
Posts: 1
This seems to be a hard to solve problem, tried to find information on the net but it was hard....

Just throwing out some thoughts....

Can you connect two USB ports together with a usb cable and send "real" keystroke code from one with a program to the other that interperates it as "actual" keystrokes???

Maybe someone know how windows keyboard driver works, it must be possible to go lo lvl coding and make even windows think it is real keystrokes???

Some links:)
http://www.agorics.com/Library/KeyKos/key370.html
http://msdn.microsoft.com/library/defau ... _event.asp
http://twapi.magicsplat.com/

Sorry i cant help, im not a programmer :(

_________________
Thats all for now!

/Keso


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Klark92, Tilter_of_Windmills, vsub, Yahoo [Bot] and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group