Search found 329 matches

by Piero
Sat Apr 20, 2024 9:33 pm
Forum: Coding Questions
Topic: Find the letter of drive by his name
Replies: 1
Views: 78

Re: Find the letter of drive by his name

Buy a Mac? :mrgreen:
by Piero
Sat Apr 20, 2024 4:26 pm
Forum: Coding Questions
Topic: WebGadget stuff
Replies: 2
Views: 93

Re: WebGadget stuff

Seems it has some certificate server problems: 2024-04-20 17:24:27.073 webview[61977:970017] nil host used in call to allowsSpecificHTTPSCertificateForHost 2024-04-20 17:24:27.073 webview[61977:970017] nil host used in call to allowsAnyHTTPSCertificateForHost: Edit: doesn't seem to be a problem: was...
by Piero
Sat Apr 20, 2024 3:26 pm
Forum: Coding Questions
Topic: WebGadget stuff
Replies: 2
Views: 93

WebGadget stuff

I have Little Snitch (Mac) so I can easily manage (allow/deny) connections, and saw it behaves well.
But where does its stuff (cookies, caches etc.) end up (for each OS)?
In some temporary folder? RAM?
by Piero
Sat Apr 20, 2024 2:57 pm
Forum: Coding Questions
Topic: Webview and Javascript
Replies: 4
Views: 236

Re: Webview and Javascript

Don't take me wrong; it's just for laughs ;)

Code: Select all

1 functionnal
; Line 1: Syntax Error
by Piero
Sat Apr 20, 2024 11:11 am
Forum: Coding Questions
Topic: Webview & ""
Replies: 16
Views: 494

IDE Hijack

I just panicked because ⌘TAB wasn't working (PB was frontmost app)…
I now think that probably yesterday I was having IDE "keyboard hijacking" problems…

So, if you are testing something with shortcuts, don't despair in case of weirdness happening; retry after restarting PB!
by Piero
Fri Apr 19, 2024 5:46 pm
Forum: Coding Questions
Topic: Webview & ""
Replies: 16
Views: 494

And…

The moral of the story is:
there's a small bug in ButtonGadget's Help :P
by Piero
Fri Apr 19, 2024 4:35 pm
Forum: Coding Questions
Topic: Webview & ""
Replies: 16
Views: 494

Re: Webview & ""

Interesting I simplified this way being this a Mac test: ;If OpenWindow... Enumeration #Kbd_ret EndEnumeration AddKeyboardShortcut(0, #PB_Shortcut_Return, #Kbd_ret) Repeat Event = WaitWindowEvent() Select Event Case #PB_Event_Gadget Select EventGadget() Case 1 SetGadgetState(10, #PB_Web_Back) Case 2...
by Piero
Fri Apr 19, 2024 2:24 pm
Forum: Coding Questions
Topic: Webview & ""
Replies: 16
Views: 494

Re: Webview & ""

Yep I think I messed up trying to catch quit, return and others in a test...
Anyway it was a good thing; I learned some stuff,
Thanks to all!
by Piero
Fri Apr 19, 2024 1:58 pm
Forum: Coding Questions
Topic: Webview & ""
Replies: 16
Views: 494

Simple Help PB/Forum

Finally I can use ⌘C on Help! ;) ; IDE tool with argument: %WORD Procedure simpleShell(ShellCommand$) Protected shell shell = RunProgram("/bin/sh","","", #PB_Program_Open|#PB_Program_Write) If shell WriteProgramStringN(shell,ShellCommand$) WriteProgramData(shell,#PB_Pro...
by Piero
Fri Apr 19, 2024 1:56 pm
Forum: Coding Questions
Topic: Webview & ""
Replies: 16
Views: 494

Re: Webview & ""

mk-soft wrote: Fri Apr 19, 2024 12:47 pmNot testet ...
Gedanken Anyway!
What confused me is that it's normally very easy:

Code: Select all

Until event = #PB_Event_CloseWindow or EventMenu() = #PB_Menu_Quit
by Piero
Fri Apr 19, 2024 11:04 am
Forum: Coding Questions
Topic: Webview & ""
Replies: 16
Views: 494

Re: Webview & ""

Mindphazer wrote: Fri Apr 19, 2024 10:09 am The compiler explains : "not cannot be used with strings"
But don't you think it's strange being that you can use if... ELSE?
by Piero
Fri Apr 19, 2024 10:44 am
Forum: Coding Questions
Topic: Webview & ""
Replies: 16
Views: 494

Re: Webview & ""

Works! Thanks! #helppath$="/Applications/PureBasic.app/Contents/Resources/help/purebasic/" #ind=#helppath$+"reference/reference.html" Procedure.s sh(search$) Protected Output$, shell shell = RunProgram("/bin/sh","","", #PB_Program_Open|#PB_Program_Wr...
by Piero
Fri Apr 19, 2024 9:54 am
Forum: Coding Questions
Topic: Webview & ""
Replies: 16
Views: 494

Webview & ""

How do I "catch" a ⌘Q (quit) shortcut in the WebBrowser.pb example? It "should be already there as #PB_Menu_Quit"… am I missing something? :oops: Also, mostly out of curiosity: s$="" if s$ debug "not empty" else debug "empty" endif if not s$ : debug ...
by Piero
Wed Apr 17, 2024 11:41 am
Forum: Mac OSX
Topic: Good News! Fuzzy Completion!
Replies: 14
Views: 976

Re: Good News! Fuzzy Completion!

since v6, the list of authorized constants is displayed for function Arguments, too bad it requires typing "#pb_" (especially for beginners) Yep, that's why I think fuzzy completion can be useful; it just takes some tries to learn how to type good "abbreviations"… Dedicated to y...
by Piero
Tue Apr 16, 2024 9:33 pm
Forum: Bugs - Mac OSX
Topic: [Done] 6.10 LTS Crashes on Sonoma 14.4.1
Replies: 23
Views: 1137

Re: 6.10 LTS Crashes on Sonoma 14.4.1

Fred wrote: Fri Apr 12, 2024 5:55 pm The new package is up, don't hesitate to test to see if it works as expected!
WTF Fred; you are being too gentle with freeware ppl (just for laughs)