python_functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
python_functions [2023/01/20 01:41] – [Input Functions] g00r00 | python_functions [2023/01/20 01:57] (current) – [Function List A to Z] g00r00 | ||
---|---|---|---|
Line 166: | Line 166: | ||
| [[python_functions# | | [[python_functions# | ||
| [[python_functions# | | [[python_functions# | ||
+ | | [[python_functions# | ||
=== Function: GETSTR === | === Function: GETSTR === | ||
Line 212: | Line 213: | ||
if keypressed is True: | if keypressed is True: | ||
writeln(" | writeln(" | ||
+ | |||
+ | === Function: ONEKEY === | ||
+ | |||
+ | Syntax: onekey (keylist, echo) : string | ||
+ | | ||
+ | This function asks the user to input a character but accepts only input | ||
+ | from the user that matches a character in the keylist. | ||
+ | the function will print the character to the terminal. | ||
+ | | ||
+ | Example: | ||
+ | | ||
+ | ch = onekey(chr(13) + " | ||
+ | | ||
+ | if ch == ' | ||
+ | | ||
+ | | ||
+ | The above example prompts the user to enter one of the keys A, P, Q or | ||
+ | the ENTER key (ASCII #13). Because echo is True, it will prompt the | ||
+ | | ||
+ | |||
+ | User input for this function is not case sensitive. | ||
---- | ---- | ||
Line 301: | Line 323: | ||
* isuserpw | * isuserpw | ||
* isvalidpw | * isvalidpw | ||
- | * keypressed | + | * [[python_functions# |
* logerror | * logerror | ||
* mci2str | * mci2str | ||
Line 315: | Line 337: | ||
* msg_seek | * msg_seek | ||
* msg_stats | * msg_stats | ||
- | * onekey | + | * [[python_functions# |
* [[python_functions# | * [[python_functions# | ||
* [[python_functions# | * [[python_functions# |
python_functions.1674200470.txt.gz · Last modified: 2023/01/20 01:41 by g00r00