Computer total freezes only during jogging

More
08 Sep 2015 14:50 #62231 by jtc

Edit the inifile to add this line to the [DISPLAY] stanza:
USER_COMMAND_FILE = unbind.py

Create a new file named unbind.py in the same directory as the
inifile with the following contents:
root_window.tk.call("bind",".","<KeyPress-Left>","")   # Left arrow
root_window.tk.call("bind",".","<KeyPress-Right>","")  # Right arrow
root_window.tk.call("bind",".","<KeyPress-Up>","")     # Up arrow
root_window.tk.call("bind",".","<KeyPress-Down>","")   # Down arrow
root_window.tk.call("bind",".","<KeyPress-Prior>","")  # PgUp
root_window.tk.call("bind",".","<KeyPress-Next>","")   # PgDn

root_window.tk.call("bind",".","<KeyRelease-Left>","")   # Left arrow
root_window.tk.call("bind",".","<KeyRelease-Right>","")  # Right arrow
root_window.tk.call("bind",".","<KeyRelease-Up>","")     # Up arrow
root_window.tk.call("bind",".","<KeyRelease-Down>","")   # Down arrow
root_window.tk.call("bind",".","<KeyRelease-Prior>","")  # PgUp
root_window.tk.call("bind",".","<KeyRelease-Next>","")   # PgDn

You can do this in a ~/.axisrc file as well (for each user); using [DISPLAY]USER_COMMAND_FILE applys to any use of the modified inifile


Thanks!

it works when press this keys, but if I do a fast jog, with the "Shift"+"arrow" key the machine will respond, and it will not stop when released it :sick:


Tried to add "<KeyRelease-Shift>" and "<KeyPress-Shift>" in unbind.py file but without success (i didnt know if KeyPress-Shift and KeyRelease-Shift are the correct names)

how can it be solved?

João

Please Log in or Create an account to join the conversation.

More
08 Sep 2015 16:13 #62232 by andypugh

I tried to implement this way and it didn't work.


What exactly did you do? I tested it before posting it, and it worked for me.

Where did you put the .axisrc file, and what did you call the .axisrc file?

Please Log in or Create an account to join the conversation.

More
08 Sep 2015 19:08 #62251 by jtc

I tried to implement this way and it didn't work.


What exactly did you do? I tested it before posting it, and it worked for me.

Where did you put the .axisrc file, and what did you call the .axisrc file?


Hi.

The .axisrc file was created on the home directory. I didn't call the .axisrc file, it was needed on the ini file? so probably it's the reason why it didin't work.

João

Please Log in or Create an account to join the conversation.

More
08 Sep 2015 19:26 #62254 by dgarrett

Tried to add "<KeyRelease-Shift>" and "<KeyPress-Shift>" in unbind.py file but without success (i didnt know if KeyPress-Shift and KeyRelease-Shift are the correct names)
how can it be solved?

try adding;
root_window.tk.call("bind",".","<Shift-Key-Left>","")
root_window.tk.call("bind",".","<Shift-Key-Right>","")
root_window.tk.call("bind",".","<Shift-Key-Up>","")
root_window.tk.call("bind",".","<Shift-Key-Down>","")
root_window.tk.call("bind",".","<Shift-Key-Prior>","")
root_window.tk.call("bind",".","<Shift-Key-Next>","")

Please Log in or Create an account to join the conversation.

More
08 Sep 2015 19:45 #62262 by andypugh

The .axisrc file was created on the home directory. I didn't call the .axisrc file, it was needed on the ini file?


the .axisrc should be loaded automatically by the Axis GUI. There shouldn't be any need to call it from the INI.
Dewey is showing more advanced and flexible use-cases.

Please Log in or Create an account to join the conversation.

More
08 Sep 2015 20:06 #62265 by jtc
It's now correctly working!


regarding the .axisrc, I still don't know why it didn't work. but I prefer this "new" method.


João

Please Log in or Create an account to join the conversation.

Time to create page: 0.142 seconds
Powered by Kunena Forum