raghuram534 / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

Setting a hotkey for a phrase, script, or folder freezes the application #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new phrase or script
2. Click "Set" next to the "Hotkey" option
3. Click "Press to Set"

What is the expected output? What do you see instead?
I expect to press a key and see the mark-up name of that key in the window. 
Instead, the application stops responding to any mouse clicks or keyboard 
commands.

What version of the product are you using? On what operating system?
Version 0.61.6
Ubuntu Linux 9.10 64-bit

Please provide any additional information below.

Original issue reported on code.google.com by joelzehr...@gmail.com on 30 Mar 2010 at 1:27

GoogleCodeExporter commented 8 years ago
Please test again in v0.61.7 released a short time ago

Original comment by cdekter on 30 Mar 2010 at 11:22

GoogleCodeExporter commented 8 years ago
The problem continues in 0.61.7.

Installed the PPA to keep up with the latest and greatest. I'd love to use 
Autokey as 
an hotkey application launcher.

Original comment by joelzehr...@gmail.com on 1 Apr 2010 at 6:43

GoogleCodeExporter commented 8 years ago
Unable to reproduce this... can you run AutoKey in debug mode like so:

autokey-qt -l

or if you are using the GTK version:

autokey-gtk -l

Then perform the actions that cause the crash and post the last 40 lines or so 
of
output here.

Original comment by cdekter on 1 Apr 2010 at 8:12

GoogleCodeExporter commented 8 years ago
Works for me

Original comment by cdekter on 13 Apr 2010 at 8:22

GoogleCodeExporter commented 8 years ago
Dear programmer,
I found how to work around this isue.
Personally I don`t know exactly why it happen, but I undarstood how to solve 
the problem.
PLEASE FOLLOW THESE STEPS:

1) locate folder where is stored your script
(usually is like this /home/username/.config/autokey/data/ScriptFolder, where 
"username" is your username, and "ScriptFolder" is the folder where is located 
your script)

2) be sure to see all hidden files (if you are using a file browsing program, 
you can toggle to hidden file viewing by pressing "ctrl+h")

3) locate your script file name, and you will note 2 files with the same name 
but different extension, for example:
myscript.py
myscript.json

what means this ?
this means that your script is a python script and is "myscript.py" and
in myscript.json is stored the setting parameters of your python script.
Json file is like a kind of File System fot Autokey, so for each python script 
you will find his shadow setting file (json extension type)

4) Open with your favourite editor (I use gedit) the file myscript.json and 
locate the line       "hotKey":

you will see the following block of text:

        "immediate": false, 
        "ignoreCase": false, 
        "backspace": true, 
        "triggerInside": false
    }, 
    "hotkey": {
        "hotKey": null, 
        "modifiers": []
    }, 
    "modes": [
        1
    ], 

5) Now, if you want for example use a combination like <ctrl>+1
to trigger your script, please kindly replace the above block as follow:

        "immediate": false, 
        "ignoreCase": false, 
        "backspace": true, 
        "triggerInside": false
    }, 
    "hotkey": {
        "hotKey": "1",
        "modifiers": [
            "<ctrl>"
        ]
    }, 
    "modes": [
        3
    ], 

Please kindly note the last part of the block:

    "modes": [
        3
    ], 

Usually is 1, or empty, but if you want see your modify inyou AutoKey window 
you must set modes on 3 type.

It`s not difficult, only try and let me know if you solved.

NOTE: please remember to restart Autokey in order to see your changes activated.

M.F.

Original comment by mardoche...@gmail.com on 17 Mar 2012 at 6:38