AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IronAHK - .NET port of AutoHotkey for Windows, Linux, Mac...
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Mon Oct 20, 2008 10:39 pm    Post subject: Reply with quote

bits wrote:
would it be possible to provide some steps on how would I compile this in linux
The Mono website has some good articles on the CSharp Compiler and Introduction to developing with Mono. It doesn't matter where you compile .NET applications as the same files should run on all platforms (like java). I'm using VS08 but you can easily switch to MonoDevelop, Eclipse or write a bash/batch script for the command line.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bits



Joined: 17 Nov 2006
Posts: 10

PostPosted: Mon Oct 20, 2008 11:05 pm    Post subject: Reply with quote

Thanks for the reply. That should give me a start off.

I am compiling mono compiler right now... Hoping to get things done as expected.

btw, I would like to know if you or anyone else have successfully compiled and ran it successfully in linux environment?

regards,
Shobhit
Back to top
View user's profile Send private message
IsNull



Joined: 10 May 2007
Posts: 593
Location: .switzerland

PostPosted: Wed Nov 19, 2008 1:55 pm    Post subject: Reply with quote

amzing project! Smile

But it looks like this link is down:
http://ironahk.googlecode.com/svn/trunk/Parser/bin/Release/IronAHK_bin.zip (binary build)

returns 404 file not found...


regards
IsNull
_________________
http://securityvision.ch
AHK 2D GAME ENGINE
Back to top
View user's profile Send private message Visit poster's website
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Wed Nov 19, 2008 3:11 pm    Post subject: Reply with quote

I removed the binary for now because the parser is incomplete and unsafe to run. The DLL is available at http://ironahk.googlecode.com/svn/trunk/Rusty/bin/Release/IronAHK.Rusty.dll
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Thu Nov 20, 2008 9:18 pm    Post subject: Reply with quote

The parser is up and mostly works! For more information visit the link in my previous post to the message on Google Groups.

For Linux

Building is very easy with the Makefile. You will need Mono 2.0+ and a Subversion client to get the source code:

Code:
$ mkdir IronAHK && cd IronAHK
$ svn co http://ironahk.googlecode.com/svn/trunk/
$ cd trunk
$ make

The standard flags, CC and CFLAGS can be used if your gmcs is not in $PATH or to change compiler settings. To run call mono iak.exe making sure you're in the bin folder first.

For Windows

You will need .NET 2.0 which is installed by default on Vista and XP SP2+. Download TortoiseSVN and VS08. Checkout the source code and open the solution with Visual Studio, press F6 to build.

For non-developers

An installer with newb-friendly tools and documentation will (hopefully) be provided with the v1 release.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ElliottB



Joined: 01 Nov 2008
Posts: 8

PostPosted: Sat Nov 22, 2008 12:39 am    Post subject: Reply with quote

When you reach a stable level, I'll look into porting my basic applications. I think you should look into making 'ike' into more of a platform for rapid prototyping software than just a port of the automating nature of Autohotkey. I've always enjoyed EMCAscript, and I'd prefer to write software in it than C or C++.
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Sun Nov 23, 2008 11:12 am    Post subject: Reply with quote

Over the years we've seen AutoHotkey being used for much more than macros and hotkeys. There is COM, "lowlevel" and extensive use of DllCalls everywhere because the current command set is so limited for the Windows developer. IronAHK was designed with this in mind and although the focus is cross-platform automation, the platform is open to all other aspects of scripting with APIs planned for database integration, sockets and much more.
I'm also a fan of EcmaScript. It is something all C#, Java, JavaScript and ActionScript programmers will instantly recognize. Writing a conversion utility for .ahk scripts to this syntax is a high priority task but will probably come after a v1 release. Thank you for your interest.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IsNull



Joined: 10 May 2007
Posts: 593
Location: .switzerland

PostPosted: Sun Nov 23, 2008 2:19 pm    Post subject: Reply with quote

Dear Titan,

I'm glad to see progress in this Project. I would love to write Applications for Linux with AHK. I'm curently installing TortoiseSVN and will try it Smile

Quote:
The parser is up and mostly works!

