beiqi Posted January 5, 2006 Share Posted January 5, 2006 Hello!I want to use AutoIt to test some of my Windows application.wenn ich start das control Script with embeded AutoIt functions under a GUI, I havesometime problem with AutoIt Send("Hotkey"), for example, to activate a menuitem of my application after the start! Maybe that is a problem with send message between two processes under Windows. Can you tell me if Send function uses send message or post message?I need some hints or advice! And I hope someone has already an ad hoc solution Thanks in advance!Boostpy. Link to comment Share on other sites More sharing options...
Gigglestick Posted January 5, 2006 Share Posted January 5, 2006 (edited) If you're trying to activate menus, just make sure you're sending the alt key, for example, to access the Tools, Options menu: Send("!to") This sends alt-t, then o. Send sends text to the active window, so you might have to use WinActivate or WinWaitActive first. Edited January 5, 2006 by c0deWorm My UDFs: ExitCodes Link to comment Share on other sites More sharing options...
beiqi Posted January 5, 2006 Author Share Posted January 5, 2006 (edited) If you're trying to activate menus, just make sure you're sending the alt key, for example, to access the Tools, Options menu: Send("!to") This sends alt-t, then o. Send sends text to the active window, so you might have to use WinActivate or WinWaitActive first. Hello! I have checked the active windows with WinWaitActive und AutoIt saw that windows is active, too. But after the send command, for example, the menuitem is not chosen! BTW, If my script ist not started from a GUI, it works without failure! Edited January 5, 2006 by beiqi 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