Machsupport Forum

Mach Discussion => Mach Screens => Topic started by: Overloaded on March 27, 2013, 05:35:43 PM

Title: Button to open .txt file
Post by: Overloaded on March 27, 2013, 05:35:43 PM
Looking at the script under the "G-Codes" button I can see that it opens an html from within the M3 folder.
I made a script button labeled "NOTES". And I put a "NOTES.txt" file in the M3 folder as well.

What do I put in the NOTES button script instead of HtmlDialog to make it open the .txt file so I can write to it and keep notes there ?

I changed the G-Code script to "NOTES.txt" and it opened the file but in html which I can't write into and the text goes off the window.

Thanks,
Russ

Title: Re: Button to open .txt file
Post by: BR549 on March 27, 2013, 05:52:44 PM
Shell "Notepad.exe Notes.txt"

It opens the windows notepad app and loads the Notes.txt file at the same time

(;-)TP
Title: Re: Button to open .txt file
Post by: Overloaded on March 27, 2013, 06:03:51 PM
Per-zactly what I needed !
Now, a quick glance at the NOTES and I can see why something isn't working as expected due to so much experimental stuff  and changes made to this sim. pc.
I will have a different NOTES file for each profile and have an associated NOTES button on each screen.
Thanks-a-bunch T,
Russ
Title: Re: Button to open .txt file
Post by: Chaoticone on March 27, 2013, 06:41:53 PM
Bravo................ very nice.  :)

Brett
Title: Re: Button to open .txt file
Post by: BR549 on March 27, 2013, 06:58:29 PM
Yall experiment with MACH3 ???? Say it aint so (;-) I am working on a new DRY run simulator function. you can run the sim as fast as you want and it runs the toolpath. Then repeats until you stop it.

(;-) TP