Jump to content

Hit Menuitem in minimized window


Recommended Posts

Hello ...

I want to Log Out from a window.. the logout button is under the "File"-menutab witch says "Log Out vegar"..

i've tried this:

WinMenuSelectItem ("MyWindow", "", "&File","Log Out vegar")

and

ControlSend("MyWindow", "", "", "{ALTDOWN}f{ALTUP}{DOWN}{DOWN}{ENTER}")

and none of these worked..

i've tried this

Const $in1 = "MyWindow"
WinWait($in1,"")
If Not WinActive($in1,"") Then WinActivate($in1,"")
WinWaitActive($in1,"")
Send("{ALTDOWN}f{ALTUP}{DOWN}{DOWN}{ENTER}")

this works, But this opens up the window, and i dont want that

Edited by Vegar
Link to comment
Share on other sites

i've read some in the help file.. and it says:

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.

and i'm preaty sure this is one of them "Custom Toolbars"... but i still dont get why my Controlsend would'nt work :-/

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...