AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: March 9th, 2010, 1:12 pm 
Was just wondering if it is at all possible to run a script from a webpage. Sorry kind of new..

Thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 1:25 pm 
What for?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 1:25 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
"kind of new" suggests that you are already familiar with the AutoHotkey forum which means you know there is a search function :wink: This question was asked just last week if I remember correctly. Search for it :wink:

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 7:25 pm 
There was nothing on this particular subject.

All I want is a webpage opened in IE or FF to launch an AHK script on my computer.

Hope this makes sense.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 7:57 pm 
perhaps this threadmight help ...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 9:43 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
This will launch a script if a the site is loaded in Firefox or IE that does not use COM.
It uses browser errorlevel combined with regex to resolve the condition.
Still quite complex if you've just started.
Code:
; Temporarily removed until further notice..
This can be condensed and will faster when the lines, functions and timers with 'This can be removed!' are removed.

hth

Just found out that this can be used for viruses! If this was posted by Jake (my little brother) I'm going to kick your ass you little prick!

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Last edited by TLM on March 9th, 2010, 10:23 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 9:46 pm 
Offline

Joined: December 24th, 2008, 3:25 am
Posts: 1401
Location: :noitacoL
Quote:
to run a script from a webpage


Another option:

I have stored a .AHK file on a MicroSoft SharePoint site, and you can click and run it directly from the SP page itself.


Haven't tried with anything other than sharepoint, but if you can get/make a sharepoint site/portal, i know from experience that direct links (like in an email) can run an AHK script through SP.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 10:42 pm 
Offline

Joined: February 27th, 2009, 9:11 am
Posts: 693
Location: Burbank, California
I like the sharepoint idea, but believe this is not what Web->Ahk is looking for. If I am dot mistaken, Web->Ahk wants a script to be launched if a specific website is opened. I.e. if, say, Gmail is opened, some script is triggered. If I misunderstood, skip the rest.

If not here is a working example:
Code:
#NoEnv
#SingleInstance Force
top:
WinWait, Gmail
SoundPlay *-1                        ;or lauch something else
loop
{
IfWinExist, Gmail                      ;if Gmail is open sleep 2 seconds
{
sleep, 2000
continue
}                           
gosub, top                                                   ;if Gmail has closed, reload
}


the script is "reloaded" if gmail is closed and ready to be triggered again if gmail is opened again.
Don't know what it could be used for, but...

_________________
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 10th, 2010, 12:04 am 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
Guys, I'm sorry, look like this particular thread was my fault.

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, rbrtryn, Yahoo [Bot] and 68 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