| View previous topic :: View next topic |
| Author |
Message |
newwy Guest
|
Posted: Fri Oct 07, 2005 12:16 am Post subject: ahk in a website? |
|
|
| 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
|
Posted: Fri Oct 07, 2005 6:12 am Post subject: |
|
|
| What should it do? Work as a CGI ? |
|
| Back to top |
|
 |
Peepsalot
Joined: 06 Oct 2005 Posts: 24
|
Posted: Fri Oct 07, 2005 5:23 pm Post subject: |
|
|
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 |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Fri Oct 07, 2005 10:58 pm Post subject: |
|
|
| BoBo wrote: | | What should it do? Work as a CGI ? | Is that possbile? How can it be done? |
|
| Back to top |
|
 |
Dewi Morgan
Joined: 03 Oct 2005 Posts: 186
|
Posted: Sat Oct 08, 2005 4:19 am Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Mon Oct 10, 2005 6:12 pm Post subject: |
|
|
| 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 |
|
 |
|