Jump to content

from DebugBar, I retrieved some info , and controlclick, doesn't work


Recommended Posts

Hello. Everyone.

From helps from you guys, i found DebugBar, and installed it.

I retrieved some infomation using it.

which is<INPUT class=" x-form-field x-form-text x-form-focus" id=my-4 style="WIDTH: 155px" tabIndex=0 __eventBits="7165">

this DIV class cannot be seen from html source.

Script is like this, but cannot find that control. plz help me..;(

$hIE=_IEPropertyGet($handle_NMS, "hwnd")
Controlsend($hIE, "", "[Class:  x-form-field x-form-text  x-form-focus; ID:my-4]", "sldksldkslkdsldk")

plz help me.. ^_^

Link to comment
Share on other sites

Hello. Everyone.

From helps from you guys, i found DebugBar, and installed it.

I retrieved some infomation using it.

which is<INPUT class=" x-form-field x-form-text x-form-focus" id=my-4 style="WIDTH: 155px" tabIndex=0 __eventBits="7165">

this DIV class cannot be seen from html source.

Script is like this, but cannot find that control. plz help me..;(

$hIE=_IEPropertyGet($handle_NMS, "hwnd")
Controlsend($hIE, "", "[Class:  x-form-field x-form-text  x-form-focus; ID:my-4]", "sldksldkslkdsldk")

plz help me.. ;)

The path to an element that you get from DebugBar cannot be used with ControlSend(). The most interesting attribute is "id=my-4". You could use _IEGetObjByID() to get the object reference and _IEFormElementSetValue() to set the value.

Check the example scripts in the help file for those functions.

^_^

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

I solved problem using IEFormElementSetvalue.

but How can i CLICK the image or link with ID ???

ID tag retrieved from Debugbar is like this.

<TR><TD> <Div class="4-1-no-chile" id=id-4 style="Width: 199px; CURSOR: pointer; HEIGHT: 19px" _eventBits="49"></DIV>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...