Windows Services & Other Stuff

Developed or developing a new product in PureBasic? Tell the world about it.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Hi ricardo,

Please STOP quoting/including my previous post every time you have a request. If there is something relevant, quote the relevant part not the entire post.

In addition, numerous times you have either posted a question to the forum or sent me a private message, and I have responded. Weeks have passed without so much as an acknowledgment, or in the case of a private message, even bothered to read my response. At which point I have deleted my post, believing it was no longer needed or warranted.

In answer to the error you are receiving, I suspect it has to do with the outdated version of the script you are running. Since your last download there have been dozens of updates and improvements. You would have access to these updates if you had bothered to read/respond to my private messages...

The email address you provided does not work, please send me a private message with an alternate email address so that I can respond with an access key to the latest downloads.

NOTES:
1. If you over-use the script, Google will block your IP Address from their services for an indeterminate amount of time.
2. Because the code uses screen-scrapes to automate the Google translate service, YOU will need to patch the script after any change to their website.
Last edited by JHPJHP on Thu May 27, 2021 3:47 pm, edited 1 time in total.
ricardo
Addict
Addict
Posts: 2402
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: Windows Services & Other Stuff

Post by ricardo »

JHPJHP wrote:In addition, numerous times you have either posted a question to the forum or sent me a private message, and I have responded. Weeks have passed without so much as an acknowledgment, or in the case of a private message, even bothered to read my response. At which point I have deleted my post, believing it was no longer needed or warranted.
Sorry, thatwas because i have had personal problems in my family.

I download the script last week, when make the donation.

Last time i trie3d to sent you a PM i receive a prompt telling me that it was not possible, becausethe user can-t receive PM. I will try again.

Thanks in advance, Best Regards
ARGENTINA WORLD CHAMPION
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Hi ricardo,

Sorry to hear about your family troubles.

I resent my original email with your access key to the addresses you provided.

I'm not sure how you downloaded the latest updates last week if you didn't receive my email containing your access key?

Anyways, download the latest package using the link I sent you, and let me know if the problem is resolved.
ricardo
Addict
Addict
Posts: 2402
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: Windows Services & Other Stuff

Post by ricardo »

JHPJHP wrote:Hi ricardo,

Sorry to hear about your family troubles.

I resent my original email with your access key to the addresses you provided.

I'm not sure how you downloaded the latest updates last week if you didn't receive my email containing your access key?

Anyways, download the latest package using the link I sent you, and let me know if the problem is resolved.
Thanks.

I do receive the original email with the keys wen donate.

Today i dont receive your new email, i reply today to your original email with the keys.

Best Regards
ARGENTINA WORLD CHAMPION
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Windows Services & Other Stuff

Post by JHPJHP »

Updated (\Other_Stuff\Odometer\Odometer.pb):
- added additional options
- added background image scaling script
- set DPI Aware compiler option
- various code improvements

Odometer
Fairly basic odometer script displaying a Classic Arcade font with some standard options.

User-Defined Options
- #NUM_DIGITS = 6 : Min 1 / Max 18 : 999999999999999999
- #NUM_START = 290 : Greater or equal to 0
- #NUM_RESTART = 300 : Length < #NUM_DIGITS = #DISABLE_COLOR, set 0 to ignore
- #FONT_SIZE = 100 : Window / Gadget will resize to fit
- #FLIP_SPEED = 4 : Increase for faster flip, set #FONT_SIZE - 1 for no flip
- #FLIP_DELAY = 20 : Delay between flip, set 0 for continuous scroll
- #FLIP_DOWN = #True : Change the flip direction
- #FLIP_FADE = #True : Fade in / out flip numbers
- #FLIPIN_COLOR = $0000FF : Change the flip-in digit color
- #FLIPOUT_COLOR = $00FFFF : Change the flip-out digit color
- #DISABLE_COLOR = $F0F0F0 : Change the disabled digit color, set -1 to ignore
- #GRADIENT_COLOR = $00FF00 : Change the static digit gradient color, set -1 to ignore
- #BORDER_COLOR = $FFFFFF : Change the digit border color, set -1 to ignore
- #FRONT_COLOR = $2E802E : Change the static digit color
- #BACK_COLOR = $000000 : Change the background color
- #BACK_IMAGE = #True : Override background color with a per digit "tiled" image *

