| View previous topic :: View next topic |
| Author |
Message |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Mon Oct 20, 2008 10:39 pm Post subject: |
|
|
| 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. _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
bits
Joined: 17 Nov 2006 Posts: 10
|
Posted: Mon Oct 20, 2008 11:05 pm Post subject: |
|
|
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 |
|
 |
IsNull
Joined: 10 May 2007 Posts: 593 Location: .switzerland
|
|
| Back to top |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
|
| Back to top |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Thu Nov 20, 2008 9:18 pm Post subject: |
|
|
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. _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
ElliottB
Joined: 01 Nov 2008 Posts: 8
|
Posted: Sat Nov 22, 2008 12:39 am Post subject: |
|
|
| 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 |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Sun Nov 23, 2008 11:12 am Post subject: |
|
|
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. _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
IsNull
Joined: 10 May 2007 Posts: 593 Location: .switzerland
|
Posted: Sun Nov 23, 2008 2:19 pm Post subject: |
|
|
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
| 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 |
|
 |
twhyman
Joined: 07 Dec 2005 Posts: 339
|
Posted: Fri Nov 28, 2008 11:53 pm Post subject: |
|
|
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 |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Sat Nov 29, 2008 11:43 am Post subject: |
|
|
| 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). _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
snaggy Guest
|
Posted: Fri Dec 05, 2008 5:50 pm Post subject: os x |
|
|
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
|
Posted: Fri Dec 05, 2008 7:30 pm Post subject: |
|
|
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. _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
moro Guest
|
Posted: Sat Dec 06, 2008 1:32 pm Post subject: |
|
|
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
|
Posted: Sat Dec 06, 2008 8:12 pm Post subject: |
|
|
| 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
|
Posted: Sat Dec 20, 2008 11:18 pm Post subject: wait a min... |
|
|
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 |
|
 |
|