Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #11  
Old 06-27-2012, 12:06 AM
XOR XOR is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Default

It does not trigger at all, it does find the tag (img) but not the image itself. Here are the attributes for the arrowright.

PHP Code:
accessKey""
align""
alt""
attributesNamedNodeMap
baseURI
"http://sigma.pokemonvortex.org/map.php?map=14"
border""
childElementCount0
childNodes
NodeList[0]
childrenHTMLCollection[0]
classListDOMTokenList
className
""
clientHeight24
clientLeft
0
clientTop
0
clientWidth
25
complete
true
contentEditable
"inherit"
crossOrigin""
datasetDOMStringMap
dir
""
draggabletrue
firstChild
null
firstElementChild
null
height
24
hidden
false
hspace
0
id
""
innerHTML""
innerText""
isContentEditablefalse
isMap
false
lang
""
lastChildnull
lastElementChild
null
localName
"img"
longDesc""
lowsrc""
name""
namespaceURI"http://www.w3.org/1999/xhtml"
naturalHeight24
naturalWidth
25
nextElementSibling
null
nextSibling
null
nodeName
"IMG"
nodeType1
nodeValue
null
offsetHeight
24
offsetLeft
1
offsetParent
HTMLTableCellElement
offsetTop
1
offsetWidth
25
onabort
null
onbeforecopy
null
onbeforecut
null
onbeforepaste
null
onblur
null
onchange
null
onclick
: function onclick(event) {
oncontextmenunull
oncopy
null
oncut
null
ondblclick
null
ondrag
null
ondragend
null
ondragenter
null
ondragleave
null
ondragover
null
ondragstart
null
ondrop
null
onerror
null
onfocus
null
oninput
null
oninvalid
null
onkeydown
null
onkeypress
null
onkeyup
null
onload
null
onmousedown
null
onmousemove
null
onmouseout
null
onmouseover
null
onmouseup
null
onmousewheel
null
onpaste
null
onreset
null
onscroll
null
onsearch
null
onselect
null
onselectstart
null
onsubmit
null
onwebkitfullscreenchange
null
outerHTML
"<img style="cursor:pointer;" width="25" height="24" onclick="PlayRequest(7,64);" src="http://static.pokemonvortex.org/images/maps/arrows/arrowright.gif">"
outerText""
ownerDocumentHTMLDocument
parentElement
HTMLTableCellElement
parentNode
HTMLTableCellElement
prefix
null
previousElementSibling
null
previousSibling
null
scrollHeight
24
scrollLeft
0
scrollTop
0
scrollWidth
25
spellcheck
true
src
"http://static.pokemonvortex.org/images/maps/arrows/arrowright.gif"
styleCSSStyleDeclaration
tabIndex
: -1
tagName
"IMG"
textContent""
title""
useMap""
vspace0
webkitdropzone
""
width25
x
1166
y
194 
As you can see it does not have a specific name, and all these attributes are the same for the other arrows. Except for the src="".

I have no idea how to continue from here.

Kind Regards,
XOR
Reply With Quote
  #12  
Old 06-27-2012, 03:40 PM
Ouiji Ouiji is offline
Senior Member
 
Join Date: Nov 2001
Location: US of A
Posts: 478
Send a message via AIM to Ouiji
Default

Can you try changing where it calls for Image.name to Image.src and then have it looking for '"http://static.pokemonvortex.org/images/maps/arrows/arrowright.gif"'

So..
If Image.Src = '
"http://static.pokemonvortex.org/images/maps/arrows/arrowright.gif"' then begin


-ouiji
__________________
"not quite smart enough to be dumb"
Extended Stats No Longer Available Due To Changes To The Forum.
Reply With Quote
  #13  
Old 06-27-2012, 04:01 PM
XOR XOR is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Default

Thank you for your reply,

I am going to give it a spin. Will post the results!

EDIT:

According to the debugger, it doesn't even find the

PHP Code:
src="http://static.pokemonvortex.org/images/maps/arrows/arrowright.gif" 
Maybe because it's hidden in frames or does it already search in the frames for it. I know that there is a DIV with the TAG called arrows. Already tried that but with the same results.

Kind Regards,
XOR

Last edited by XOR; 06-27-2012 at 04:09 PM.
Reply With Quote
  #14  
Old 06-27-2012, 04:23 PM
Ouiji Ouiji is offline
Senior Member
 
Join Date: Nov 2001
Location: US of A
Posts: 478
Send a message via AIM to Ouiji
Default

Do you know if it is getting to this section in the code..?

Code:
 if Assigned(InputImage) then
        begin
          if InputImage.src = 'submit' then
Or does it not even get to there?

If it does, can you create a memo or something to output all of the possible unique properties of the image? For example:
Code:
 if Assigned(InputImage) then
        begin
          memo1.lines.add(InputImage.src);
          memo1.lines.add(InputImage.lowsrc);
          memo1.lines.add(Inttostr(InputImage.tabindex));
To see if there is anything unique you can look for? If not I will see if I can come up with something else.. Its frustrating since I cannot test it myself since I am at the office.
__________________
"not quite smart enough to be dumb"
Extended Stats No Longer Available Due To Changes To The Forum.
Reply With Quote
  #15  
Old 06-28-2012, 12:43 AM
XOR XOR is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Default

I've posted the attributes of the rightarrow some posts back and I just got the attributes from leftarrow.

Basically, those are the two arrows I need to click without moving the mouse/cursor so people can freely do whatever they want to.

Left Arrow:

PHP Code:
accessKey""
align""
alt""
attributesNamedNodeMap
baseURI
"http://sigma.pokemonvortex.org/map.php?map=13"
border""
childElementCount0
childNodes
NodeList[0]
childrenHTMLCollection[0]
classListDOMTokenList
className
""
clientHeight24
clientLeft
0
clientTop
0
clientWidth
25
complete
true
contentEditable
"inherit"
crossOrigin""
datasetDOMStringMap
dir
""
draggabletrue
firstChild
null
firstElementChild
null
height
24
hidden
false
hspace
0
id
""
innerHTML""
innerText""
isContentEditablefalse
isMap
false
lang
""
lastChildnull
lastElementChild
null
localName
"img"
longDesc""
lowsrc""
name""
namespaceURI"http://www.w3.org/1999/xhtml"
naturalHeight24
naturalWidth
25
nextElementSibling
null
nextSibling
null
nodeName
"IMG"
nodeType1
nodeValue
null
offsetHeight
24
offsetLeft
1
offsetParent
HTMLTableCellElement
offsetTop
1
offsetWidth
25
onabort
null
onbeforecopy
null
onbeforecut
null
onbeforepaste
null
onblur
null
onchange
null
onclick
: function onclick(event) {
oncontextmenunull
oncopy
null
oncut
null
ondblclick
null
ondrag
null
ondragend
null
ondragenter
null
ondragleave
null
ondragover
null
ondragstart
null
ondrop
null
onerror
null
onfocus
null
oninput
null
oninvalid
null
onkeydown
null
onkeypress
null
onkeyup
null
onload
null
onmousedown
null
onmousemove
null
onmouseout
null
onmouseover
null
onmouseup
null
onmousewheel
null
onpaste
null
onreset
null
onscroll
null
onsearch
null
onselect
null
onselectstart
null
onsubmit
null
onwebkitfullscreenchange
null
outerHTML
"<img style="cursor:pointer;" width="25" height="24" onclick="PlayRequest(5,123);" src="http://static.pokemonvortex.org/images/maps/arrows/arrowleft.gif">"
outerText""
ownerDocumentHTMLDocument
parentElement
HTMLTableCellElement
parentNode
HTMLTableCellElement
prefix
null
previousElementSibling
null
previousSibling
null
scrollHeight
24
scrollLeft
0
scrollTop
0
scrollWidth
25
spellcheck
true
src
"http://static.pokemonvortex.org/images/maps/arrows/arrowleft.gif"
styleCSSStyleDeclaration
tabIndex
: -1
tagName
"IMG"
textContent""
title""
useMap""
vspace0
webkitdropzone
""
width25
x
1109
y
194 
And here is the right arrow.

PHP Code:
accessKey"" 
align"" 
alt"" 
attributesNamedNodeMap 
baseURI
"http://sigma.pokemonvortex.org/map.php?map=14" 
border"" 
childElementCount
childNodes
NodeList[0
childrenHTMLCollection[0
classListDOMTokenList 
className
"" 
clientHeight24 
clientLeft

clientTop

clientWidth
25 
complete
true 
contentEditable
"inherit" 
crossOrigin"" 
datasetDOMStringMap 
dir
"" 
draggabletrue 
firstChild
null 
firstElementChild
null 
height
24 
hidden
false 
hspace

id
"" 
innerHTML"" 
innerText"" 
isContentEditablefalse 
isMap
false 
lang
"" 
lastChildnull 
lastElementChild
null 
localName
"img" 
longDesc"" 
lowsrc"" 
name"" 
namespaceURI"http://www.w3.org/1999/xhtml" 
naturalHeight24 
naturalWidth
25 
nextElementSibling
null 
nextSibling
null 
nodeName
"IMG" 
nodeType
nodeValue
null 
offsetHeight
24 
offsetLeft

offsetParent
HTMLTableCellElement 
offsetTop

offsetWidth
25 
onabort
null 
onbeforecopy
null 
onbeforecut
null 
onbeforepaste
null 
onblur
null 
onchange
null 
onclick
: function onclick(event) { 
oncontextmenunull 
oncopy
null 
oncut
null 
ondblclick
null 
ondrag
null 
ondragend
null 
ondragenter
null 
ondragleave
null 
ondragover
null 
ondragstart
null 
ondrop
null 
onerror
null 
onfocus
null 
oninput
null 
oninvalid
null 
onkeydown
null 
onkeypress
null 
onkeyup
null 
onload
null 
onmousedown
null 
onmousemove
null 
onmouseout
null 
onmouseover
null 
onmouseup
null 
onmousewheel
null 
onpaste
null 
onreset
null 
onscroll
null 
onsearch
null 
onselect
null 
onselectstart
null 
onsubmit
null 
onwebkitfullscreenchange
null 
outerHTML
"<img style="cursor:pointer;" width="25" height="24" onclick="PlayRequest(7,64);" src="http://static.pokemonvortex.org/images/maps/arrows/arrowright.gif">" 
outerText"" 
ownerDocumentHTMLDocument 
parentElement
HTMLTableCellElement 
parentNode
HTMLTableCellElement 
prefix
null 
previousElementSibling
null 
previousSibling
null 
scrollHeight
24 
scrollLeft

scrollTop

scrollWidth
25 
spellcheck
true 
src
"http://static.pokemonvortex.org/images/maps/arrows/arrowright.gif" 
styleCSSStyleDeclaration 
tabIndex
: -
tagName
"IMG" 
textContent"" 
title"" 
useMap"" 
vspace
webkitdropzone
"" 
width25 
x
1166 
y
194 
As far as I can see both X:Y values are unique. Well, the X value is unique and Y appears to be the same. Maybe that is something to start from/with ?

Kind Regards,
XOR

Last edited by XOR; 06-28-2012 at 12:45 AM.
Reply With Quote
  #16  
Old 06-28-2012, 03:50 PM
Ouiji Ouiji is offline
Senior Member
 
Join Date: Nov 2001
Location: US of A
Posts: 478
Send a message via AIM to Ouiji
Default

I realize you did post the attributes of the images previously, the reason I asked if you could get them via code, was to see if the function was pulling any of the info from the images through code, not because I wanted to know what they were. If you can see if it is able to see any of the information from the images, you can build off of that pretty easily..
__________________
"not quite smart enough to be dumb"
Extended Stats No Longer Available Due To Changes To The Forum.
Reply With Quote
  #17  
Old 06-28-2012, 03:53 PM
XOR XOR is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Default

Quote:
Originally Posted by Ouiji View Post
I realize you did post the attributes of the images previously, the reason I asked if you could get them via code, was to see if the function was pulling any of the info from the images through code, not because I wanted to know what they were. If you can see if it is able to see any of the information from the images, you can build off of that pretty easily..
I'm sorry for the previous reply, it was in the middle of the night when I posted it. I'll work on that asap. I have a few things to do first. I'll reply as soon if I have the results!

Thank you for your help Ouiji!

Kind Regards,
XOR
Reply With Quote
  #18  
Old 06-28-2012, 10:14 PM
XOR XOR is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Default

I've tried what you suggested.

It does not go there with:

PHP Code:
if Assigned(InputImagethen
        begin
          
if InputImage.src 'submit' then 
and I have done this in a Memo1:

PHP Code:
 if Assigned(InputImagethen
        begin
          memo1
.lines.add(InputImage.src);
          
memo1.lines.add(InputImage.lowsrc);
          
memo1.lines.add(Inttostr(InputImage.tabindex)); 
But it simply gave me a access violation if I tried it with "img" and it didn't find anything for "INPUT". Same goes for "IMG" and I have tried "arrows" all without any luck.

Kind Regards,
XOR
Reply With Quote
  #19  
Old 06-29-2012, 09:51 AM
jm78 jm78 is offline
Member
 
Join Date: Sep 2007
Posts: 38
Default

Quote:
Originally Posted by XOR View Post
Hello guys,
PHP Code:
<img style="cursor:pointer;" width="25" height="24" onclick="PlayRequest(7,12, 4);" src="http://static.pokemonvortex.org/images/maps/arrows/arrowright.gif"
That's image and onclick javascript function, there is no form / submit

Can't you just run the script (untested ofcourse)

Code:
Webbrowser1.oleobject.document.parentWindow.ExecScript('PlayRequest(7,12, 4);', 'javascript');
Reply With Quote
  #20  
Old 06-29-2012, 01:56 PM
XOR XOR is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Default

Quote:
Originally Posted by jm78 View Post
That's image and onclick javascript function, there is no form / submit

Can't you just run the script (untested ofcourse)

Code:
Webbrowser1.oleobject.document.parentWindow.ExecScript('PlayRequest(7,12, 4);', 'javascript');
Hello jm78,

It totally works now. Wow, I'm speecheless now. Thank you for your reply and of course I would like to thank Ouiji for helping me as well!

This topic now can have lock on it!

Kind Regards,
XOR
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 06:10 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2014, vBulletin Solutions, Inc.