dirki Posted August 7, 2008 Share Posted August 7, 2008 Hi, I am trying to select a menu entry from a program using AutoIt. I would prefer to use keyboard shortcuts to this but I find that it does not always work. Sometimes I need to send a command like ALT+B three to five times and sometimes even this does not seem to work. Send("!b") This is true even when I use AutoIt to click into the first File Menu entry (to make sure the programs menu bar has the focus). Does any one have suggestions/options that I could use to get this done more reliably? Thanx Dirki Link to comment Share on other sites More sharing options...
Triblade Posted August 7, 2008 Share Posted August 7, 2008 What about ControlSend? My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger) Link to comment Share on other sites More sharing options...
Zedna Posted August 7, 2008 Share Posted August 7, 2008 And what about WinMenuSelectItem()? Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
dirki Posted August 7, 2008 Author Share Posted August 7, 2008 Hi Guys, thanks for your suggestions. Unfortunately, they did not help. However, I found through experimenting that the following pattern seems to do the trick: $MySendKeyDownDelay = Opt("SendKeyDownDelay", 200) $MySendKeyDelay = Opt("SendKeyDelay", 200) Sleep(250) Send("!b") Opt("SendKeyDownDelay", $MySendKeyDownDelay) Opt("SendKeyDelay", $MySendKeyDelay) I'll monitor this and see if it works reliable over the next weeks. Cheers Dirki 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