ankit.tayal560 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I've an excel file and i want to save my excel file and do other operations on that file through my code.
I am using Win32::GuiTest module for automation
use strict; use warnings; use Win32::GuiTest qw(:ALL); my @window=FindWindowLike(undef,"Book1.xlsx - Excel"); sleep 2; SetForegroundWindow($window[0]); sleep 2; MenuSelect("&File|&Save"); sleep 2;
but this code is not saving a existing excel file named "book1.xlsx"
Any suggestions or solutions to how to automatically do that from my script
P.S. saving an excel file is just taken as an example I need to other menu options through my script as well
I am not getting ny errors but it is not performing the desired task
any help is appreciated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use menu options
by marto (Cardinal) on Nov 10, 2016 at 09:48 UTC | |
|
Re: How to use menu options
by Corion (Patriarch) on Nov 10, 2016 at 09:03 UTC | |
by ankit.tayal560 (Beadle) on Nov 10, 2016 at 09:19 UTC | |
by Corion (Patriarch) on Nov 10, 2016 at 09:32 UTC | |
by ankit.tayal560 (Beadle) on Nov 11, 2016 at 09:01 UTC | |
|
Re: How to use menu options
by pryrt (Abbot) on Nov 10, 2016 at 14:59 UTC | |
|
Re: How to use menu options
by Anonymous Monk on Nov 11, 2016 at 03:13 UTC |