spyro Posted August 30, 2006 Share Posted August 30, 2006 I seem to be having an issue with the ALT shorcut key automation when running my script against an application written in C# .net. I have verified that they work when I type them manually. Is anyone else having this issue? www.SecurityDistro.com Link to comment Share on other sites More sharing options...
spyro Posted August 30, 2006 Author Share Posted August 30, 2006 Here is the current script Send("!TR") All it is supposed to do right now is go to the Tools menu option and then to Recorder. After some more research what I need to know is does AutoIt work with the .NET 2.0 Framework? www.SecurityDistro.com Link to comment Share on other sites More sharing options...
spyro Posted August 30, 2006 Author Share Posted August 30, 2006 I tried both ways. The WinMenuSelectItem() did not work. I also found this in the docs which probably applies to me. "WinMenuSelectItem will only work on standard menus. Unfortunately, many menus in use today are actually custom written or toolbars "pretending" to be menus. This is true for most Microsoft applications". I also tried to use sleep like you suggested. I have two menu items. One is &File and the other is &Tools. If I do Send("!T") it opens &File for some reason. It opens the right menu if it is executed manually and not scripted. www.SecurityDistro.com Link to comment Share on other sites More sharing options...
spyro Posted August 30, 2006 Author Share Posted August 30, 2006 The ClassnameNN reads WindowsForms10.STATIC.app.0.21af1a51 So I tried ControlSend("WindowsName","","WindowsForms10.STATIC.app.0.21af1a51","!T") This opened $File instead of $Tools. In the Window tool it also says >>>>Visible Window Text<<<< toolStripContainer1 explorerBar1 Not sure if this can also be used. www.SecurityDistro.com Link to comment Share on other sites More sharing options...
spyro Posted August 30, 2006 Author Share Posted August 30, 2006 The first one worked. Thanks for all your help. Would it be more efficient to use ControlSend instead of Send on most Windows applications? www.SecurityDistro.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