kungperra Posted February 26, 2009 Share Posted February 26, 2009 Hi I have been trying to get this thing to work , but i cant figure out why it doesnt... Im just trying to press ALT + S in one application, and it just doesnt happen anyting at all... just trying this: WinActivate("test"); WinWaitActive("test") Send("!f") this would activate a notepad window and press ALT +F But if I use the same scritp on antoher application (think its some kind of java stuff in the background on that one, it does activate and bring the window on the screen, but then nothing happes, i can manually press ALT + F and that works as it should be... Any ides on this? I Would be most grateful! Thanks //Perra Link to comment Share on other sites More sharing options...
qazwsx Posted February 26, 2009 Share Posted February 26, 2009 What is this window? Is it a game? Link to comment Share on other sites More sharing options...
bo8ster Posted February 27, 2009 Share Posted February 27, 2009 Use the InfoTool to have a look at the windows then copy and paste the contents here. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
kungperra Posted February 27, 2009 Author Share Posted February 27, 2009 Hi thank u for u'r replies! Its a stock trading program. If I use the info box, the only thing it gives me back is this: Title: the title of the windows is here Class: javax.swing.JFrame the it gives the position style, exstyle, handle but no control or anything else all that is blank... Is there any way of maybe say to autoit to just press alt + F no matter what? If it has a problem with this particular window? It makes it the active window, so it does have contact, but its strange nothing happes when sending the ´commands.... /Perra Link to comment Share on other sites More sharing options...
kungperra Posted February 27, 2009 Author Share Posted February 27, 2009 it seems to be working now when I use ControlSend("", "", "", "!f") Now it does press the buttons! Thanks for taking the time! //Perra 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