Astinov Posted December 12, 2014 Share Posted December 12, 2014 (edited) I am new to AutoIt. Trying to activate the "Resize" menu item in MS Paint but with no success. I am using Windows 8.1 Enterrpise and Paint.exe is with a ribbon UI. Anybody help... Here is my (stupid) code: ===================================== #include <MsgBoxConstants.au3> $WinName = "[CLASS:MSPaintApp]" ; Test if the window exists and display the results. ;If WinExists("[CLASS:MSPaintApp]") Then If WinExists($WinName) Then MsgBox($MB_SYSTEMMODAL, "", "Window exists") Else MsgBox($MB_SYSTEMMODAL, "", "Window does not exist") EndIf WinActivate($WinName) $Result = WinMenuSelectItem($WinName, "", "&Home", "Resize") ;Send ("^W", flag = 0) ;Send ("!f") sleep (5000) ============ and here is the "Resize" function, which I want to activate Edited December 12, 2014 by Astinov Link to comment Share on other sites More sharing options...
computergroove Posted December 12, 2014 Share Posted December 12, 2014 Send("{CTRLDOWN}W{CTRLUP}") will activate the menu Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html Link to comment Share on other sites More sharing options...
Astinov Posted December 12, 2014 Author Share Posted December 12, 2014 Tx computergroove, but still no effect. The script works correctly till the line WinActivate($WinName) I inserted your code after this line but... 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