Search found 402 matches

by breeze4me
Thu Mar 28, 2024 9:15 am
Forum: Coding Questions
Topic: Problem with Mouse and F10 key ...
Replies: 16
Views: 418

Re: Problem with Mouse and F10 key ...

Problem 1: For my program, I want to use the keyboard function keys for selection of my SUB programs. If i use F1...F9 there is no problem and it work very well, but if I use F10, it blocks the mouse and other Function keys If I push again F10 all works well ... PB5.73x64 / Win 10 pro Try this. Pro...
by breeze4me
Mon Mar 25, 2024 5:09 am
Forum: Tricks 'n' Tips
Topic: Edge WebGadget - Set BrowserArguments, UserDataFolder (Windows)
Replies: 4
Views: 337

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

Thank you breeze4me for the example of setting webgadget parameters at startup. Unfortunately, I was unable to test the second example due to a lack of intelligence and now I feel completely stupid. :cry: Would you be so kind as to add a few more explanations? What happens to the code? How can I te...
by breeze4me
Sun Mar 24, 2024 9:05 am
Forum: Coding Questions
Topic: How to catch the keyboard layout switch event?
Replies: 4
Views: 256

Re: How to catch the keyboard layout switch event?

I haven't tried it with PB, but the answer below might be helpful. https://stackoverflow.com/questions/8289492/find-out-when-keyboard-layout-is-changed If I open the cmd.exe console, I can't get the keyboard layout even though the system tray text switches The console part is MS's issue. https://git...
by breeze4me
Sat Mar 23, 2024 4:39 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 286
Views: 36318

Re: PureBasic 6.10 beta 9 is out !

the new 3D functions are not integrated with C backend + optimization, 6.1 is slightly slower than 6.0 (between 10 and 20%) if you have the 2 versions, can you confirm? a little code for comparison: 6.10 b9.3 x64 C + optimized: 1644 6.0 x64 C + optimized: 2895 6.10 b9.3 x86 C + optimized: 2343 6.0 ...
by breeze4me
Fri Mar 22, 2024 6:38 pm
Forum: Bugs - Windows
Topic: [Done] 6.10 b9 Edge WebGadget Get,SetGadgetAttribute IMA
Replies: 2
Views: 205

Re: 6.10 b9 Edge WebGadget Get,SetGadgetAttribute IMA

Fixed. You can download the new Windows beta on your account. The errors still there in new beta 9 x86 x64. Never mind the quote below. It's my mistake. :oops: BTW, on my PC with Visual Studio 2022 installed, an error occurs with new PB 6.10 b9 x64. I can't compile any code. x86 is OK. It seems to ...
by breeze4me
Fri Mar 22, 2024 5:10 pm
Forum: Tricks 'n' Tips
Topic: Edge WebGadget - Set BrowserArguments, UserDataFolder (Windows)
Replies: 4
Views: 337

Edge WebGadget - Set BrowserArguments, UserDataFolder (Windows)

