Board Logo
« Reload File on Activate »

Welcome Guest. Please Login or Register.
Jan 18th, 2018, 3:39pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Problems installing JB? Read the Vista/Win7 Installation FAQ

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Reload File on Activate  (Read 411 times)
thejoecole
Member in Training
ImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 29
xx Reload File on Activate
« Thread started on: Jun 21st, 2017, 09:28am »

Now that I have another editor loaded as an external program, I'm trying to understand what the "Reload File on Activate" feature does when selected in the preferences.

I'm under the impression it is supposed to automatically load the open .bas file in another editor when the program is run which is not happening. My second thought is to manually run the external editor and the .bas file automatically loads into the editor... which doesn't happen either.

So, what does the "Reload File on Activate" do?
User IP Logged

Joe Cole
-------------------------
Just BASIC v1.01
LibertyBASIC v4.5.1
Windows 10 Home 64-bit/Linux Mint 18.2 - Intel Core i3, 2.4GHz, 8 gig RAM
-------------------------
Consumer of Caffeinated Products
Hobby Programmer Wannabe
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3636
xx Re: Reload File on Activate
« Reply #1 on: Jun 21st, 2017, 09:50am »

Quote:
So, what does the "Reload File on Activate" do?

You have your BAS file open in JB
AND
You edit your file in external editor.
You save it from there.

Now you swich (alt-tab, mouse, etc) to JB.
If "Reload File on Activate" is on, JB silently load newer version of a file.
So you hit ShiftF5 and run fresh version of your file.

(beware all changes done in JB editor will be lost. So you better don't edit file both in JB AND external editor).
User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
bplus
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1255
xx Re: Reload File on Activate
« Reply #2 on: Jun 21st, 2017, 09:52am »

oops tsh73 answered already, but I thought it was supposed to reload the file you were working on when you closed JB in last code session.

I just tried and in my Windows 10 system it does not work like that. No surprise because UNDO does not work nor File Maintenance in File Manager nor Help from IDE... JB getting old.
« Last Edit: Jun 21st, 2017, 09:57am by bplus » User IP Logged

B+
thejoecole
Member in Training
ImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 29
xx Re: Reload File on Activate
« Reply #3 on: Jun 21st, 2017, 10:24am »

Quote:
You have your BAS file open in JB
AND
You edit your file in external editor.
You save it from there.

Now you swich (alt-tab, mouse, etc) to JB.
If "Reload File on Activate" is on, JB silently load newer version of a file.
So you hit ShiftF5 and run fresh version of your file.


Wow... That's pretty slick! Everything worked here as advertised. The only difference is that I did not have to hit ShiftF5 to refresh. As soon as I saved the code in the external editor and switched back to JB, the code in JB updated on its own.

Will likely continue coding in JB instead of an external editor for now. It's self-contained and I'm used to the syntax highlighting. I know the syntax highlighting in Notepad++ (and some others) does have something close if I use the Visual Basic option.
User IP Logged

Joe Cole
-------------------------
Just BASIC v1.01
LibertyBASIC v4.5.1
Windows 10 Home 64-bit/Linux Mint 18.2 - Intel Core i3, 2.4GHz, 8 gig RAM
-------------------------
Consumer of Caffeinated Products
Hobby Programmer Wannabe
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3636
xx Re: Reload File on Activate
« Reply #4 on: Jun 21st, 2017, 12:47pm »

Bplus,
Quote:
but I thought it was supposed to reload the file you were working on when you closed JB in last code session.

No. For that is "Load on startup" section. Then you select "Most recent file", it will open file you were working then close JB.

Quote:
I just tried and in my Windows 10 system it does not work like that. No surprise because ...

Because it's not supposed to work like that?

Quote:
No surprise because UNDO does not work nor File Maintenance in File Manager nor Help from IDE... JB getting old.

I wonder what exactly wrong with File Maintenance?
User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3636
xx Re: Reload File on Activate
« Reply #5 on: Jun 21st, 2017, 12:49pm »

Joe,
Quote:
he only difference is that I did not have to hit ShiftF5 to refresh.


Shift F5 is not for refresh.
It's JB shortcut for "RUN".
User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
bplus
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1255
xx Re: Reload File on Activate
« Reply #6 on: Jun 21st, 2017, 2:00pm »

Quote:
Because it's not supposed to work like that?


Oops, I see the "Load at startup" section in preferences now. That does work!

So I can run JB through Geany as an editor? That is interesting! smiley

Wait... I guess I have to have both exe's, Geany AND JB, going at same time.

Confirmed! That works, very nice! smiley
« Last Edit: Jun 21st, 2017, 2:22pm by bplus » User IP Logged

B+
thejoecole
Member in Training
ImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 29
xx Re: Reload File on Activate
« Reply #7 on: Jun 21st, 2017, 2:24pm »

Quote:
Wait... I guess I have to have both exe's, Geany AND JB, going at same time.


That's the way I understand it. smiley

So, it would be interesting to be able to run the JB .bas file from the external editor. Looking at starting simple and just trying to run a .bas file from the command line, I can get the file into the editor but don't know if there are any switches I need to add to the jbasic.exe program to invoke the Shift-F5 to actually run the .bas file.
User IP Logged

Joe Cole
-------------------------
Just BASIC v1.01
LibertyBASIC v4.5.1
Windows 10 Home 64-bit/Linux Mint 18.2 - Intel Core i3, 2.4GHz, 8 gig RAM
-------------------------
Consumer of Caffeinated Products
Hobby Programmer Wannabe
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3636
xx Re: Reload File on Activate
« Reply #8 on: Jun 21st, 2017, 3:20pm »

Quote:
but don't know if there are any switches I need to add to the jbasic.exe program to invoke the Shift-F5 to actually run the .bas file.
*there is no spoon*

Setting Up External Programs
Reply#16 and 18.
User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
thejoecole
Member in Training
ImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 29
xx Re: Reload File on Activate
« Reply #9 on: Jun 21st, 2017, 3:55pm »

Quote:
Setting Up External Programs
Reply#16 and 18.


Sorry, I overlooked that.

To think with these two threads, "Reload File on Activate" and "Setting Up External Programs"; all of this started with me reading Chapter 2 in "Programming For the Absolute Beginner, 2nd Ed"!

Looks like I'm going to have a lot more fun with Just BASIC (and LibertyBASIC) than I thought.
User IP Logged

Joe Cole
-------------------------
Just BASIC v1.01
LibertyBASIC v4.5.1
Windows 10 Home 64-bit/Linux Mint 18.2 - Intel Core i3, 2.4GHz, 8 gig RAM
-------------------------
Consumer of Caffeinated Products
Hobby Programmer Wannabe
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls