Search found 1010 matches

by mestnyi
Thu Mar 27, 2025 7:26 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

Re: [done] RunProgram whis text

I would like to do the same for Linux and macos. How do I do this?
by mestnyi
Thu Mar 06, 2025 1:31 pm
Forum: Off Topic
Topic: What's going on here?
Replies: 9
Views: 2267

Re: What's going on here?

Kiffi wrote: Thu Mar 06, 2025 1:16 pm Have a look at what it looks like in my Notepad++:

Image

(ZWNBSP means "ZERO WIDTH NO-BREAK SPACE")
Wow, now what, how do I deal with this?
by mestnyi
Thu Mar 06, 2025 1:01 pm
Forum: Off Topic
Topic: What's going on here?
Replies: 9
Views: 2267

Re: What's going on here?

Kiffi wrote: Thu Mar 06, 2025 12:40 pm not here.

In both cases: Window 1 1
I looked
It's the browser that fixes it.
Can you download and watch the "1.pb" file from here?
https://github.com/mestnyi33/widget
by mestnyi
Thu Mar 06, 2025 12:48 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

Re: RunProgram whis text

ChrisR wrote: Wed Mar 05, 2025 7:41 pm Well done :)
Looks old now, it's probably better done in the example here
the only thing without this line is text, hieroglyphs.

Code: Select all

WriteStringFormat(hTempFile, #PB_UTF8)
         
by mestnyi
Thu Mar 06, 2025 12:40 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

Re: RunProgram whis text





with your example, a wheel is spinning over the cursor all the time. Why can it be?

Because your code contains an error, it is trying to tell you about it, but since the program is hidden you cannot see this. I assume that the debugging mode could derive an error, but since there is ...
by mestnyi
Thu Mar 06, 2025 12:37 pm
Forum: Off Topic
Topic: What's going on here?
Replies: 9
Views: 2267

What's going on here?

Code: Select all

func$ = "Window" ; debug Window 1 0

; comment\uncomment
; func$ = "Window" ; debug Window 0 1

Debug ""+func$ +" "+ Bool(func$ = "Window") +" "+ Bool(func$ = "Window")
What's going on here? Why do the same words look different?
by mestnyi
Wed Mar 05, 2025 7:31 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

Re: RunProgram whis text

ChrisR wrote: Wed Mar 05, 2025 7:24 pm I thought it was for my code, I tried and couldn't understand.
I hadn't seen that AZJIO had published a code snippet and I don't have the wheel!
Yours is working, I've already found it on githube SweetyVD :D
by mestnyi
Wed Mar 05, 2025 6:57 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

Re: RunProgram whis text

AZJIO wrote: Wed Mar 05, 2025 10:14 am
with your example, a wheel is spinning over the cursor all the time. Why can it be?
by mestnyi
Wed Mar 05, 2025 8:42 am
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

Re: RunProgram whis text


I saw that my application was quoted.
For the preview, the generated code is written to a temporary file, compiled and then executed, as Axolotl wrote.
With a BIG thanks for the speed of the ASM compiler, to have the preview in less than 2 seconds.

Seeing the help, I didn't even try to do it any ...
by mestnyi
Mon Mar 03, 2025 4:51 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

Re: RunProgram whis text

AZJIO wrote: Mon Mar 03, 2025 10:03 am
mestnyi wrote: Mon Mar 03, 2025 9:29 am For example, in pureform, in icedesign there is a preview function, I thought it was implemented this way.
Looking at source code and compiling are different things.
I don't understand what you mean.
it would seem a simple task, but there is not even any desire to continue working.
by mestnyi
Mon Mar 03, 2025 4:49 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

Re: RunProgram whis text

Axolotl wrote: Mon Mar 03, 2025 11:34 am So my suggestion: Save the text in a file and call that one.
I didn't want to save it, is there really no other solution? :oops:
by mestnyi
Mon Mar 03, 2025 4:47 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

Re: RunProgram whis text


Simply try to run the output in a dos-box:

text$ = "Window_1 = OpenWindow(#PB_Any, 0, 0, 200, 200, "+Chr('"')+"window_1"+Chr('"')+ ")" + #LF$ +
"Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow"

Debug #PB_Compiler_Home+"/Compilers/pbcompiler" + " " + "/EXE"+ text$



I did as you said ...
by mestnyi
Mon Mar 03, 2025 9:29 am
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 1899

[done] RunProgram whis text

They made comments to me, so I'm creating a new topic.
text$ = "Window_1 = OpenWindow(#PB_Any, 0, 0, 200, 200, "+Chr('"')+"window_1"+Chr('"')+ ")" + #LF$ +
"Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow"

RunProgram(#PB_Compiler_Home+"/Compilers/pbcompiler", "/EXE"+ text$, "", #PB_Program ...