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 

How can I select "show original" in Gmail?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Rob08
Guest





PostPosted: Mon Aug 18, 2008 5:34 pm    Post subject: How can I select "show original" in Gmail? Reply with quote

Since I can't use mouse coordinates(the button always changes the position), how can I make a script for selecting "show original"?

Back to top
Krogdor



Joined: 18 Apr 2008
Posts: 1145
Location: The Interwebs

PostPosted: Mon Aug 18, 2008 6:33 pm    Post subject: Reply with quote

I would suggest using ImageSearch to find the location of the button, then use those coordinates to click it.
Back to top
View user's profile Send private message AIM Address
Rob08
Guest





PostPosted: Tue Aug 19, 2008 3:11 am    Post subject: Reply with quote

Could you give me an example? I don't know how to use imagesearch.

Ps. I've read the manual of course.

Code:

ImageSearch, FoundX, FoundY, 40,40, 300, 300, C:\My Images\test.bmp



In my case, do i have to point to the URL or do i have to save the reply button(image) anyway?
Well, I don't know if i'm clear enough.

I'd try this. Does it make sense?

Code:
ImageSearch, FoundX, FoundY, 40,40, 300, 300, http://mail.google.com/mail/?shva=1#inbox/11a8f1eefed21648
Back to top
scottmattes



Joined: 21 May 2007
Posts: 98
Location: USA

PostPosted: Tue Aug 19, 2008 12:16 pm    Post subject: Reply with quote

You would use a file with a screen capture of the button, not the URL.
_________________
-------------
Scott Mattes

My small, but growing, collection of scripts.
Back to top
View user's profile Send private message Visit poster's website
Rob08
Guest





PostPosted: Tue Aug 19, 2008 1:30 pm    Post subject: Reply with quote

Based on this http://www.autohotkey.com/forum/post-110612.html#110612 script I've made this one:

Code:
SetTitleMatchMode, 2

WinWaitActive, - Opera
sleep, 250
 

ImageSearch, OutputVarX, OutputVarY, 0, 0, 40, 40, quote.bmp
;It should find the "quote" button in this forum, but actually it finds the Opera logo.


MouseMove, %OutputVarX%, %OutputVarY%, 10
Sleep, 2000

MouseMove, 200, 200, 5, R
sleep, 2000

OutputVarX+=5 
OutputVarY+=5
MouseMove, %OutputVarX%, %OutputVarY%, 10


Return

F12::ExitApp
Back to top
n-l-i-d
Guest





PostPosted: Tue Aug 19, 2008 3:39 pm    Post subject: Reply with quote

Or, you could use/search the forum for JavaScript/COM. Always better than using ImageSearch or mousemoves/keystrokes on webpages.

HTH
________________________________________________________
New here? Please, before you post...
1. Read the tutorial and try the examples. -> 2. Take a look at the command list to get an idea of what you could do. -> 3. Create your script. Consult the documentation and the FAQ if you get stuck. -> 4. Search the forum if you need help or examples, method 1 (forum), method 2 (site), method 3 (Google). -> 5. Post your code on the forum in the "Ask for Help" section if you still run into problems (but read this first). -> 6. There is more AHK on autohotkey.net and the Wiki and there is an AHK IRC chat.
Back to top
Rob08
Guest





PostPosted: Wed Aug 20, 2008 3:05 pm    Post subject: Reply with quote

n-l-i-d wrote:
Or, you could use/search the forum for JavaScript/COM. Always better than using ImageSearch or mousemoves/keystrokes on webpages.

HTH


Specifically... ?
Back to top
n-l-i-d
Guest





PostPosted: Wed Aug 20, 2008 3:11 pm    Post subject: Reply with quote

Did you use the search as I suggested?
Back to top
Sivvy



Joined: 21 Jul 2008
Posts: 711
Location: Calgary, AB, Canada

PostPosted: Wed Aug 20, 2008 3:12 pm    Post subject: Reply with quote

Specifically... Javascript Injection. That should help.
Back to top
View user's profile Send private message MSN Messenger
Rob08
Guest





PostPosted: Wed Aug 20, 2008 3:13 pm    Post subject: Reply with quote

I've tried again with no success. This is quite hard.

Code:
F::

ImageSearch, OutputVarX, OutputVarY, 0, 0, 40, 40, reply.bmp
; using this image http://img84.imageshack.us/img84/8687/replyzh1.png


MouseMove, %OutputVarX%, %OutputVarY%, 10
Sleep, 2000

MouseMove, 200, 200, 5, R
sleep, 2000

OutputVarX+=5 
OutputVarY+=5
MouseMove, %OutputVarX%, %OutputVarY%, 10


Return

F12::ExitApp
Back to top
Rob08
Guest





PostPosted: Wed Aug 20, 2008 3:15 pm    Post subject: Reply with quote

n-l-i-d wrote:
Did you use the search as I suggested?


Yep, I've seen lots of topics.
Back to top
n-l-i-d
Guest





PostPosted: Wed Aug 20, 2008 3:23 pm    Post subject: Reply with quote

I saw you posted your request at the AutoIt forum too

I think the posting by Skruge should help. I took a look at the source of the GMail page too, but could not find the necessary code...

HTH
Back to top
WangL
Guest





PostPosted: Sun Aug 24, 2008 5:30 am    Post subject: Reply with quote

I automated Gmail functions with the free iMacros for Firefox add-on, see
http://wiki.imacros.net/Secure_Gmail_Login
http://www.iopus.com/imacros/firefox/
You can use the command line interface to combine it with AHK Very Happy
Back to top
tank



Joined: 21 Dec 2007
Posts: 1033

PostPosted: Sun Aug 24, 2008 6:27 am    Post subject: Reply with quote

tank wrote:
I have posted as a separate thread some documentation and COM\IE tutorials

Included are some basic instructions for accessing DOM

These are not wrapped this is a tutorial so that folks with questions can find there own answers
http://www.autohotkey.com/forum/viewtopic.php?t=34972

_________________
Read this
Com
Automate IE7 with Tabs
Back to top
View user's profile Send private message
Rob08
Guest





PostPosted: Mon Aug 25, 2008 6:54 pm    Post subject: Reply with quote

Thanks all for your responses, but finally I've learnt it.

Code:
ImageSearch, X, Y, 0, 0, 1280, 1024,  *50 D:\Documents and Settings\name\Desktop\arrow.bmp

; http://img50.imageshack.us/img50/5568/arrowmk1.png
; imageshack.us modifies the file extension.


        MouseClick,, X, Y


Very Happy Very Happy Very Happy

AHK is great! Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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