It is currently Wed Sep 30, 2020 5:14 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 116 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8
Author Message
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Wed Jan 15, 2020 5:00 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1661
Hi Wolf,

You are most welcome.

-------------------------------------------

Updated:
- numerous improvements, bug fixes, and a few additions since my last post

NB*: See the first post for a complete list of examples.

_________________

STATUS: Permanently Unavailable :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Sun May 31, 2020 4:12 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1661
Updated:
- numerous updates and some bug fixes

Since the release of PureBasic 5.72 LTS Beta 1 (thank you Fred, Freak & Team) I proceeded to test every example, updating and patching as required.

NB*: Some examples may not work in older versions of PureBasic.

-----------------------------------------

Updated:
- added \Other_Stuff\OtherStuff\CommandConsole\ReadOutput.pb
- added \Other_Stuff\OtherStuff\GoogleTranslate.pb
- added \Other_Stuff\OtherStuff\WindowsMagnificationAPI.pb

Read Output: Based on a question posted by tatanas.
Google Translate: Based on a question posted by ricardo.
Windows Magnification API: Based on a question posted by BarryG.

_________________

STATUS: Permanently Unavailable :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Mon Jun 01, 2020 8:08 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Apr 25, 2003 7:06 pm
Posts: 2304
Location: Argentina
JHPJHP wrote:
Updated:
- numerous updates and some bug fixes

Since the release of PureBasic 5.72 LTS Beta 1 (thank you Fred, Freak & Team) I proceeded to test every example, updating and patching as required.

NB*: Some examples may not work in older versions of PureBasic.

-----------------------------------------

Updated:
- added \Other_Stuff\OtherStuff\CommandConsole\ReadOutput.pb
- added \Other_Stuff\OtherStuff\GoogleTranslate.pb
- added \Other_Stuff\OtherStuff\WindowsMagnificationAPI.pb

Read Output: Based on a question posted by tatanas.
Google Translate: Based on a question posted by ricardo.
Windows Magnification API: Based on a question posted by BarryG.



