meads Posted January 30, 2010 Share Posted January 30, 2010 I am trying to automate a program called Shop'NCook Menu from http://www.shopncook.com/downloads.html It appears that this program doesn't allow AutoIt to function when the Shop'NCook window is active. I have made some macros, move cursor, send keystroke, etc that work fine as long as the Shop'NCook window is Not active but once the Shop'NCook window is active, the macros cease to work. AU Spy reports the window as ahk_class SunAwtFrame. Because Shop'NCook software runs on Mac and Windows, it possible that it's runtime grabs control of system so AutoIt can't work on it? Any suggestions on how to have AutoIt control any part of this program? I have tried to search the forum for some clues but how to phrase the question seems to elude me. I appreciate any pointers to existing forum threads that might help, meads. Link to comment Share on other sites More sharing options...
Sobiech Posted January 30, 2010 Share Posted January 30, 2010 MouseCoordMode? Show your code if you can This world is crazy Link to comment Share on other sites More sharing options...
meads Posted February 6, 2010 Author Share Posted February 6, 2010 MouseCoordMode?Show your code if you can the window info says this window is of type = SunAwtFrame. This window seems to defy any mouse moves or sent keys when it is active.Even directly trying to click a location with a script doesn't work.AutoItSetOption ( "MouseCoordMode" ,1 ); I use 2 when trying window options. ; Assign control, alt d with Message() and set extended function callhotkeyset("!d", "Message")While 1 Sleep(10)WEndFunc Message() ;WinActivate ( "Shop'NCook Pro - Recipe Manager" ) ;sets focus but cursor doesn't move. ;WinActivate ( "AutoIt Help" ) ;sets focus and cursor DOES move! MouseMove(857, 236) MouseClick("left") ;MouseMove(10, 100) MsgBox(4096,"","This is a message.")EndFunc ;==>Messagethe script works fine when the window is NOT the Shop'Ncook.Even directly trying to click the Shop'Ncook doesn't work.Is this SunAwtFrame window type not compatible with AutoIt?thanks,meads Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted February 6, 2010 Share Posted February 6, 2010 I know that some MMORPGS have anti-hacks that cause the same thing when trying to use MouseMove (), MouseClick (), Send (), etc.. maybe the program is using the same method as anti-hacks? Just an idea. Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
Bert Posted February 7, 2010 Share Posted February 7, 2010 If the program is using Antihacks, then odds are it is against TOS for the program to do what you are attempting. I suggest you review it to see. The Vollatran project My blog: http://www.vollysinterestingshit.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