SOunds good, but u have marked the status from the parser as 35%. Do you only have forgotten to update this value?


Thanks for your hard work!
regards
IsNull
_________________
http://securityvision.ch
AHK 2D GAME ENGINE
Back to top
View user's profile Send private message Visit poster's website
twhyman



Joined: 07 Dec 2005
Posts: 339

PostPosted: Fri Nov 28, 2008 11:53 pm    Post subject: Reply with quote

Hi,

Will IronAHK be able to behave like a console script?
I mean see the output in CMD.exe for instance?

Thanks,
Twhyman
_________________
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Sat Nov 29, 2008 11:43 am    Post subject: Reply with quote

IsNull wrote:
SOunds good, but u have marked the status from the parser as 35%. Do you only have forgotten to update this value?
The information there was outdated, the parser is now 100% complete. The current task is writing an AutoHotkey v1 compatibility layer which is still in the early stages. Feedback from IRC indicated that ECMAScript syntax isn't as popular as I had expected among ahk users, so this has the highest priority. Trying to convert Chris' C++ version of script_expression.cpp is near impossible because it is written very poorly (unreadable and unmodular spaghetti code), supposedly for better performance. This means I have to study his parser and write a C# version from scratch.

twhyman wrote:
Will IronAHK be able to behave like a console script?
Yes there will be functions for writing to stdout, stderr and reading stdin. Common needs for this would be CGI for HTTP and of course command line scripts (none of my Linux servers have a desktop environment).
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
snaggy
Guest





PostPosted: Fri Dec 05, 2008 5:50 pm    Post subject: os x Reply with quote

Let's see if i understand this well...
I could with this script my OS X as I used to in windows? Send mouse clicks, remap keyboard, check which windows is open and what its title is... even if it's written in cocoa and not WinForms/GTk# ??

If so.. well.. it's fantastic !

Bye the way, if you're writing this in Mono, I could be able to access its commands with C#, and wouldn't need to use AHK Syntax at all, right?, combining the power of dotnet with the ease of use of ahk..
Back to top
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Fri Dec 05, 2008 7:30 pm    Post subject: Reply with quote

I haven't looked into Cocoa# much recently but last time I checked the API was unstable or still incomplete. It should be straightforward to support but it'll have to happen at a later date. I personally do not have a Mac so I'll need someone to help me debug etc.

The Makefile creates IronAHK.Rusty.dll which is the core library of commands and functions. You can use it independently in any .NET/Mono application. More details soon.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
moro
Guest





PostPosted: Sat Dec 06, 2008 1:32 pm    Post subject: Reply with quote

Could i get small example how i use it?

Cause for example this code does nothing:

Rusty.Script script = new Script();
script.SetTitleMatchMode("2");
script.WinActivate("Mozilla Firefox", String.Empty, String.Empty, String.Empty);
Console.ReadLine();
script.MouseMove(350,350, 60, true);
Console.ReadLine();

what is wrong? I tried to compile with flag "Allow unsafe code" and it is the same.

Additional info:
Windows 2008 64k
Visual Studio 2008
Framework 3.5
Back to top
moro
Guest





PostPosted: Sat Dec 06, 2008 8:12 pm    Post subject: Reply with quote

Ok found solution setting platform target( in vs ) x86 - and it runs. If i leave it with setting "any cpu" it runs only on 32-bit machines. Still don`t know why( looking into it ) but it works.
Back to top
jeffrey296



Joined: 18 Jul 2008
Posts: 8
Location: Virginia

PostPosted: Sat Dec 20, 2008 11:18 pm    Post subject: wait a min... Reply with quote

So I understand the necessity for this project (being a subscriber to a previous forum trying to get this started), but what are the features (other than smaller file size) that make it better in Windows? Is the .NET framework the only change (projected or current)?

Also, I know someone who has a Mac who would be happy to test any pre-release versions you need to test, just pm me or post it on this forum (with detailed instructions).

Congrats on the project, I'm incredibly happy to see this thing going (a linux version has been desperately needed).
_________________
Jeff
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> General Chat All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 2 of 6

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group