Setting the arguments (optional switches) at a WebGadget launch is simple, as they can be specified via a single environment variable. SetEnvironmentVariable("WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS", ~"--inprivate --disk-cache-dir=\"" + GetTemporaryDirectory() + "WebView...
by breeze4me
Fri Mar 22, 2024 12:15 pm
Forum: Bugs - Windows
Topic: [Done] 6.10 b9 OpenXMLDialog IMA
Replies: 3
Views: 192

[Done] 6.10 b9 OpenXMLDialog IMA

An IMA error occurs with 6.10 b9 x64. #Dialog = 0 #Xml = 0 XML$ = "<window id='#PB_Any' name='test' text='Gridbox' minwidth='auto' minheight='auto' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>" + " <gridbox columns='6'>" + " <button text...
by breeze4me
Fri Mar 22, 2024 11:49 am
Forum: Bugs - Windows
Topic: [PB6.10B9] Problem #PB_Web_SelectedText and #PB_Web_Edge
Replies: 3
Views: 186

Re: [PB6.10B9] Problem #PB_Web_SelectedText and #PB_Web_Edge

An IMA error occurs with 6.10 b9 x86. Procedure Event_Browser() Select EventType() Case #PB_EventType_PopupMenu Debug GetGadgetItemText(0, #PB_Web_PageTitle ) Debug GetGadgetItemText(0, #PB_Web_SelectedText ) EndSelect EndProcedure If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_S...
by breeze4me
Fri Mar 22, 2024 11:44 am
Forum: Bugs - Windows
Topic: [Done] 6.10 b9 Edge WebGadget Get,SetGadgetAttribute IMA
Replies: 2
Views: 205

[Done] 6.10 b9 Edge WebGadget Get,SetGadgetAttribute IMA

GetGadgetAttribute: It terminates silently with beta 9 x64, an IMA error occurs with x86. OpenWindow(0, 0, 0, 800, 600, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ButtonGadget(0, 20, 4, 100, 24, "Get scroll pos") WebGadget(3, 10, 30, 780, 550, "https://www.pureba...
by breeze4me
Thu Mar 21, 2024 3:43 pm
Forum: Coding Questions
Topic: Problem with Mouse and F10 key ...
Replies: 16
Views: 418

Re: Problem with Mouse and F10 key ...

I tested and I have the same problem with PB 5.73 x64, but 6.10 b8 has no problem.
This seems to be a bug in 5.73.
by breeze4me
Thu Mar 21, 2024 1:09 pm
Forum: Coding Questions
Topic: Do not receive event from BindWebViewCallback
Replies: 2
Views: 161

Re: Do not receive event from BindWebViewCallback

Use the function name specified in the callback as "window.FunctionName(args)" in JavaScript. str$ = ~"<!DOCTYPE html>" + ~" <html>" + ~" <body>" + ~" <button type=\"button\" id=\"Mein_Button\">Mein Button</button>" + ~" </bo...
by breeze4me
Mon Mar 18, 2024 4:39 pm
Forum: Bugs - Windows
Topic: [Done] 6.10 b8 Edge WebGadget scroll position reset
Replies: 1
Views: 131

[Done] 6.10 b8 Edge WebGadget scroll position reset

The current scroll position is reset to zero based on the X,Y scroll direction with the Edge flag. That means, scrolling in the x direction resets the y position to 0, and scrolling in the y direction resets the x position to 0. OpenWindow(0, 0, 0, 800, 600, "", #PB_Window_SystemMenu | #PB...
by breeze4me
Sun Mar 17, 2024 11:00 am
Forum: Tricks 'n' Tips
Topic: Edge WebGadget capture (Windows)
Replies: 0
Views: 161

Edge WebGadget capture (Windows)

Method 1 is a bit imperfect. On some sites, some elements are sometimes not captured. On the other hand, method 2 is a bit more tricky, but it captures the page properly. Note: The page must be completely loaded to be captured properly. Tested with PB 6.10 b8 x64 on Windows 10 Home 22H2 build 19045....
by breeze4me
Sat Mar 16, 2024 10:25 pm
Forum: Coding Questions
Topic: New Edge WebGadget and old IE Functions
Replies: 9
Views: 904

Re: New Edge WebGadget and old IE Functions

... take a web page snapshot? It seems to work almost as well. However, on some sites, certain elements don't seem to be captured properly. Tested on Windows 10 Home 22H2 build 19045.4170 x64. Edit: Improved code. https://www.purebasic.fr/english/viewtopic.php?t=83833 EnableExplicit UsePNGImageDeco...
by breeze4me
Thu Mar 14, 2024 10:25 am
Forum: Coding Questions
Topic: Help with macro
Replies: 3
Views: 151

Re: Help with macro

I think you mean something like this. However, PB is not an interpreter language like VB, so variables that will be used must be defined in advance, such as "Define". Alternatively, you can use a map variable. toto.s = "variable1" Define variable1 Runtime variable1 SetRuntimeInte...