Vegar Posted July 6, 2009 Share Posted July 6, 2009 (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 July 6, 2009 by Vegar Link to comment Share on other sites More sharing options...
Vegar Posted July 6, 2009 Author Share Posted July 6, 2009 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 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