Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


2 Pages<12
Options
Go to last post Go to first unread
Offline kilele  
#21 Posted : 27 March 2014 22:30:38(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
It has occurred to me that the plugin could send the bin data to the clipboard and then the user could make a paste (control-v) by hand into any folder (as the program HTMtied does)
Another alternative could be using DDE as a layer between windows programs, see:
http://jdde.pretty-tools.com/
http://www.thescarms.com/VBasic/ddeml.aspx

Edited by user 27 March 2014 22:59:07(UTC)  | Reason: Not specified

thanks 1 user thanked kilele for this useful post.
on 27/03/2014(UTC)
Offline kilele  
#22 Posted : 28 March 2014 02:42:35(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
have you tried to write to the %TEMP% or %APPDATA% directories ?

Edited by user 28 March 2014 02:44:43(UTC)  | Reason: Not specified

thanks 1 user thanked kilele for this useful post.
on 28/03/2014(UTC)
Offline mkraska  
#23 Posted : 28 March 2014 10:25:09(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Perhaps the function GetFolderPath() can help.
mkraska attached the following image(s):
folders.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 28/03/2014(UTC)
Offline kilele  
#24 Posted : 28 March 2014 13:00:10(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
Ioan, i'm not sure to understand the problem well
perhaps you can use DAvide's hyperlink plugin
thanks 1 user thanked kilele for this useful post.
on 28/03/2014(UTC)
Offline kilele  
#25 Posted : 28 March 2014 16:25:05(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
don't ask me why but i think that'll work if you place the sm files at the same directory as smath exe
thanks 1 user thanked kilele for this useful post.
on 28/03/2014(UTC)
Offline kilele  
#26 Posted : 28 March 2014 19:30:28(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
the two large buttons at the bottom are green in my case, tested with martin's portable version on xp
thanks 1 user thanked kilele for this useful post.
on 28/03/2014(UTC)
Offline uni  
#27 Posted : 25 April 2014 01:15:34(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Play() function now works as expected (it waits for the end of sound).
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 25/04/2014(UTC)
Offline 9_82abZ2  
#28 Posted : 15 September 2015 20:37:12(UTC)
9_82abZ2

Rank: Newbie

Groups: Registered
Joined: 14/09/2015(UTC)
Posts: 7

This is as good a place as any:

Is there a function that returns the filename of the current worksheet/Smath Document? I couldn't find it
Offline MarB  
#29 Posted : 07 June 2017 10:12:30(UTC)
MarB


Rank: Advanced Member

Groups: Registered
Joined: 21/10/2016(UTC)
Posts: 84

Was thanked: 21 time(s) in 17 post(s)
Originally Posted by: 9_82abZ2 Go to Quoted Post
This is as good a place as any:

Is there a function that returns the filename of the current worksheet/Smath Document? I couldn't find it


Currently I have the same question and also no answer (and couldn't find one).
Can anybody help?
Offline Jean Giraud  
#30 Posted : 07 June 2017 21:20:56(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: MarB Go to Quoted Post
Is there a function that returns the filename of the current worksheet/Smath Document?I couldn't find it


Simple but not so simple, EXPLAIN:

1. If your work sheet resides in a subfolder: don't know if possible [didn't find trick]
2. If your work sheet reside in a folder in "C:\ ==> like this

path:=CurrentDirectory(""Wink
path="C:\Smath6179\"

Offline Jean Giraud  
#31 Posted : 08 June 2017 03:42:05(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
...
CWD.png

CWD.bmp
Offline MarB  
#32 Posted : 08 June 2017 09:16:49(UTC)
MarB


Rank: Advanced Member

Groups: Registered
Joined: 21/10/2016(UTC)
Posts: 84

Was thanked: 21 time(s) in 17 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: MarB Go to Quoted Post
Is there a function that returns the filename of the current worksheet/Smath Document?I couldn't find it


path:=CurrentDirectory(""Wink
path="C:\Smath6179\"



Hi Jean,

I do know 'CurrentDirectory( "" )' but it returns the path without the filename. And I am trying to retrieve the latter.
Offline Jean Giraud  
#33 Posted : 08 June 2017 14:38:18(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: MarB Go to Quoted Post
I do know 'CurrentDirectory( "" )' but it returns the path without the filename. And I am trying to retrieve the latter.


CWD.bmp

If I open a work sheet from "My Computer, C, click on the Folder, click on the work sheet
it will open Smath and CWD= is from which folder the work sheet comes from [Snippet].
Differently, If I open Smath first from the task bar, and click on the file name from the
file list on the Smath menu, I get: CWD="C\Program Flies\Smath Studio"

In fact, my Smath is so simple ... all my 925 work sheets are piled in Smath6179 folder.

All in all => same as Mathcad 11

Cheers ... Jean
Offline uni  
#34 Posted : 08 June 2017 15:05:42(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Originally Posted by: MarB Go to Quoted Post
Originally Posted by: 9_82abZ2 Go to Quoted Post
This is as good a place as any:

Is there a function that returns the filename of the current worksheet/Smath Document? I couldn't find it


Currently I have the same question and also no answer (and couldn't find one).
Can anybody help?


As workaround you can use simple C# script for this (Script plugin).

Code:
store.AddDefinition( terms[0].Text, new Term[0], new Entry( "\"" + store.FileName + "\"" ) );


2017-06-08_17-03-04.png
Russia ☭ forever
Viacheslav N. Mezentsev
Offline Jean Giraud  
#35 Posted : 08 June 2017 17:46:34(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
A more complete code would look like Mathcad 11

CWD="C:\Program Files\Mathsoft\Mathcad 11\Handbooks\datapack"
Offline mkraska  
#36 Posted : 29 October 2019 11:05:48(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
The function getfolderpath() seems to be broken for build 7219:

getfolder.sm (3kb) downloaded 21 time(s).
2019-10-29 07_52_04-SMath Studio 0.99.7219 - [Blatt5_].png

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 31/10/2019(UTC)
Offline uni  
#37 Posted : 31 October 2019 20:05:49(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated and rebuilded for SMath Studio ≥ 0.99.7109.
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 01/11/2019(UTC),  on 02/11/2019(UTC)
Offline oscampo  
#38 Posted : 29 June 2021 14:08:28(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Hi,
I found that the following functions of this plugin are not working:

Play(), WRITEWAV(), GETWAVINFO(), READWAV().

I saw the problem inside the interactive SMath Handbook.

I have SMath Studio 0.99.7822 (01 June 2021) on win10.

Oscar
thanks 1 user thanked oscampo for this useful post.
on 29/06/2021(UTC)
Offline uni  
#39 Posted : 29 June 2021 15:47:38(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
SMath Studio compatibility

Plugin updated. Please try.

Changes:
- plug-in corrected to respect latest SMath Studio API changes.

Edited by user 29 June 2021 15:51:38(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 29/06/2021(UTC),  on 29/06/2021(UTC)
Users browsing this topic
Similar Topics
[MathcadFileAccess] Read Image Puzzle (Bugs & Problems)
by Jean Giraud 21/02/2016 23:26:19(UTC)
2 Pages<12
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.