Jump to content

Recommended Posts

Posted (edited)

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
Posted

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 :-/

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
×
×
  • Create New...