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 

ahk in a website?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
newwy
Guest





PostPosted: Fri Oct 07, 2005 12:16 am    Post subject: ahk in a website? Reply with quote

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?
Back to top
BoBo
Guest





PostPosted: Fri Oct 07, 2005 6:12 am    Post subject: Reply with quote

What should it do? Work as a CGI ?
Back to top
Peepsalot



Joined: 06 Oct 2005
Posts: 24

PostPosted: Fri Oct 07, 2005 5:23 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Fri Oct 07, 2005 10:58 pm    Post subject: Reply with quote

BoBo wrote:
What should it do? Work as a CGI ?
Is that possbile? How can it be done?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dewi Morgan



Joined: 03 Oct 2005
Posts: 186

PostPosted: Sat Oct 08, 2005 4:19 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Oct 10, 2005 6:12 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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