Hello Guest it is April 19, 2024, 03:42:18 AM

Author Topic: Button to open .txt file  (Read 4894 times)

0 Members and 1 Guest are viewing this topic.

Button to open .txt file
« 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

« Last Edit: March 27, 2013, 05:39:34 PM by Overloaded »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Button to open .txt file
« Reply #1 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
Re: Button to open .txt file
« Reply #2 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

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Button to open .txt file
« Reply #3 on: March 27, 2013, 06:41:53 PM »
Bravo................ very nice.  :)

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Button to open .txt file
« Reply #4 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