Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 13 11:31
    stefan123t commented #284
  • Oct 10 01:10
    BlueDrink9 labeled #615
  • Oct 10 01:10
    BlueDrink9 labeled #615
  • Oct 10 01:10
    BlueDrink9 commented #615
  • Oct 08 10:50
    josephj11 labeled #615
  • Oct 08 10:50
    josephj11 labeled #615
  • Oct 05 17:05
    troywweber7 opened #615
  • Oct 04 14:36
    GammaWolf commented #565
  • Oct 01 17:11
    sntll closed #613
  • Oct 01 17:11
    sntll commented #613
  • Oct 01 15:53
    podiki commented #609
  • Oct 01 01:18
    sntll commented #613
  • Oct 01 00:59
    sntll commented #613
  • Sep 30 20:54
    podiki commented #609
  • Sep 30 20:37
    BlueDrink9 labeled #613
  • Sep 30 20:37
    BlueDrink9 commented #609
  • Sep 30 20:36
    BlueDrink9 commented #612
  • Sep 30 20:31
    BlueDrink9 commented #613
  • Sep 30 20:29
    BlueDrink9 commented #611
  • Sep 30 13:45
    sntll commented #613
unlucky67
@unlucky67
That just crashed my computer - I clicked ok -nothing happens, tried to quit from autokey icon on task bar, eventually got a message wait or force quit - tried to take a screenshot got a message tried all ways and couldn't take screen shot. Mouse still moving and allowing me to select windows etc but not allowing me to click, keyboard not working at all (for both I use external ones but I disconnected and used the laptop integral keyboard/mouse and there was no difference) - I had to force shut down by manually using the power button. It is like Autokey is stuck logging/recording my keyboard and mouse actions. Autokey will restart on rebooting. And it works - phrases are replaced -but I can't see the main window etc. I have had two issues with this computer -not sure if relevant or not. First it is a new Dell computer, preinstalled with Windows 10. I've set it up to dual boot but if I log into Windows some Dell recovery thing starts -which I stop and I've told not to start (it ignores me!) - afterwards I can't boot into Linux until I've reset the secure boot etc settings (although it saves my custom default settings -so I just reload those now) . Second is 'timeshift' system backup clogging up my hard drive ...computer is dual drive (SSD and Hdd) - operating systems (windows and Linux) are on the SSD - I have 40GB allocated for Linux and I get the running out of hard drive space message every so often as timeshift fills it up (annoying as my hdd is 1TB.... )
28 replies
Also looking at the .json files - I remembered I installed 'Bluefish' python editor - pretty sure that was installed before I started having autokey problems though...
MohamedBarrous
@MohamedBarrous
I am trying to call a function from another script that I import it
image.png
The script directory is already configured in autokey
image.png
This is exactly the content of the script
image.png
All I want is that autokey gets the string returned from the function getTun0IP and put it in an info dialog.
When I execute the script, I get a blank info dialog:
What do guys think I am doing wrong?
image.png
1 reply
Sam Sebastian
@sebastiansam55
so the best way to debug autokey scripts (in my experience) is to launch autokey via a console (you first have to completely quit the app, via either ctrl+q in the ak window or by killing all autokey processes) then launch your version of autokey; (autokey-qt or autokey-gtk) then you can use print commands in your python script and the output will be in the console

So as a start I would

print(textMe)
print(getTun0IP)
print(getTun0IP())

And see what that gets you

MohamedBarrous
@MohamedBarrous
Aight let me try.
MohamedBarrous
@MohamedBarrous
This is what I executed:
image.png
And this is what I got from the output of autokey @sebastiansam55 :
image.png
This means that the output is actually retrieved from the script.
Wait what
It just worked
magically
I just added this line:
image.png
2 replies
And it worked! not as before anyways.
I have no idea why it didn't work before and now it did.
But thanks anyways!!
This debugging technique will be really useful.
BlueDrink9
@silico_biomancer:kde.org
[m]
It doesn't like --pre?
Joe
@josephj11
@MohamedBarrous I'm not sure how it works internally, but autokey is already a directory in $HOME/.config. Your modules directory is probably somewhere under that (it doesn't have to be) and Linux and AutoKey are probably fine with it, but I would name it something else like modules so I wouldn't be confused when accessing it both within and from outside of AutoKey.
MohamedBarrous
@MohamedBarrous

This debugging technique will be really useful.

What do you mean?

@MohamedBarrous I'm not sure how it works internally, but autokey is already a directory in $HOME/.config. Your modules directory is probably somewhere under that (it doesn't have to be) and Linux and AutoKey are probably fine with it, but I would name it something else like modules so I wouldn't be confused when accessing it both within and from outside of AutoKey.

Gutcha! thanks!

Joe
@josephj11
I have no idea how Gitter works. When I got here around half an hour ago, it showed me one of those buttons that said I had 45 unread posts. i clicked on it a few times and read what came up, but it was nowhere near 45 posts. Also, these buttons change or disappear depending on where I am in scrolling through the root thread - or whatever it's called.
3 replies
BlueDrink9
@silico_biomancer:kde.org
[m]
@unlucky67 let's take this to private chat just to avoid clogging gitter. If we find something that might be generally useful, we can report back here.
1 reply
BlueDrink9
@silico_biomancer:kde.org
[m]
Sorted out unlucky's issues. Removed autokey config folder, and restarted. Seems to have fixed it for now. I couldn't reproduce it by manually fiddling with my config, so no idea what went wrong
Elliria
@Elliria
Hey there, I thought I'd share an AutoKey "plug" I made in the Ubuntu Users mailing list a while back. Note that there are no replies, but it will stay in the mailing list's archive for anyone to read. After all, the more we spread the word, the bigger our community will be.
Sam Sebastian
@sebastiansam55
Nice, I posted in a few development discords asking for more developers but only got that one GTK commit fix out of it
Elliria
@Elliria
One is better than none, so good for you for having done that.
unlucky67
@unlucky67
Thanks to Bluedrink9 and his patience my autokey is working fine now. I needed to do a complete reinstall which I was happy to do even without a proper backup - prepared to re-enter my data from new. However I ended up with a data folder containing new and my previous data files (eg my phrases1 and my phrases) but just the new folders appeared in Autokey main window. I started by copying and pasting the individual .json and .txt files for each phrase to the new folder. Testing after I'd done a couple and could see it worked I left it till I had more time. After a shutdown/reboot (so Autokey restart) both data folders (my phrases and my phrases1) appeared in the main autokey window. It was really easy to delete the 'new' versions and rename the folders and all seem to be working perfectly. I'm not going to play (don't mess with something that is working!) but if anyone has major issues, copying just the data files elsewhere and then pasting them into the data folder after a fresh install would be worth trying...at a pinch. Thanks again to the Bluedrink9 - still all a bit of a mystery what happened. I have (hopefully) sorted out timeshift and stopped it filling up my os drive if that did play any part in my problem....
1 reply
Joe
@josephj11
@unlucky67 FYI: when adding a folder to AutoKey, you can put it anywhere in your file system as long as it will be available when AutoKey is running. I have all my scripts and phrases in a separate directory outside of the AutoKey config tree. If I reinstall or even purge AutoKey, none of my phrases or scripts get deleted. It's more convenient for making backups, etc. too.
2 replies
unlucky67
@unlucky67
Thanks - that's interesting. I have another copy of all the autokey files on my data drive along with things like Libre office macros as text etc. (I regularly back up my data drive) I wasn't sure if I could use them as a direct backup or if they could just act as a reminder of what I have/need to replace - having experienced data loss I'm a great believer in having duplicate backups of everything. I think I did mention that at some point trying to sort out my issue. Do you think having two versions of everything could cause problems for autokey? Should I look at changing the .json extension to another one -just for the files on my data drive? BTW Not relevant here but feel everyone- if they are not already- should be aware of the 'danger' of 'my' documents etc folders in Windows. I stopped using them years ago. Connecting to the server at my previous work (to backup data!) my user profile was overwritten. So unrecoverable - including all the data containing folders associated with my profile. We had a large IT dept and no-one could work out exactly how it happened or retrieve any data. I did have a backup -but not an up to date one of my work -I lost hours of work. Since then (as the sole user of my laptop) I have a 'data' folder on my hard drive - not associated with any profile (and perform regular backups and backups of backups !
Joe
@josephj11

@unlucky67 I use a data partition on Linux. It makes all my data accessible even if I dual boot and it makes backups easier because it is not constantly changing the way things on $HOME do.

AutoKey only sees the folders you tell it about in the folders panel or anything that is in the default config tree, so if your additional copies of things are somewhere else, AutoKey will never see them.

If you do end up with multiple things with the same names where AutoKey can see them, it appends a unique suffix to the file names so it can tell them apart. It works, but I would avoid it when possible because I don't like invisible magic that I might have to deal with if I access the files myself externally.

Joe
@josephj11
Data partition ... It also has other benefits. If I fill up my data partition, nothing happens. The worst case is some app fails when it can't write more data. If I fill up my home partition, my system may stop working because it needs space for essential things. This is part of the reason why I also have a separate home partition. If I fill up home, it's bad, but not too hard to recover from, but if I fill up root I might need to boot from a live distro to clean it up - much more serious.
BlueDrink9
@silico_biomancer:kde.org
[m]
I'm on arch but I just use pip
Joe
@josephj11
If anybody has some time, the links to the Arch packages in the install wiki page are broken.
Joe
@josephj11
We need an Arch user to jump in on #613 . It's an installation issue. Hopefully, something was just done out of order, etc.
BlueDrink9
@silico_biomancer:kde.org
[m]
I'll look
BlueDrink9
@silico_biomancer:kde.org
[m]
I got tripped up by that pip command recently too. The key is that --user is an option for install, not base pip
Joe
@josephj11
@silico_biomancer:kde.org I figured that out shortly after commenting on the issue, but his last install was system wide with sudo. That worked better, but still didn't launch, so I didn't comment on my syntax error with --user.