NB*: Replace /includes/background.jpg with any JPG (texture) image; image will be resized and cropped for best effect.

Animation created using Video Snipping Tool
Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated (\Other_Stuff\DigitalClock\DigitalClock.pb):
- added numerous options
- added Command Parameters
- added SysTray icon/menu
- set DPI Aware compiler option

Fairly basic digital clock I wrote a number of years ago, updated with a couple new features.

Static Startup Options
- DRAW_CLOCK = #False : Edit the file includes/clock.pbi to draw custom shapes used to form the clock
- CLOCK_SIZE = #CLOCK_SIZE_MEDIUM : #CLOCK_SIZE_SMALL, #CLOCK_SIZE_MEDIUM, #CLOCK_SIZE_LARGE
- BLINK_SEPERATORS = #True : Show blinking separators
- FOCUS_INDICATORS = #True : Show focus / border indicators in transparent mode

Dynamic Startup Options
- ANCHOR_CLOCK = #True : Anchored clock does not interact with other windows, mouse-clicks, etc.
- FOREGROUND_COLOR = $30FF00 : Set foreground color (default requester color)
- BACKGROUND_COLOR = $00A5FF : Set background color (default requester color)
- TRANSPARENT_CLOCK = #True : Set background transparent
- TIME_FORMAT = #TIME_FORMAT_12 : #TIME_FORMAT_12, #TIME_FORMAT_24
- CLOCK_LOCATION = #CLOCK_TOP_RIGHT : #CLOCK_TOP_LEFT, #CLOCK_TOP_CENTER, #CLOCK_TOP_RIGHT, etc.

NOTES:
The file includes/clock.pbi is an example of Vector drawn shapes similar to the images currently being used.
When ANCHOR_CLOCK = #True the SysTray icon/menu must be used to modify options or close the application.
When ANCHOR_CLOCK = #False the location can also be changed using the Spacebar when the clock has focus.

Command Parameters
DC || DrawClock (1 || True, 0 || False)
CS || ClockSize (SM || Small, ME || Medium, LA || Large)
BS || BlinkSeperators (1 || True, 0 || False)
FI || FocusIndicators (1 || True, 0 || False)
AC || AnchorClock (1 || True, 0 || False)
FC || ForegroundColor ([hexadecimal format])
BC || BackgroundColor ([hexadecimal format])
TC || TransparentClock (1 || True, 0 || False)
TF || TimeFormat (12, 24)
CL || ClockLocation (TL || TopLeft, TC || TopCenter, TR || ToprRght, CL || CenterLeft, CC || CenterCenter, CR || CenterRight, BL || BottomLeft, BC || BottomCenter, BR || BottomRight)

Animation created using Video Snipping Tool
Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- added \Other_Stuff\PowerShell\ToastNotification\...
- added \Other_Stuff\PowerShell\Image2Base64\...

NOTE: Based on a question from A.D. in this post.

Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- added 5 examples
-- Other_Stuff\OldSkoolEffects\Cloud_Effect.pb, Fire_Effect_1.pb, Fire_Effect_2.pb, Plasma_Effect.pb, Tunnel_Effect.pb

NOTE: Tunnel example includes a couple images converted to DataSections using Bin2Data by ts-soft.

Credit to the author: Lode's Computer Graphics Tutorial
- very little changes have been made to the original code; no optimizations
- see example title bar for available options

NB*: These examples were created in answer to the following post: A Challenge to convert this

Image Image

Image Image
Last edited by JHPJHP on Mon May 31, 2021 6:42 am, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- added another Old-Skool example
-- Other_Stuff\OldSkoolEffects\Tree_Effect.pb

Credit to the author: Lode's Computer Graphics Tutorial
- very little changes have been made to the original code; no optimizations
- see example title bar for available options

NOTE: Example has been updated to add a bit more control over the animation.

Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- added another 2 Old-Skool examples
-- Other_Stuff\OldSkoolEffects\Julia_Effect.pb, Mandelbrot_Effect.pb

Credit to the author: Lode's Computer Graphics Tutorial
- very little changes have been made to the original code; no optimizations
- Toggle [ F1 ] to view on screen Information / Help

NB*: Numerous options available including zoom.

