Jump to content

Alt functionality in C# .net app problem


spyro
 Share

Recommended Posts

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

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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...