Giter Site home page Giter Site logo

lipnotic / sikuli-type_alt Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 27 KB

This simple sikuli module (python based) was wrote to allow "typing" on Sikuli. There are some situations we need to type a text eg. (type-and-search fields) So instead of using type() (which returns a java.lang.IllegalArgumentException ( java.lang.IllegalArgumentException: Key: Not supported character), you should use type_alt() function.

License: MIT License

Python 100.00%
accented-characters java python sikuli sikulix

sikuli-type_alt's People

Contributors

lipnotic avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

raiman

sikuli-type_alt's Issues

CoWorker invitation accepted

LOL, sent the answer to noreply@... - so here it is:

Thanks for your work and documentation. I accepted your invitation.

Meanwhile I have revised the Java implementation at least for Windows and the case, that the given character is not found on the current keyboard layout.

But the key-point is, that you must encode the text to type as Unicode: type(u”….“) or with the string encoding method. I guess I have to implement this already on the Python level.

Until now with my German keyboard type(“ä”) does not work, but type(u”ä”) works (on Windows).
The revision in case of not found internally issues the respective ALT-NumPad sequence.

Will be available with the next snapshot.

I will check your module and decide later how I can add it to SikuliX.

Another option, that I will check, is to have an option to select a keyboard-layout with type().

All the best
Raimund

dict_alt has some problems

I made some tests with the dict_alt.

  • most of the 3-digit entries do not produce the given character when using ALT-NumPad on a real keyboard.
    Whereas the 4-digit entries seem to work correctly.
|dict-char| (ALT-digits) |character produced with type(ALT...) or keyboard|
|√| (251) |¹|
|∞| (236) |ý|
|⌠| (244) |¶|
|⌡| (245) |§|
|Ω| (234) |Û|
|∩| (239) |´|
|≈| (247) |¸|
|≡| (240) |­|
|≤| (243) |¾|
|≥| (242) |‗|
|ⁿ| (252) |³|
|Γ| (226) |Ô|
|Θ| (233) |Ú|
|■| (254) |■|
| | (255) | |
|Σ| (228) |õ|
|Φ| (232) |Þ|
|°| (248) |°|
|α| (224) |Ó|
|±| (241) |±|
|δ| (235) |Ù|
|µ| (230) |µ|
|ε| (238) |¯|
|π| (227) |Ò|
|σ| (229) |Õ|
|τ| (231) |þ|
|φ| (237) |Ý|
  • ... and 3 of them also have a 4-digit entry (e.g. ß) (only keep the 4-digit entries)

  • these 2 entries have a problem:

u""":"0147",
u""":"0148",

when using the ALT-4digit one gets different apostrophs (seems to be a GitHub/Web problem).
This leads to problems with the dictionary, when downloading the stuff from GitHub.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.