Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

AHK in Linux?


  • Please log in to reply
86 replies to this topic
polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012

AHK is so marvelous! It needs a Linux version...

jonny experimented with Wine a couple years ago and managed to get a few things working.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


ahk_fan
  • Members
  • 8 posts
  • Last active: Aug 03 2007 09:47 PM
  • Joined: 03 Sep 2006
One of the reasons AHK is so brilliant and useful in Windows land is that windows was, by and large, designed to be used interactively and not automated. AHK fills a hole by allowing you to automate previously "unautomatable" things.

In Linux and most un*x's, automation and scripting is a core concept. You can accomplish anything you want at the command line, so there is less of a need for AHK.

If you are trying to automate a linux GUI program, you should probably dig a little deeper, chances are that GUI was just written to put a friendly face on a command line that will everything you want and more, if you learn it.

majkinetor
  • Moderators
  • 4512 posts
  • Last active: Jul 29 2016 12:40 AM
  • Joined: 24 May 2006
in console there is command "expect" that can be used for automatition.

I didn't hear so far for GUI automatition sw on Lin, and I doubt anything sw specific can compensate that.
Posted Image

koantum
  • Members
  • 2 posts
  • Last active: Jul 18 2007 12:36 AM
  • Joined: 16 Jun 2007

If anyone knows of anything close to AHk on Linux or of anyone who would be inclined to make a stab at a port, I would dearly love to know.

Me too!

koantum
  • Members
  • 2 posts
  • Last active: Jul 18 2007 12:36 AM
  • Joined: 16 Jun 2007

AHK is so marvelous! It needs a Linux version...

We should work to make a version to Linux... It would be great! It would be fantastic!...


yeah!...

in linux I really miss the hotstrings feature... ('btw' = 'by the way') that's what most interest me on linux

I agree 100%!

Tarch
  • Members
  • 87 posts
  • Last active: Mar 24 2009 12:29 AM
  • Joined: 23 Jun 2007
Hi,
there is xautomation for example that can send mouse events and keyboard events. You have to combine various programs/languages/libraries I think to get something similar to AHK.
In any case usually GNU/Linux has an inferior need (compared to windows) for GUI automation usually there is an alternative programmatic way to do the things.

Bye! :shock: :)

corrupt
  • Members
  • 2558 posts
  • Last active: Nov 01 2014 03:23 PM
  • Joined: 29 Dec 2004

In any case usually GNU/Linux has an inferior need (compared to windows) for GUI automation usually there is an alternative programmatic way to do the things.

I use Linux also and disagree.

Tarch
  • Members
  • 87 posts
  • Last active: Mar 24 2009 12:29 AM
  • Joined: 23 Jun 2007
I'm just curious...can you write what do you mean in a more detailed way please?

Bye! :shock: :)

corrupt
  • Members
  • 2558 posts
  • Last active: Nov 01 2014 03:23 PM
  • Joined: 29 Dec 2004
Not really. I thought I'd give about as much detail as 99% of Linux users normally do when they say that Linux is better at things like this. In other words, dodge the question... :p .

It's not that there's much missing in general but the ability to automate mouse clicks, keystrokes, read data from a text file in a strange format (usually one that's non-standard that has been generated by some proprietary application) then modify and feed that data into some other application, and most other general conversion/automation tasks are not usually practical, due to the amount of time required to program these tasks in many other languages.

Tarch
  • Members
  • 87 posts
  • Last active: Mar 24 2009 12:29 AM
  • Joined: 23 Jun 2007
Ok,
now I better understand (I personally try to judge things as objectivest as possible...obviously I'm very far from perfection :p ... in any case if I prefer something I try to give motivations because I think to say that "something is better" because "is better" it has not so much sense imho)! Glueing some things you probably be able to do the things you do with AHK, obviously a programming language like AHK would simplify the way you do these things. What I meant in the previous post is only that windows is born primarily as a GUI oriented os whether all the *nix (in this case GNU/Linux) are born with a more command line oriented approach. If you see many program in GNU/Linux are command line tool with a GUI forntend to simplify the use wheter the largest part of the programs on windows are not or hardly separable from their GUI. So what I meant is that on GNU/Linux is probably easier to automate things because of the approach. I hope you understand better now! ^.^

Bye! :shock: :)

koch
  • Members
  • 8 posts
  • Last active: Jul 25 2007 01:00 AM
  • Joined: 28 Apr 2007

In Linux and most un*x's, automation and scripting is a core concept. You can accomplish anything you want at the command line, so there is less of a need for AHK.

If you are trying to automate a linux GUI program, you should probably dig a little deeper, chances are that GUI was just written to put a friendly face on a command line that will everything you want and more, if you learn it.


In any case usually GNU/Linux has an inferior need (compared to windows) for GUI automation usually there is an alternative programmatic way to do the things.


Disagree with you both. It's true that you don't need AHK in Linux because there are programs that can handle the things AHK can. But me and my friends have written som programs in AHK and now none of us are using Windows. Now we want a AHK version for Linux so that we can continue making programs in it. Mayby our next project will be AHK for Linux.
Love AHK!

AutoGuest
  • Guests
  • Last active:
  • Joined: --
The only problem of having AHK in linux is that so many functions are specific to windows which would mean a complete rewrite for linux.

koch
  • Members
  • 8 posts
  • Last active: Jul 25 2007 01:00 AM
  • Joined: 28 Apr 2007

The only problem of having AHK in linux is that so many functions are specific to windows which would mean a complete rewrite for linux.


That's to bad, well I just have to live without it then.
Love AHK!

AutoGuest
  • Guests
  • Last active:
  • Joined: --

The only problem of having AHK in linux is that so many functions are specific to windows which would mean a complete rewrite for linux.


That's to bad, well I just have to live without it then.


What about all of the other scripting tools that were listed above? They might not feature the same functions, but at least they get the job done.

Elevator_Hazard
  • Members
  • 297 posts
  • Last active: Feb 07 2011 12:10 AM
  • Joined: 28 Oct 2006
Well AHK was made with VC++ and is probably packed with windows-specific stuff like windows tries to do. I've had some limited success on using wine by saving a .ahk file and using wine to run the "convert .ahk to .exe" program and compiling then running that exe file with wine. I realized I used the ChooseColor() function I found on the forum in one specific script I tested... It was weird because wine was able to emulate that .dll within it. I forgot that the same program also used COM to embed an IE control so of course that didn't work. Also on linux I've not seen an ahk-like language :( and I've also been trying to step up to something bigger like C++ or Python... I've not had much luck with learning either of them.

I adore linux so much! I'm a fan of the philosophy behind open-source and the GNU license (the points 0-3 are great). I had a book on linux from someone my mom works with which talked about the beginning of linux. I find it wonderful that I can satisfy most all of my needs program-wise by using the built-in "Add/Remove Programs" feature of linux (ubuntu). Because I know its virus-free and I have the freedom to choose from well over 1000 open source programs of all sorts rivalling most pricey programs.

That's enough rambling from me.
Changed siggy at request of ahklerner :D