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 

IE button that must be clicked: can i get the co-ordinates ?

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



Joined: 10 Nov 2006
Posts: 110

PostPosted: Thu Jul 09, 2009 7:01 am    Post subject: IE button that must be clicked: can i get the co-ordinates ? Reply with quote

I am able to tab over to a button,
Is there a way to determine my screen co-ordinates when I have tabbed over enough ?

I want to use the click command
but all my monitors are different sizes !
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Jul 09, 2009 7:29 am    Post subject: Reply with quote

Not that I know of...I could be wrong though.
Why not just use then enter key, instead of clicking on it?
Back to top
drmurdoch



Joined: 10 Nov 2006
Posts: 110

PostPosted: Thu Jul 09, 2009 7:36 am    Post subject: Reply with quote

It doesn't allow the [enter] key to activate it !
Back to top
View user's profile Send private message
Z_Gecko
Guest





PostPosted: Thu Jul 09, 2009 8:10 am    Post subject: Reply with quote

http://www.autohotkey.com/forum/topic30599.html
Back to top
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Thu Jul 09, 2009 8:13 am    Post subject: Reply with quote

The space bar usually 'clicks' on a button if that button is focused (has that little border thingy).
_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
Back to top
View user's profile Send private message
drmurdoch



Joined: 10 Nov 2006
Posts: 110

PostPosted: Mon Jul 13, 2009 12:02 am    Post subject: Reply with quote



The button is selected but no keystroke will enact it.

Is there a way to get the screen co-ordinates of the selected button ?
Back to top
View user's profile Send private message
garath



Joined: 24 Mar 2005
Posts: 398
Location: germany

PostPosted: Mon Jul 13, 2009 12:13 am    Post subject: Reply with quote

maybe you could use javaskript to push the button
Back to top
View user's profile Send private message
drmurdoch



Joined: 10 Nov 2006
Posts: 110

PostPosted: Mon Jul 13, 2009 12:23 am    Post subject: Reply with quote

That might work.
I used the IE developer Tool Explorer Bar to figure out some things about this button.

name: imgSubmit
onclick: javascript:frmBasicSubmit(9045453,'Username')
src ht tps://w ww.thelab.com/images0/Submit_button_white_2003.gif

I want to simulate that onclick event !
Back to top
View user's profile Send private message
drmurdoch



Joined: 10 Nov 2006
Posts: 110

PostPosted: Mon Jul 13, 2009 1:57 am    Post subject: Reply with quote

I guess what I need is a one line JS code to accomplish this.

I am reading this but it's not helping me.

Sad

http://www.hscripts.com/tutorials/javascript/dom/button-events.php
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Mon Jul 13, 2009 5:52 am    Post subject: Reply with quote

ctrl + m submits forms on web pages also
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
jethrow



Joined: 24 May 2009
Posts: 1907
Location: Iowa, USA

PostPosted: Mon Jul 13, 2009 6:20 am    Post subject: Reply with quote

drmurdoch wrote:
onclick: javascript:frmBasicSubmit(9045453,'Username') ... I want to simulate that onclick event !

You can do that by feeding that javascript through the URL Address bar. See this
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
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