Comments (1)
Merhaba @ceminan ,
VS2015 kullanmanızı öneririm. C# 6.0 da yazdığım için sıkıntı olmuştur.
Metin algılama olayı ise şöyle;
İşletim sistemi seviyesinde harici dll ve methodlar ile kanca atma işlemi yapıyorum. "Hook" olarak adlandırılıyor. Clipboard hook ve mouse hook ile yakalama işlemini gerçekleştiriyorum.
Mouse'a ait tıklama ve tutup sürükleme hareketlerini dinliyorum, herhangi biri olmuşsa, Kopyala(Ctrl+C) emri gönderiyorum işletim sistemine böylece varolan metni kopyalayıp Clipboard(Pano)'a alıyorum. Sonrasında Clipboard'a erişerek seçilmiş metni çekiyorum.
Bunu yapan kod ise: https://github.com/osoykan/DynamicTranslator/blob/master/src/DynamicTranslator.Wpf/TranslatorBootstrapper.cs
Hook classı: https://github.com/osoykan/DynamicTranslator/blob/master/src/DynamicTranslator.Wpf/Win32.cs
inceleyerek fikir sahibi olabilirsiniz.
Küçük bir istekte bulunayım; eğer ki tekrar bir paylaşım ve soru soracak olursanız rica etsem ingilizce olarak yapabilir misiniz? Bilginin evrensel olması ve daha çok kişiye ulaşması için.
Teşekkürler.
from dynamictranslator.
Related Issues (20)
- www.wordreference.com translator implementation
- Make user32.dll P/Invoke functions are fully trusted for sake of the performance HOT 1
- Bing Translate blew up try to fix with new url source HOT 1
- Build integration with cake HOT 1
- Implementing some English to English dictionaries (feature)
- Could one dynamic translator process run on machine ? HOT 1
- How could I disable ? ---> "Error: Could not resolve the remote domain....." HOT 1
- Re-Write it :)
- There's no Italian article HOT 1
- Increase the maximum character limit from 200 to something else or make it configurable by user
- Copy-Paste feature on translate pop-up
- Make translate pop-up closable by key
- [TR] Feature Request, Findings HOT 1
- Feature request: OCR implementation HOT 3
- [TR] About System Resource Usage HOT 11
- [TR] Cannot acess a dispossed object HOT 3
- When starting translator, default copy paste keys not working HOT 2
- Add option to disable Google Analytics Data or Gathering information Agreement
- Translating Github repo
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamictranslator.