Jump to content
Sign in to follow this  
trandatnh

<IE.au3> _IEAction cant work

Recommended Posts

trandatnh

I'm writing a small auto play tool for webgame.

main site of webgame I'm playing: www.webgame.com.vn

And I not good with html, javascript, php, or something like that .... :)

Now, I have a problem with them

I use function _IEaction($oIE, "click") to click a button, with normal button, it works

but in this case, It doesn't work.

code of that button:

<button id="i1bb" name=":submit" value="出兵" 
onclick="var wcall=wicketSubmitFormById('actionForm', '?x=99s0f417UgnSomOcC1gAMvYONdymk8ynEd0VgV-XauiT2czVClm2dANf1DnCHoNVVIOIkfy8brb9FYp8SrEwx4udXVfWHSRZuSHfNT-RlwvAGpGVr5op8Oad9-RFOASd', ':submit' ,null,null, function() {return Wicket.$$(this)&amp;&amp;Wicket.$$('actionForm')}.bind(this));;; return false;" type="button">
              Xuất binh
</button>

or view source of the attach file for more information

If u open with browser, scroll down to view the button(only one button =.=")

Thanks very much. And sorry If my E is bad

p/s: my yahoo ID is trandatnh, I'm Vietnamese, I want to learn Autoit with everybody like it :)

XuatBinh.htm

Edited by trandatnh

Share this post


Link to post
Share on other sites
Authenticity

$oElem = _IEGetObjById($oIE, 'i1bb')

_IEAction($oElem, 'click')

_IELoadWait($oIE)

Didn't test it...

Share this post


Link to post
Share on other sites
trandatnh

Thanks for reply.

But It still can't work.

Cuz When I click on it (click by real mouse), will have a pop-up appear.

But When I use _IEAction, that pop-up don't appear.

an example:

When I click by my mouse, a pop-up appear, close pop-up, click by mouse again ~> don't have new pop-up

When I click by _IEAction, no pop-up, click by mouse again ~> don't have new pop-up

So I think _IEAction just click on that button but cant open pop-up.... :)

Someone tell me another way to click button TT_TT!

Edited by trandatnh

Share this post


Link to post
Share on other sites
Authenticity

Try this, I guess there are better ways but that is what came into my mind...

$oElem = _IEGetObjById($oIE, 'i1bb')

_IEAction($oElem, 'focus')

_IEAction($oElem, 'click') or Send('~')

Share this post


Link to post
Share on other sites
trandatnh

Oh thank Authenticity so muchhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

:)

I love u ^^!

Can u tell me your yahoo ID or skyper or an instant messenger ID ?

Ah, can u explain for me about properties "forcus"?

Edited by trandatnh

Share this post


Link to post
Share on other sites
Authenticity

Rofl, thank Dale for his IE AutoIt library.

Read the help file under the function name of course or you can look here

Share this post


Link to post
Share on other sites
trandatnh

Today I have problem with _IEAction again....

Before, I used

$oElem = _IEGetObjById($oIE, 'i1bb')

_IEAction($oElem, 'focus')

_IEAction($oElem, 'click')

it work!

It still work on another PC

But after my pc is formated , this code is not work :)

of cource before and after format, version of IE is the same. (IE 6)

Can anyone explain for me that: "what parameter 'forcus' in _IEAction func do?"

And how can I repair it to work in every PC?

And what version of IE that IE.au3 lib is the best with?

Edited by trandatnh

Share this post


Link to post
Share on other sites
Authenticity

Try to update to IE7, maybe it'll fix it.

Share this post


Link to post
Share on other sites
Bru

Try to update to IE7, maybe it'll fix it.

Don't worry i'm not taking over the thread.

But to that, so does that mean, because i have the old IE, (preinstalled with windows install), this means why my actions do not work when i create something?

Thanks!

Saved me making a new thread thats all.


[right] [/right]

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.