AutoHotkey Community

It is currently May 27th, 2012, 4:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ahk to c++ ?
PostPosted: October 11th, 2005, 2:39 am 
Offline

Joined: September 5th, 2005, 7:55 am
Posts: 93
Location: Down the hall, on your left.
Ok. I just thought i'd ask. Is there a way to get my ahk script into C? The reason I ask is, I have been working with AHK for a few months now and my friend in C for the same ammount of time. I make easy progress (because AHK is easier :D) and he get's pissed that i have just made a gui. Now, If i could make my script into C, he would be able to learn from it, and he wouldn't get so pissed.

P.S. It's not that he gets pissed per se just that he wishes he could do the same :).

_________________
Now the world has gone to bed,
Darkness won't engulf my head,
I can see by infra-red,
How I hate the night.

Now I lay me down to sleep,
Try to count electric sheep,
Sweet dream wishes you can keep,
How I hate the night.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 11th, 2005, 2:47 am 
Offline

Joined: August 15th, 2005, 2:57 pm
Posts: 57
Tell your friend to use AHK!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 11th, 2005, 4:42 pm 
Offline

Joined: October 3rd, 2005, 2:42 am
Posts: 186
Nobody has written such a tool, so far as I know, though I'm a newbie, so may be wrong :) However, it SHOULD be possible, since C's abilities are a superset of AHK's.

Probably the best solution for your friend would be to take the AHK manual, and his Windows programmer's reference tomes, and see how to duplicate each function of AHK into C. Some of them are trivial, others would require a great deal of research, which would nontheless be very worthwhile for him to understand windows programming in C.

He could then easily write an ahk-to-C script himself. Even if he didn't, he would have a library of easy-to-use C functions that would do the same things.

_________________
Yet another hotkeyer.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 12th, 2005, 7:44 am 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
Another way would be to create an ahk-programm which communicates per parameters with the C-Source, which would allow him to use many functions of ahk.

I didn't try what's possible, but I think with some work one time he would get nearly full access to ahk...

I will try to create a little programm to create a little GUI from external programm..

Thalon


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 76 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group