Dont find ther translate in the ohterstuff zip :(

You are the man!!


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Tue Jun 02, 2020 4:51 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Apr 25, 2003 7:06 pm
Posts: 2304
Location: Argentina
JHPJHP wrote:
Updated:
- numerous updates and some bug fixes

Since the release of PureBasic 5.72 LTS Beta 1 (thank you Fred, Freak & Team) I proceeded to test every example, updating and patching as required.

NB*: Some examples may not work in older versions of PureBasic.

-----------------------------------------

Updated:
- added \Other_Stuff\OtherStuff\CommandConsole\ReadOutput.pb
- added \Other_Stuff\OtherStuff\GoogleTranslate.pb
- added \Other_Stuff\OtherStuff\WindowsMagnificationAPI.pb

Read Output: Based on a question posted by tatanas.
Google Translate: Based on a question posted by ricardo.
Windows Magnification API: Based on a question posted by BarryG.



Great job man!!

I only find some little problems.
Because it does not reacts when browser finish downloading new page, someitmes if it takes some time to translate because a bigger text, it fails.

Also the regex gives some problems sometimes.

Thanks in advance, you are doing a great job. I will donate soon :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Wed Jun 03, 2020 5:23 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1661
Hi ricardo,

ricardo wrote:
I only find some little problems.
Because it does not reacts when browser finish downloading new page, someitmes if it takes some time to translate because a bigger text, it fails.

Also the regex gives some problems sometimes.

The Problems you reported should now be fixed.
- SetLanguageURL: Used to set the Start Language and Translate Language.
- SetTranslateText: Used to set the text to be translated.

Depending on the size of the text to be translated, you may need to increase the #MAX_TIMEOUT constant located at the top of the example.

NB*: Example has been moved to \Other_Stuff\OtherStuff\GoogleTranslate\GoogleTranslate.pb

----------------------------------------

Updated Google Translate:
- added ListenToText Procedure
- modified SetTranslateText Procedure

ListenToText Procedure
The default action is to play the translated text.
Set StartLanguage option #True to play the original text.

SetTranslateText Procedure
Added CopyToClipboard option (default: #False).

_________________

STATUS: Permanently Unavailable :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Last edited by JHPJHP on Sun Jun 07, 2020 5:10 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Thu Jun 04, 2020 2:29 am 
Offline
Addict
Addict
User avatar

Joined: Fri Apr 25, 2003 7:06 pm
Posts: 2304
Location: Argentina
I find another problem.

Imagine that i want to load one file and translate it... and then translate to another language NOT the text from ther file, but the translation i just do, something like:

Code:
SetTranslateURL(Dispatch, "auto", "de")
Text$ = SetTranslateText(Dispatch, Text$)

SetTranslateURL(Dispatch, "auto", "fr")
Text$ = SetTranslateText(Dispatch, Text$)


But sometimes, from time to time, i get your random text as a result.

Code:
RandomText.s = Chr(Random(90, 65))


Best Regards my friend, you are downing something great sharing all your knowledge and codes, THANKS!!


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Thu Jun 04, 2020 2:39 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1661
Hi ricardo,

It looks like you're using an older version of the example; see my previous post.
Download the latest version and let me know if it solves the problem.

ricardo wrote:
But sometimes, from time to time, i get your random text as a result.

I ran the following code 5 consecutive times without a problem.

Code:
SetLanguageURL("auto", "fr")
Debug SetTranslateText("Disturbed: Down With the Sickness")
SetLanguageURL("auto", "de")
Debug SetTranslateText("Disturbed: Down With the Sickness")
SetLanguageURL("auto", "en")
Debug SetTranslateText("Disturbed: Down With the Sickness")

This may also have been a timeout issue; the code has been updated.
- you should notice a marked speed improvements

-------------------------------------

Updated Google Translate:
- added ClearTranslateText Procedure
- some minor improvements

_________________

STATUS: Permanently Unavailable :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Last edited by JHPJHP on Sun Jun 07, 2020 5:11 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Thu Jun 04, 2020 5:03 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Apr 25, 2003 7:06 pm
Posts: 2304
Location: Argentina
JHPJHP wrote:
Hi ricardo,

It looks like you're using an older version of the example; see my previous post.
Download the latest version and let me know if it solves the problem.

ricardo wrote:
But sometimes, from time to time, i get your random text as a result.

I ran the following code 5 consecutive times without a problem.

Code:
SetLanguageURL("auto", "fr")
Debug SetTranslateText("Disturbed: Down With the Sickness")
SetLanguageURL("auto", "de")
Debug SetTranslateText("Disturbed: Down With the Sickness")
SetLanguageURL("auto", "en")
Debug SetTranslateText("Disturbed: Down With the Sickness")

This may also have been a timeout issue; the code has been updated.
- you should notice a marked speed improvements

-------------------------------------

Updated:
- added ClearTranslateText Procedure
- some minor improvements


Hi,

I think its working, i mam testing it :)

What is the usage of ListenToText()?

Bet Regards


Top
 Profile  
Reply with quote  
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Thu Jun 04, 2020 5:48 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1661
Hi ricardo,

ricardo wrote:
What is the usage of ListenToText()?

Listen to text is optional, but may be useful to some users; for example, a person with vision impairment, learning a new language, general communication, etc.

------------------------------------------

Updated Google Translate:
- made various code improvements
- added a couple new commands
- squashed a few bugs

New Commands:
- ExecuteCommand("listen-to-text", "translate-language")
-- start-language or translate-language
- ExecuteCommand("clear-translate-text")

_________________

STATUS: Permanently Unavailable :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Last edited by JHPJHP on Sun Jun 07, 2020 5:09 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Windows Services & Other Stuff
PostPosted: Sat Jun 06, 2020 2:07 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1661
Updated Google Translate:
- added a DLL example
- couple code improvements
- squashed a bug

DLL Example: GoogleTranslate_DLL.pb

NB*: Google Translate examples have been moved to \Other_Stuff\GoogleTranslate\

--------------------------------

Updated:
- see this post; based on a question by coffee

_________________

STATUS: Permanently Unavailable :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Windows Services & Other Stuff
PostPosted: Mon Jun 08, 2020 11:38 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1661
Updated Google Translate:
- improved the DLL example
- 5000 character limit processed @ DLL
- includes 32 bit and 64 bit versions

DLL Example
Included script from another example to determine the calling process.
- \Other_Stuff\ProcessStuff\CallingProcess\
Passing translate data using an array for faster bulk translations.

_________________

STATUS: Permanently Unavailable :: Downloads moved to My PureBasic Stuff; access key required.
_________________


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 116 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye