Ubuntu – How to open a window using autokey

autokey

In autohotkey I have used Run command to open window or files.
Is there any way for the same task in autokey.

In my case I have to open folder and create a folder with name sample. my not working code is

system.exec_command('/home/dinom/Documents/testfolder', getOutput=True)
keyboard.send_keys("<ctrl>+<shift>+<n>")
keyboard.send_keys("sample")
keyboard.send_keys("<enter>")

How to do this in autokey.

Best Answer

if you simply need to create a directory, you could use this:

system.exec_command('mkdir -vp /home/dinom/Documents/testfolder/sample')

then to open your filebrowser to that new directory location:

import subprocess
subprocess.call(['xdg-open', '/home/dinom/Documents/testfolder/sample'])
Related Question