Search found 1241 matches

by Kiffi
Sun Apr 14, 2024 1:12 am
Forum: Coding Questions
Topic: Can't fetch a specific webpage.
Replies: 12
Views: 410

Re: Can't fetch a specific webpage.

Works here without any problems (Win 10 pro, PB V6.10)
by Kiffi
Sat Apr 13, 2024 2:10 am
Forum: Coding Questions
Topic: adddate() add 1 day, increases month by 3?
Replies: 2
Views: 154

Re: adddate() add 1 day, increases month by 3?

You have swapped the AddDate() parameters
AddDate()-Help wrote:
Syntax: Date = AddDate(Date, Type, Value)
AddDate( test, 1, #PB_Date_Day ) -> AddDate( test, #PB_Date_Day, 1 )
by Kiffi
Sun Apr 07, 2024 1:07 am
Forum: Coding Questions
Topic: What variable type is "?" for CatchImage?
Replies: 7
Views: 334

Re: What variable type is "?" for CatchImage?

CatchImage() wrote:
Note: The "?" is a pointer to a label.
by Kiffi
Tue Apr 02, 2024 4:48 pm
Forum: Coding Questions
Topic: Dual Support PB604 and PB610 Identification
Replies: 14
Views: 575

Re: Dual Support PB604 and PB610 Identification

Michael Vogel wrote: Tue Apr 02, 2024 4:44 pmBrute short version... :lol:

Code: Select all

a=(#PB_Compiler_Processor-1)/2
Debug Mid("ARMX",(~a&2)<<1,3) + Str(32<<Bool(a%3))
:shock:
by Kiffi
Wed Mar 27, 2024 9:01 am
Forum: Coding Questions
Topic: IMA error with ExamineIPAddresses(#PB_Network_IPv4)
Replies: 9
Views: 306

Re: IMA error with ExamineIPAddresses(#PB_Network_IPv4)

Tranquil wrote: Wed Mar 27, 2024 8:59 amThe code you posted works fine for me in both cases:
-> Connected to VPN: Shows internal IPv4 (Using PulseSecure as VPN Client)
-> not Connected to VPN: Shows IPv4 of my network
same here.

// Edit: Sorry, I missed the Linux part. :oops:
by Kiffi
Mon Mar 25, 2024 10:17 pm
Forum: Coding Questions
Topic: Using JQuery with WebViewExecuteScript possible?
Replies: 3
Views: 191

Re: Using JQuery with WebViewExecuteScript possible?

Now I'm waiting until the DOM content is completely loaded and send a message back to my PB instance. here's an example to wait until jQuery is ready: Enumeration #Window #WebViewGadget EndEnumeration Procedure jQueryIsReady(JsonParameters$) WebViewExecuteScript(#WebViewGadget, "$('#testDiv')....
by Kiffi
Mon Mar 25, 2024 2:51 pm
Forum: Coding Questions
Topic: Using JQuery with WebViewExecuteScript possible?
Replies: 3
Views: 191

Re: Using JQuery with WebViewExecuteScript possible?

Perhaps you have not taken into account that jQuery needs a little time before it is ready for use? Enumeration #Window #WebViewGadget #Button EndEnumeration Procedure ButtonGadgetEvent() WebViewExecuteScript(#WebViewGadget, "$('#testDiv').addClass('blueBackground')") EndProcedure HTML.s =...
by Kiffi
Sat Mar 23, 2024 12:12 am
Forum: Tricks 'n' Tips
Topic: Edge WebGadget - Set BrowserArguments, UserDataFolder (Windows)
Replies: 4
Views: 392

Re: Edge WebGadget - Set BrowserArguments, UserDataFolder (Windows)

breeze4me wrote: Fri Mar 22, 2024 5:10 pmSetting the arguments (optional switches) at a WebGadget launch is simple, as they can be specified via a single environment variable.
Very cool! Thanks! Image
by Kiffi
Tue Mar 19, 2024 11:24 am
Forum: Coding Questions
Topic: i need a simple routine to convert unix-time to date-time
Replies: 3
Views: 174

Re: i need a simple routine to convert unix-time to date-time

Code: Select all

UnixTime = 1394928000

Debug FormatDate("%dd.%mm.%yyyy %hh:%ii", UnixTime)

BTW: It's the 16 march 2014 0 hours and 0 minutes
by Kiffi
Thu Mar 14, 2024 7:18 pm
Forum: Windows
Topic: Refresh/Reload a web page
Replies: 7
Views: 238

Re: Refresh/Reload a web page

IdeasVacuum wrote: Thu Mar 14, 2024 6:43 pmYes, if by new one you mean PB6.04 LTS.
No, I mean the WebGadget that is delivered with version 6.10. If you add the #PB_Web_Edge flag there, WebView2 is used (under Windows). This is pretty much the most modern browser engine you can use.
by Kiffi
Thu Mar 14, 2024 1:39 pm
Forum: Windows
Topic: Refresh/Reload a web page
Replies: 7
Views: 238

Re: Refresh/Reload a web page

IdeasVacuum wrote: Thu Mar 14, 2024 1:03 pmIdeal solution would be to use the WebGadget but it draws the web pages very badly :mrgreen:
even the new one?
by Kiffi
Fri Feb 23, 2024 10:28 am
Forum: Coding Questions
Topic: Close button intermittently doesn't close
Replies: 17
Views: 668

Re: Close button intermittently doesn't close

My guess: The use of several WaitWindowEvents.

(But without code it is impossible to say exactly.)
by Kiffi
Sat Feb 10, 2024 11:19 am
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 325
Views: 40442

Re: PureBasic 6.10 beta 6 is out !

Fred wrote: Sat Feb 10, 2024 10:56 am

Code: Select all

Added: #PB_WebView_ICoreController attribute support WebGaget() and WebViewGadget()
Added: All ICoreWebView2 interfaces and constants as residents, thanks to Justin (Windows)
Thanks a lot! Image
by Kiffi
Mon Feb 05, 2024 9:54 am
Forum: Bugs - IDE
Topic: [PB610b5] Is the IDE a sticky window?
Replies: 5
Views: 465

Re: [PB610b5] Is the IDE a sticky window?

I cannot confirm this. I doubt that this is a bug.
by Kiffi
Mon Jan 29, 2024 11:14 am
Forum: Tricks 'n' Tips
Topic: Japanese ANIME quality up on streming
Replies: 11
Views: 1522

Re: Japanese ANIME quality up on streming

The code only works if you compile it under a full moon.