AutoHotkey Community

It is currently May 27th, 2012, 12:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: July 26th, 2011, 10:15 pm 
Offline

Joined: May 4th, 2008, 3:21 am
Posts: 168
westoncampbell wrote:
tobadyurdead wrote:
the .dbx files where OE saves the emails are encrypted. (maybe it's not encrypted...i don't know much on the matter. The Email contents and subject CAN be searched for in the files....

I think you can apply filters in Outlook to automatically execute programs when a certain keyword is found in the subject of the email. You could add all of the code you want to one script and then pass parameters to the script http://www.autohotkey.com/forum/viewtopic.php?t=74086

Or make a different script for each keyword...


Good thinking! However, the filters allowed in OE6 do not include Run. So no such luck :(


****Edit
Code:
file = gmail.xml
URLDownloadToFile, https://Username:Password@mail.google.com/mail/feed/atom, %file%
FileRead, gfrom, %file%
msgbox,%gfrom%

This will allow you to read the feed from gmail, and you can read all the subjects/message bodys....however, as previously stated, avoiding running the same 'command' repeatedly is an issue. To work around this, you could also read the <issued> tag and save that to an ini file (or w/e you like...) which you reference when you run a command to make sure you haven't run that command (with the same date) previously. I'm not going to work on this right now, i have other things to do, however if it is not worked out when i get back, i will. Happy Scripting!

**Btw, i got that code from

http://www.autohotkey.com/forum/viewtopic.php?t=17963&highlight=email+read

_________________
Feel free to PM me with any questions pertaining to something i posted. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: SMS and AHK
PostPosted: July 26th, 2011, 11:19 pm 
westoncampbell wrote:
What did you have in mind, besides SMS, that would cost less money?!?

...I didn't know you were still using SMS when you said...

westoncampbell wrote:
...and then I tried posting to a blog...

...I thought that meant Internet on your phone. You can only send the commands from your phone with SMS?

westoncampbell wrote:
Websites like Blogger...

...I meant installing your own blog, on your own web server, would be overkill. Perhaps a private Twitter account (or DMing yourself?) would be less overkill than Blogger? If you can post to Twitter (or DM) as an "SMS"?

Do you not have any web server you have access too?

If the commands are coming from SMS, then I'm not sure I can help. I don't know how to link into them...cept the AIM thing you already tried. Does it count as "SMS" if you send to an E-mail address? Apparently, you can send to AIM as an SMS. If you can send to an E-mail from your phone as SMS...& also if you have a web server that can read that E-mail...THEN, you could continue on some of the web server/PHP route I mentioned.

tobadyurdead wrote:
Good thinking! However, the filters allowed in OE6 do not include Run. So no such luck :(

...what about Thunderbird?...& why do people use OE? it's just like IE, it's crap!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 26th, 2011, 11:35 pm 
Offline

Joined: May 12th, 2009, 2:37 pm
Posts: 640
Location: Gloucester UK
Google gave me this

http://tech-tweak.com/2009/12/control-your-computer-through-sms-free-of-cost.html

Not with AHK I know but it indicates that Twitter might be an avenue for investigation.

_________________
The sooner you fall behind, the more time you have to catch up.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2011, 9:12 am 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
westoncampbell wrote:
fragman wrote:
...free (ad-supported) web access for my phone...

How do you receive free web access? Is this something anyone can get?


See https://www.netzclub.net/ . I don't know if there is a provider outside of Germany though.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: SMS and AHK
PostPosted: October 4th, 2011, 5:08 am 
Offline

Joined: September 21st, 2011, 4:54 pm
Posts: 17
Location: NY
Just thinking out loud here, but couldn't a script be devised to auto refresh a twitter feed and use httpquery to look for a specific hashtag? 5. maybe 10, minute interval w/s delay?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2011, 8:27 pm 
Offline

Joined: April 20th, 2009, 1:10 pm
Posts: 817
Location: North Dakota, USA
At one point I ventured into this realm and found it to not be very useful for me. However, what I did actually worked quite well.

I gave my script on my PC a few key words to look for in my Windows Live Messenger status. Each key word executed a command and then sent a confirmation email with a time stamp. With Hotmail, you can sync your Hotmail up and receive a text message whenever you get an email. So, that's how I knew my command executed successfully. I don't have a smartphone either. It's all via texting. It actually works very well.

I stopped working on it because I just really didn't have need for it.

_________________
-Jeremiah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2012, 12:33 am 
Offline

Joined: June 24th, 2008, 8:30 am
Posts: 126
I am actually doing this very thing using a variety of things working together.

Here is what I use.
1. Android phone with Tasker App
This app lets you do http get or http posts. So, I created a task that whenever I receive a text message, it will post the sender name, sender phone number, sms time, and sms body to a php page I created. This page just validates a token I built in and as long as it sees it as me, will then take the posted variables and save them to a mysql database.
2. I am making some good use of this library by panofish: http://www.autohotkey.com/forum/topic77860.html
I have an ahk script that checks my database every 2 seconds for "new" data. (I just use a boolean that is changed once the text has been received by ahk).
3. I then have a tooltip notify me of the new text. The sms message that was retrieved from the mysql database is encrypted and appended to a text file on my computer. I then have a second script that launches a gui with listview of each of my texts. I can see who its from, the time it was recieved, and the message.

I made the listview so when you double click, it opens up a second gui allwoing you to "reply" to the sender. This will then save the reply to the mysql database.
4. Now I'm just trying to figure out how to make my phone grab this info easily and send the text for me.

That is how i stumbled across this thread. I am looking at the possibility of sending the sms straight from ahk rather than going through all that other junk.

Any ideas?

_________________
“Whenever I'm about to do something, I think, 'Would an idiot do that?' And if they would, I do not do that thing.”

-Dwight


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2012, 4:41 pm 
Offline

Joined: March 28th, 2010, 1:32 am
Posts: 681
Location: United States
@smikkelsen

That is actually a great idea! I like it, however I wish to use methods that only rely on SMS, and do not require Internet access on the phone.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2012, 10:05 pm 
Offline

Joined: June 24th, 2008, 8:30 am
Posts: 126
You know what, I acrually came accross another method that I am going to switch to. You still have to have a smart phone because it is by using the app "android notifier". I think there might be an iphone version too.

it connects to your computer using either bluetooth, wifi (just connect to same wifi network as your computer) and they are implementing usb support as well so you could just plug phone into computer.

Here is what I tried with it:
When u receive a text it can notify your computer. On the computer end you can run custom tasks. I just created an ahk script and had the androud notifier launch this script and pass the text info as params. Once your script has that, your imagination is the limit.

I just text myself and it works the same as if someone else texred me. Then on the scriot side of course you could make it so only certain phone numbers can launch your code, etc

Also no need to have scriot running because the notifier will launch ahk when needed.

Hope that helps! It has opened a lot of doors for me.

_________________
“Whenever I'm about to do something, I think, 'Would an idiot do that?' And if they would, I do not do that thing.”

-Dwight


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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