Search found 3134 matches
- 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.
- 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...
- Wed Mar 20, 2024 3:07 am
- Forum: Coding Questions
- Topic: PDF Document
- Replies: 10
- Views: 528
Re: PDF Document
Thanks so much, TassyJim! 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
- 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...
- Wed Mar 20, 2024 12:12 am
- Forum: Coding Questions
- Topic: PDF Document
- Replies: 10
- Views: 528
- 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!
- Tue Mar 19, 2024 4:50 am
- Forum: Windows
- Topic: Refresh Web Page
- Replies: 3
- Views: 173
Re: Refresh Web Page
I'd use PostEvent() from inside the thread then, to simulate the button event.IdeasVacuum wrote: ↑Tue Mar 19, 2024 4:27 amWorks OK outside of the thread (via a button event for example)
From what I've always read here, you're not supposed to update gadgets from inside a thread.
- 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.
- Mon Mar 18, 2024 2:58 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
It's as simple as this -> https://www.purebasic.fr/english/viewto ... 02#p542202
- 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! Always a silver lining.
- 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.
- 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.
- 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 ...
- Fri Mar 15, 2024 3:56 am
- Forum: Coding Questions
- Topic: Fading a sound's volume using MiniAudio
- Replies: 9
- Views: 387
- 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.