Search found 3134 matches

by BarryG
Wed Mar 20, 2024 6:07 am
Forum: Windows
Topic: [Solved] Get REAL logged-in user name
Replies: 6
Views: 401

Re: Get REAL logged-in user name

That doesn't help unfortunately. It also shows the admin name if you run it as admin when logged in as a standard account.
by BarryG
Wed Mar 20, 2024 3:11 am
Forum: Windows
Topic: [Solved] Get REAL logged-in user name
Replies: 6
Views: 401

[Solved] Get REAL logged-in user name

Consider this code when running from a standard non-admin logged-in account called "User": Debug UserName() ; Shows "User" But if I enable admin rights and run it from the "User" account, it shows "Admin" instead. My app needs to work with the user's profile t...
by BarryG
Wed Mar 20, 2024 3:07 am
Forum: Coding Questions
Topic: PDF Document
Replies: 10
Views: 528

Re: PDF Document

Thanks so much, TassyJim! :D I shortened it to this for my needs:

Code: Select all

UseJPEGImageDecoder()
LoadImage(0,"d:\image.jpg")

If StartVectorDrawing(PdfVectorOutput("d:\test.pdf",ImageWidth(0),ImageHeight(0)))
  DrawVectorImage(ImageID(0))
  StopVectorDrawing()
EndIf
by BarryG
Wed Mar 20, 2024 12:33 am
Forum: Feature Requests and Wishlists
Topic: WebGadget: Get plain text
Replies: 0
Views: 249

WebGadget: Get plain text

With the WebGadget, we can use GetGadgetItemText() with #PB_Web_HtmlCode and #PB_Web_SelectedText, but I'd like to also have #PB_Web_PlainText to just get the plain text from it. Similar to #PB_Web_SelectedText but without needing to make a selection. I currently have a largish workaround, so this r...
by BarryG
Wed Mar 20, 2024 12:12 am
Forum: Coding Questions
Topic: PDF Document
Replies: 10
Views: 528

Re: PDF Document

spikey wrote: Fri Mar 15, 2024 12:00 amPDF output for Windows is new for 6.10
Can we use this to convert a loaded image into a PDF document? Would be amazing if so!
by BarryG
Tue Mar 19, 2024 6:48 am
Forum: Windows
Topic: Refresh Web Page
Replies: 3
Views: 173

Re: Refresh Web Page

Glad to hear it! :)
by BarryG
Tue Mar 19, 2024 4:50 am
Forum: Windows
Topic: Refresh Web Page
Replies: 3
Views: 173

Re: Refresh Web Page

IdeasVacuum wrote: Tue Mar 19, 2024 4:27 amWorks OK outside of the thread (via a button event for example)
I'd use PostEvent() from inside the thread then, to simulate the button event.

From what I've always read here, you're not supposed to update gadgets from inside a thread.
by BarryG
Mon Mar 18, 2024 10:41 am
Forum: Coding Questions
Topic: I need native image drawn on a ButtonGadget
Replies: 11
Views: 605

Re: I need native image drawn on a ButtonGadget

That was just a link to someone else's code. No PayPal needed. :)
by BarryG
Mon Mar 18, 2024 2:51 am
Forum: Off Topic
Topic: The US government asks not to use C/C++ due to memory vulnerabilities.
Replies: 15
Views: 1082

Re: The US government asks not to use C/C++ due to memory vulnerabilities.

Sounds like the perfect marketing opportunity for Fred: praise the benefits of coding in BASIC instead of C/C++, because he can truthfully advertise that BASIC isn't part of the US government's concerns! :lol: Always a silver lining.
by BarryG
Mon Mar 18, 2024 2:04 am
Forum: Off Topic
Topic: Risks and Benefits
Replies: 7
Views: 958

Re: Risks and Benefits

I had the "0x80070643" update error the other day and Windows kept saying it'd try again. I did nothing about it (literally; I didn't resize any partition or try to manually update again) and now the error's gone and my PC is updated. Go figure. Win 10 Pro.
by BarryG
Fri Mar 15, 2024 6:21 am
Forum: Coding Questions
Topic: Installing 6.10 betas always complains about McAfee running
Replies: 9
Views: 320

Re: Installing 6.10 betas always complains about McAfee running

I used to turn off cloud-delivered too, but then realized I need to experience what my users are going to experience. No point in me putting my head in the sand and pretending all's well when my users are getting cloud-delivered warnings.
by BarryG
Fri Mar 15, 2024 6:19 am
Forum: Coding Questions
Topic: Fading a sound's volume using MiniAudio
Replies: 9
Views: 387

Re: Fading a sound's volume using MiniAudio

From what I could see, that doesn't provide an easy way to gradually change the volume like MiniAudio seems to, because there's no way to query the current volume :( But it's your app, so you've set the volume and would know the current volume level. Or are you talking about controlling the volume ...
by BarryG
Fri Mar 15, 2024 3:56 am
Forum: Coding Questions
Topic: Fading a sound's volume using MiniAudio
Replies: 9
Views: 387

Re: Fading a sound's volume using MiniAudio

Quin wrote: Fri Mar 15, 2024 3:54 amIn my app, I want to gradually fade the volume of a sound
Since it's a sound in your own app, why not use the SoundVolume() command?
by BarryG
Fri Mar 15, 2024 2:08 am
Forum: General Discussion
Topic: WebGadget vs WebViewGadget
Replies: 2
Views: 292

WebGadget vs WebViewGadget

Why two gadgets? Don't they both do the same thing (display a web page)? When should I be using one instead of the other? So confusing.