Delaunay Posted July 30, 2008 Share Posted July 30, 2008 (edited) Some years ago, I wrote a basic script to interact with a game: Func Test() Send("a") Sleep("100") MouseMove(100,100) Sleep("100") EndFunc It worked fine. It used to move the mouse and send the "a" key (equivalent as pressed in the keyboard). Today, the same script doesnt work any longer with the same game, but I see that some other Autoit scripts keep working fine. After reading a lot of FAQ section, I tried to increase the SendKeyDownDelay etc, but didnt work either... Opt ("WinTitleMatchMode", 2 ) Opt ("MouseClickDownDelay", 55) Opt ("MouseClickDelay", 1 ) Opt ("SendKeyDownDelay", 10 ) Opt ("SendKeyDelay", 1 ) Opt ("CaretCoordMode", 2 ) Tried to focus the Game window (via WinActivate()) and didnt work either... So, my questions are, basically: 1. HOW CAN A SOFTWARE DISTINGUISH AN ORIGINAL KEYBOARD KEYPRESS FROM ITS AUTOIT EMULATION? 2. IS THERE ANY WAY TO PREVENT BEING ACESSED BY AUTOIT COMMANDS? 3. HOW DOES A SOFTWARE AVOID (OR BYPASS) AN AUTOIT'S COMMAND? Thanks... Edited July 30, 2008 by Delaunay Link to comment Share on other sites More sharing options...
herewasplato Posted July 30, 2008 Share Posted July 30, 2008 ...3. HOW DOES A SOFTWARE AVOID (OR BYPASS) AN AUTOIT'S COMMAND?...http://en.wikipedia.org/wiki/GameGuard [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
junkew Posted July 30, 2008 Share Posted July 30, 2008 1. HOW CAN A SOFTWARE DISTINGUISH AN ORIGINAL KEYBOARD KEYPRESS FROM ITS AUTOIT EMULATION?Study general architecture on keyboard architecture of windowshttp://msdn.microsoft.com/en-us/library/ms646267(VS.85).aspxStudy windows driver kithttp://msdn.microsoft.com/en-us/library/ms790176.aspxand commands like keybd_event http://msdn.microsoft.com/en-us/library/ms646304(VS.85).aspxsendinput http://msdn.microsoft.com/en-us/library/ms646310(VS.85).aspx FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Delaunay Posted August 22, 2008 Author Share Posted August 22, 2008 Many thanks Link to comment Share on other sites More sharing options...
Minikori Posted August 22, 2008 Share Posted August 22, 2008 #3 Continued: What GameGuard does is check to see if programs with certain extensions or signatures are executed or already running once it's started, and I believe it blocks .au3 files. For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now