
Search found 55 matches
- Sat May 02, 2020 5:59 pm
- Forum: Coding Questions
- Topic: flashing text for TextGadget?
- Replies: 2
- Views: 1244
Re: flashing text for TextGadget?
Thank you RASHAD 

- Sat May 02, 2020 2:59 pm
- Forum: Coding Questions
- Topic: flashing text for TextGadget?
- Replies: 2
- Views: 1244
flashing text for TextGadget?
Is there an easy way with PB to flash the text of a TextGadget (or for any other gadget with text)?
for example;
If OpenWindow(0, 0, 0, 270, 160, "flash text?", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(0, 10, 10, 250, 20, "want to flash this text")
Repeat : Until ...
for example;
If OpenWindow(0, 0, 0, 270, 160, "flash text?", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(0, 10, 10, 250, 20, "want to flash this text")
Repeat : Until ...
- Tue Jan 07, 2020 5:08 pm
- Forum: Tricks 'n' Tips
- Topic: Conduct DNS Leak Test on VPN via PureBasic and Powershell
- Replies: 0
- Views: 1866
Conduct DNS Leak Test on VPN via PureBasic and Powershell
If you are using a VPN service with a software client, e.g. PrivateInternetAccess, one of the important things you need to do is make sure your real ISP DNS address is not disclosed. Most VPN software services software provide a VPN DNS to use or some sort of DNS leak prevention.
A DNS leak refers ...
A DNS leak refers ...
- Mon Mar 06, 2017 7:13 pm
- Forum: General Discussion
- Topic: removing key word lines from text file
- Replies: 5
- Views: 3001
Re: removing key word lines from text file
Good suggestions all, thanks folks. 
After checking out each on I ended up using the regex method.

After checking out each on I ended up using the regex method.
- Sun Mar 05, 2017 4:00 pm
- Forum: General Discussion
- Topic: removing key word lines from text file
- Replies: 5
- Views: 3001
removing key word lines from text file
If I have this, for example, in a text file
The dog and the cat ran
The cat and the bird
The dog and the bird ran
The mouse and the cat ran
The dog and the mouse
What is the best way to remove any lines (the complete line) in the text file that contain the keyword dog without having to resort ...
The dog and the cat ran
The cat and the bird
The dog and the bird ran
The mouse and the cat ran
The dog and the mouse
What is the best way to remove any lines (the complete line) in the text file that contain the keyword dog without having to resort ...
- Wed Jan 11, 2017 7:46 pm
- Forum: Coding Questions
- Topic: Reading strings into an array
- Replies: 6
- Views: 2922
Re: Reading strings into an array
@ Josh & ebs
Did not even think about Maps. It works fine though, however, I ended up going with the array after all. When I expand this thing later i'll probably move to Maps instead. Thanks for your excellent suggestions and replies :)
@ SparrowhawkMMU
Yeah, I sort of miss an 'InArray ...
Did not even think about Maps. It works fine though, however, I ended up going with the array after all. When I expand this thing later i'll probably move to Maps instead. Thanks for your excellent suggestions and replies :)
@ SparrowhawkMMU
Yeah, I sort of miss an 'InArray ...
- Wed Jan 11, 2017 9:55 am
- Forum: Coding Questions
- Topic: Reading strings into an array
- Replies: 6
- Views: 2922
Reading strings into an array
anyway, I have a For - Next loop that makes six passes and digs out strings from something else for a total of six strings but I want to make sure that a string is only put in the array once and there are no duplicates in the array. So, how do I place strings into an array yet ensure a duplicate of ...
- Thu Jan 05, 2017 1:07 pm
- Forum: Tricks 'n' Tips
- Topic: Get Global IP address
- Replies: 12
- Views: 6369
Re: Get Global IP address
@blueb,
sorry 'bout that, got left out of the copy-n-paste to the post - the GetValidateIPAddress() procedure is:
Procedure.b GetValidateIPAddress(ipadrtoval$)
; will validate IPv4 and IPv6
ipadr$ = Chr(34) + Chr(39) + ipadrtoval$ + Chr(39) + Chr(34)
OutCmd$ = ""
KeepOutCmdA ...
sorry 'bout that, got left out of the copy-n-paste to the post - the GetValidateIPAddress() procedure is:
Procedure.b GetValidateIPAddress(ipadrtoval$)
; will validate IPv4 and IPv6
ipadr$ = Chr(34) + Chr(39) + ipadrtoval$ + Chr(39) + Chr(34)
OutCmd$ = ""
KeepOutCmdA ...
- Wed Jan 04, 2017 9:33 pm
- Forum: Windows
- Topic: Large Capacity Hard Drive, Still not recognized after GPT
- Replies: 3
- Views: 2982
Re: Large Capacity Hard Drive, Still not recognized after GP
For GPT to work you need to have an UEFI compliant BIOS and motherboard, and the drive must support UEFI. You can only boot from GPT on UEFI based computers running 64 bit versions of Windows Vista, 7, 8, 8.1, or Windows 10 (and the corresponding server versions). All versions of Windows Vista, 7, 8 ...
- Wed Jan 04, 2017 9:24 pm
- Forum: General Discussion
- Topic: _IP_ADAPTER_ADDRESSES ????
- Replies: 1
- Views: 16341
Re: _IP_ADAPTER_ADDRESSES ????
Something in this thread might help you out > http://www.purebasic.fr/english/viewtopic.php?f=12&t=47279&hilit=FirstMulticastAddress - found via forum search, for example
Structure IF_LUID ;->Structure IF_LUID
Reserved.q[24]
NetLuidIndex.q[24]
IfType.q[16]
EndStructure
Structure IP_ADAPTER ...
Structure IF_LUID ;->Structure IF_LUID
Reserved.q[24]
NetLuidIndex.q[24]
IfType.q[16]
EndStructure
Structure IP_ADAPTER ...
- Wed Jan 04, 2017 7:53 pm
- Forum: Tricks 'n' Tips
- Topic: Get Global IP address
- Replies: 12
- Views: 6369
Re: Get Global IP address
Or you could do what i've been using, for public IPv4 or IPv6 address.
The PureBasic versions:
Procedure.s GetPubIPv4Address()
; https://www.ipify.org/
InitNetwork()
*Buffer = ReceiveHTTPMemory("https://api.ipify.org?format=json")
If *Buffer
ParseJSON(0, PeekS(*Buffer, MemorySize(*Buffer ...
The PureBasic versions:
Procedure.s GetPubIPv4Address()
; https://www.ipify.org/
InitNetwork()
*Buffer = ReceiveHTTPMemory("https://api.ipify.org?format=json")
If *Buffer
ParseJSON(0, PeekS(*Buffer, MemorySize(*Buffer ...
- Wed Dec 28, 2016 6:07 pm
- Forum: Coding Questions
- Topic: Adding icon to application?
- Replies: 6
- Views: 2535
Re: Adding icon to application?
Ok, located the issue, kind of. I uninstalled Purebasic then re-installed it and issue is gone.
- Sun Dec 25, 2016 2:27 pm
- Forum: Coding Questions
- Topic: Adding icon to application?
- Replies: 6
- Views: 2535
Re: Adding icon to application?
that's what I mean I guess, mine doesn't do that. When I compile the app the icon never shows up as the icon for the application. It will show as the icon for the app if the icon file is in the same folder as the compiled app but once the icon file is removed the app shows no icon. This is not ...
- Sat Dec 24, 2016 10:00 pm
- Forum: Coding Questions
- Topic: Adding icon to application?
- Replies: 6
- Views: 2535
Re: Adding icon to application?
that doesn't work like I want. It doesn't become part of the application, if the icon file is removed or moved the application no longer has an icon representing it.
- Sat Dec 24, 2016 4:19 pm
- Forum: Coding Questions
- Topic: Adding icon to application?
- Replies: 6
- Views: 2535
Adding icon to application?
I know in the compiler options there is a 'use icon' thing but this does not use the icon unless the icon to be used is in the same folder as the application. So how do I encode the icon into the application so the application has an icon without having to put the icon in the same folder?