Jump to content
Sign in to follow this  
Laymanball

WinMenuSelectItem Sample Test

Recommended Posts

Laymanball

SelectRun:WinMenuSelectItem Sample Test. With notepad.

_Menu_File()
Func _Menu_File()
    If Not ProcessExists("Notepad.exe")Then Run(@SystemDir&"\Notepad.exe")
    If WinWait("[CLASS:Notepad]")Then WinMove("[CLASS:Notepad]", "", 252, 228, 518, 292)
    MsgBox(64, "", "WinMenuSelectItem. Run Menu: &File &Open")
    WinMenuSelectItem("[CLASS:Notepad]", "", "&File", "&Open..." )
    If WinActive("Open")Then WinWait("Open")
    Sleep(500)
    If WinClose("Open")Then MsgBox(64, "", "Run Menu: &File Save &As..." )
    WinMenuSelectItem("[CLASS:Notepad]", "", "&File", "Save &As..." )
    If WinActive("Save As")Then WinWait("Save As")
    Sleep(500)
    If WinClose("Save As")Then MsgBox(64, "", "Run Menu: &File E&xit")
    WinMenuSelectItem("[CLASS:Notepad]", "", "&File", "E&xit" )
    Sleep(500)
_Menu_Edit()
EndFunc
Func _Menu_Edit()
If Not ProcessExists("Notepad.exe")Then Run(@SystemDir&"\Notepad.exe")
If WinWait("[CLASS:Notepad]")Then MsgBox(64, "", "Run Menu: &Edit &Go To...")
    WinMenuSelectItem("[CLASS:Notepad]", "", "&Edit", "&Go To..." )
If WinActive("Goto line")Then Sleep(500)
    If WinClose("Goto line")Then MsgBox(64, "", "Run Menu: &Edit &Time/Date")
WinMenuSelectItem("[CLASS:Notepad]", "", "&Edit", "Time/&Date")
Sleep(500)
    If WinClose("[CLASS:Notepad]")Then Send("!n")
Sleep(500)
_Menu_Format_Help()
EndFunc
Func _Menu_Format_Help()
MsgBox(64, "", "Run Menu: F&ormat &Font...")
    If Not ProcessExists("Notepad.exe")Then Run(@SystemDir&"\Notepad.exe")
If WinWait("[CLASS:Notepad]")Then WinMenuSelectItem("[CLASS:Notepad]", "", "F&ormat", "&Font..." )
    If WinActive("Font")Then Sleep(500)
If WinClose("Font")Then MsgBox(64, "", "Run Menu: &Help &About Notepad")
WinMenuSelectItem("[CLASS:Notepad]", "", "&Help", "&About Notepad" )
Sleep(500)
If WinActive("About Notepad")Then WinClose("About Notepad")
    Sleep(500)
WinClose("[CLASS:Notepad]")
Exit
EndFunc
;==>WinMenuSelectItem.

My Sample Script

Download: VistaDesktopIconsChangerForXp.au3 (Com,Doc and Bin only) http://www.4shared.com/rar/NMHYL5Igba/VistaDesktopIconsChangerForXp_.html

                     VistaDesktopIconsChangerForXp.exe (Resources) http://www.4shared.com/rar/nzs7Mb1gba/VistaDesktopIconsChangerForXp_.html

Share this post


Link to post
Share on other sites
Jos

Remember: ?

What changed?

Edit: I see you posted a couple of these kind of examples again...

Next new topic within the next 3 months in this Examples forum will urn you a vacation from these forums.

Tnx,

jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Laymanball

OK.. JOS

IF I post code again

I will banded?

I must stop post code now?

I must read only?. NO. post everything.

Fellow.

Thanks :);):graduated:


My Sample Script

Download: VistaDesktopIconsChangerForXp.au3 (Com,Doc and Bin only) http://www.4shared.com/rar/NMHYL5Igba/VistaDesktopIconsChangerForXp_.html

                     VistaDesktopIconsChangerForXp.exe (Resources) http://www.4shared.com/rar/nzs7Mb1gba/VistaDesktopIconsChangerForXp_.html

Share this post


Link to post
Share on other sites
Laymanball

Djarlo

Do not block the Idia. For the basic programming.

................................................................................

Thanks.. Your code SplashProgressImage. Nice Cool.

Edited by Laymanball

My Sample Script

Download: VistaDesktopIconsChangerForXp.au3 (Com,Doc and Bin only) http://www.4shared.com/rar/NMHYL5Igba/VistaDesktopIconsChangerForXp_.html

                     VistaDesktopIconsChangerForXp.exe (Resources) http://www.4shared.com/rar/nzs7Mb1gba/VistaDesktopIconsChangerForXp_.html

Share this post


Link to post
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
Sign in to follow this  

×