-
-
Notifications
You must be signed in to change notification settings - Fork 313
It dont save my shortcuts #1369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe I can importing my shortcuts.ini everytime at PyScripter starts? What I should write in pyscripter_init.py? |
Are you sure? This is hard to explain. |
Sure. I was try it ~5 times. And I cant explain this too. You can try it yourself |
I can make a video for you |
I believe you. I will look into it. |
Anyway maybe I can importing my shortcuts.ini automatically everytime at PyScripter starts? What I should write in pyscripter_init.py? |
You could
|
I have setup a virtual machine with russian language but I still cannot reproduce either of the issues you face (shortcuts and remote engine output). What do you get when you run the following python script: import locale
# Get the current locale's code page
code_page = locale.getpreferredencoding()
print(f"Current code page: {code_page}")
import ctypes
# Get ANSI code page (used by Windows GUI apps)
ansi_code_page = ctypes.windll.kernel32.GetACP()
print(f"ANSI code page: {ansi_code_page}") # e.g., 1252
# Get OEM code page (used by command prompt)
oem_code_page = ctypes.windll.kernel32.GetOEMCP()
print(f"OEM code page: {oem_code_page}") # e.g., 437 (US) or 850 (Western Europe) In my russian virtual machine I get:
|
Current code page: cp1251 |
Now I have same problems again...
It seems that Windows remember some settings.. |
Saved copy of the clear(default) pyscripter.ini of just downloaded PyScripter didnt help(( |
So that not helps me(( I exported all hotkeys to myhotkeys.ini |
Yep)) |
Here is what I found using my Russian Virtual machine. Using keyboard layout: Using Russian keyboard layout. When I exit with with Russian keyboard layout active PyScripter.ini contains: When I exit with with English keyboard layout active PyScripter.ini contains: So how the shortcut is saved depends on what keyboard layout was active when you exit PyScripter! To be continued. |
I think I fixed it. Please download this zip file. It contains PyScripter.exe. Replace your PyScripter.exe with the one in the zip file and test it. Please test both:
|
The Abort command works fine on this code and program not freezed with this code:
Shortcuts still blow my mind))
|
This time I am sure I fixed it. New zip file with updated PyScripter.exe. Thanks for helping to make PyScripter better! Technical note. The Ctrl+/ is a special case since there are two shortcuts with the same representation The keyboard / and the numpad / and PyScripter was erroneously converting the first to the second. |
At last it works great! ))) Thank you very much! |
If I go Tools - Customize IDE shortcuts - Source code and Assign Toggle comment with Ctrl+/, then it works fine, but if I reopen PyScripter, then it not work!
If I assign Toggle comment with Ctrl+' or any other, then it works fine and after reopen PyScripter works fine too, BUT after restarting PC it not works!
The text was updated successfully, but these errors were encountered: