Sign in to follow this  
Followers 0
meads

AutoIt not working on this program's window

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



MouseCoordMode?

Show your code if you can :D


This world is crazy

Share this post


Link to post
Share on other sites

MouseCoordMode?

Show your code if you can :D

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 call

hotkeyset("!d", "Message")

While 1

Sleep(10)

WEnd

Func 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 ;==>Message

the 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0