Image Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- added \Other_Stuff\ColorConversion\ConvertCIELAB.pb, ConvertCIELUV.pb, ConvertGrayscale.pb, ConvertHLS.pb, ConvertHSV.pb,
-- ConvertHunterLAB.pb, ConvertNegative.pb, ConvertSepia.pb, ConvertXYZ.pb, ConvertYIQ.pb, ConvertYUV.pb
-- \Lode\HSLtoRGB.pb, HSVtoRGB.pb, RGBtoHSL.pb, RGBtoHSV.pb
-- \Various\HSLtoRGB.pb, HSVtoRGB.pb
- added \Other_Stuff\FileFingerprint\FileFingerprint.pb

FileFingerprint iterates through a directory and creates an XML file similar to the following.

Code: Select all

<FileFingerprint DateTime="05/29/2021 14:26:29">
	<FingerprintData DefaultFolder="D:\PureBasic\Scripts\Windows_Services_Other_Stuff_SRC\Other_Stuff\ColorConversion\">
		<FingerprintFiles FileFolder="">
			<Filename FingerprintCRC32="127dc31e">ConvertCIELAB.pb</Filename>
			<Filename FingerprintCRC32="05777f68">ConvertCIELUV.pb</Filename>
			<Filename FingerprintCRC32="38db6b7a">ConvertGrayscale.pb</Filename>
			<Filename FingerprintCRC32="fbd4e519">ConvertHLS.pb</Filename>
			<Filename FingerprintCRC32="d29cae55">ConvertHSV.pb</Filename>
			<Filename FingerprintCRC32="4ea37996">ConvertHunterLAB.pb</Filename>
			<Filename FingerprintCRC32="75bc9c4e">ConvertNegative.pb</Filename>
			<Filename FingerprintCRC32="cb0f46e1">ConvertSepia.pb</Filename>
			<Filename FingerprintCRC32="be379955">ConvertXYZ.pb</Filename>
			<Filename FingerprintCRC32="87c16a94">ConvertYIQ.pb</Filename>
			<Filename FingerprintCRC32="e7794c0c">ConvertYUV.pb</Filename>
		</FingerprintFiles>
		<FingerprintFiles FileFolder="Lode\">
			<Filename FingerprintCRC32="b5e4b956">HSLtoRGB.pb</Filename>
			<Filename FingerprintCRC32="49a89841">HSVtoRGB.pb</Filename>
			<Filename FingerprintCRC32="3bb3a647">RGBtoHSL.pb</Filename>
			<Filename FingerprintCRC32="0b90e379">RGBtoHSV.pb</Filename>
		</FingerprintFiles>
		<FingerprintFiles FileFolder="Various\">
			<Filename FingerprintCRC32="b99f55ee">HSLtoRGB.pb</Filename>
			<Filename FingerprintCRC32="9d00219d">HSVtoRGB.pb</Filename>
		</FingerprintFiles>
	</FingerprintData>
</FileFingerprint>
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- renamed 1 example
-- Other_Stuff\OldSkoolEffects\Fire_Effect.pb to Fire_Effect_1.pb
- added 1 example
-- Other_Stuff\OldSkoolEffects\Fire_Effect_2.pb

Fire_Effect_2
Includes an open-triangle created using Bresenham's line algorithm and a layered circle and square.

Credit to the author: Lode's Computer Graphics Tutorial
Lode Vandevenne wrote:Instead of randomizing the bottom row of pixels you can also randomize the edges of objects, for example to make flaming text, ...
Animation created using Video Snipping Tool
Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- all the Old-Skool Effects have been updated to DPI Aware

NB*: Flaming text has been completed, and can be found here.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Windows Services & Other Stuff

Post by JHPJHP »

Updated:
- improved WebGadget Explorer
- moved to \Other_Stuff\WebGadgetExplorer\WG_Explorer.pb

I was motivated to improve this example after reading this post by BarryG.

Includes flicker free transitions between icon scaling, view changes (detail, list, tile, etc.) and folder updates.
Last edited by JHPJHP on Wed Jun 30, 2021 9:45 pm, edited 1 time in total.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Windows Services & Other Stuff

Post by BarryG »

JHPJHP wrote: Wed Jun 30, 2021 12:48 amI was motivated to improve this example after reading this post by BarryG.
Thanks JHPJHP! Your time and effort is appreciated.
Locked