It is currently March 28th, 2024, 6:25 pm

Open Excel file

Get help with creating, editing & fixing problems with skins
trader-hawk
Posts: 5
Joined: April 7th, 2017, 12:08 pm

Open Excel file

Post by trader-hawk »

Hello,

I have the "Avengers Skin" and the Widget "Time-24Hour.ini".

MeterFolder7]
meter=button
buttonimage=folder launchers.png
x=511
y=238
ButtonCommand=!Execute ["#FLP7#"]
antialias=1

With FLP7, I wear the path of a program that I would like to open. This also works.
How do I open an Excel file?
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy
Contact:

Re: Open Excel file

Post by fonpaolo »

I hope to have understood your question...
To open an Excel file, you need Microsoft Excel or OpenOffice (to give you an alternative), once you've one of these programs installed, simply use the program shortcut in the launcher path.

You can also use directly the Excel file and add this path in the launcher, in this case, Windows will do his job, to open it with the registered program to open the file.
trader-hawk
Posts: 5
Joined: April 7th, 2017, 12:08 pm

Re: Open Excel file

Post by trader-hawk »

Yes, you understood me correctly. Excel I have installed.

ButtonCommand=!Execute ["C:\Users\bla-bla\Documents\bla\bla-bla\Indizes Übersichtsliste.xlsx"]

With this string it does not open it.
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy
Contact:

Re: Open Excel file

Post by fonpaolo »

Probably it's because you're using a file in the Documents folder, I can assure you that it works.

Just out of curiosity, what version of the "Avengers S.H.I.E.L.D." suite you're using?
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Open Excel file

Post by kyriakos876 »

trader-hawk wrote:Yes, you understood me correctly. Excel I have installed.

ButtonCommand=!Execute ["C:\Users\bla-bla\Documents\bla\bla-bla\Indizes Übersichtsliste.xlsx"]

With this string it does not open it.
Maybe delete the !Execute and make it ButtonCommand=["C:\Users\bla-bla\Documents\bla\bla-bla\Indizes Übersichtsliste.xlsx"]
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Open Excel file

Post by jsmorley »

You are going to want to be sure the .xlx file extension is associated with Excel in Windows. You also don't need !Execute even though it won't really hurt.

https://docs.rainmeter.net/manual/bangs/#Execute
trader-hawk
Posts: 5
Joined: April 7th, 2017, 12:08 pm

Re: Open Excel file

Post by trader-hawk »

I have "Shielt-Complete 1.0". I use it but not as a skin, but only have this widget in use.
Also without "Execute" it does not work.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Open Excel file

Post by jsmorley »

trader-hawk wrote:I have "Shielt-Complete 1.0". I use it but not as a skin, but only have this widget in use.
Also without "Execute" it does not work.
!Execute is simply not a factor. It is entirely deprecated in Rainmeter, and has been for several years.

https://docs.rainmeter.net/manual/bangs/#Deprecated
https://docs.rainmeter.net/history/#r1377

So while often older (pre-2012) skins will have !Execute in them, i.e.

LeftMouseUpAction=!Execute ["Blah.exe"]

That can and should be replaced by simply

LeftMouseUpAction=["Blah.exe"]

Nothing to worry about particularly, it will work either way, but as you see them in older skins you are working on, and certainly when creating new skins, you should not use !Execute.
trader-hawk
Posts: 5
Joined: April 7th, 2017, 12:08 pm

Re: Open Excel file

Post by trader-hawk »

In order to exclude other errors I have it saved directly to C.
ButtonCommand=["C:\Indizes_Übersichtsliste.xlsx"]
Does not work too.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Open Excel file

Post by jsmorley »

trader-hawk wrote:In order to exclude other errors I have it saved directly to C.
ButtonCommand=["C:\Indizes_Übersichtsliste.xlsx"]
Does not work too.
Modern versions of Windows are not at all happy about having "files" in the root of the system drive, only "folders". But in any case, just for fun, can you try that without the umlaut Ü character just be be sure we don't have some Unicode or Locale issue?
Post Reply