AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: ahk in a website?
PostPosted: October 7th, 2005, 1:16 am 
Hi..is this wonderful program able to function on a website? I'd like to put an ahk script on my website...how would i go about doing this?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 7th, 2005, 7:12 am 
What should it do? Work as a CGI ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 7th, 2005, 6:23 pm 
Offline

Joined: October 6th, 2005, 7:25 am
Posts: 24
If you want to have hotkeys that work for anyone that loads your webpage, you'll have to use javascript to write that.

Or you could just offer a link to your script and let people download it. I'm not sure I understand the question.

Also, see here http://www.autohotkey.com/forum/viewtopic.php?t=923


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 7th, 2005, 11:58 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
BoBo wrote:
What should it do? Work as a CGI ?
Is that possbile? How can it be done?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2005, 5:19 am 
Offline

Joined: October 3rd, 2005, 2:42 am
Posts: 186
Just like any other CGI script I'd imagine. You call the script (or compiled exe) from your webserver.

I suspect mouse and screen comands would act on the currently logged in desktop of the server.

I believe the query string will be available in the evironment variables.

So if you set your webserver to associate .ahk files with the ahk exe, then put a file test.ahk in the cgi-bin folder, when someone runs it remotely, it would execute an action on your local machine. This could be really handy for remote control server-management applications! :D

_________________
Yet another hotkeyer.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 10th, 2005, 7:12 pm 
Titan wrote:
BoBo wrote:
What should it do? Work as a CGI ?
Is that possbile? How can it be done?

It works, indeed not directly (tested with Abyss Web Server).
You can use perl to transfer the data to the ahk script (3 perl lines) - e.g into a file that will be read by ahk. After finishing the ahk script perl reads the result data (again 3 perl lines) and sends them back, html formatted.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO and 73 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