trandatnh Posted February 4, 2009 Share Posted February 4, 2009 (edited) I'm writing a small auto play tool for webgame.main site of webgame I'm playing: www.webgame.com.vnAnd I not good with html, javascript, php, or something like that .... Now, I have a problem with themI use function _IEaction($oIE, "click") to click a button, with normal button, it worksbut 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)&&Wicket.$$('actionForm')}.bind(this));;; return false;" type="button"> Xuất binh </button>or view source of the attach file for more informationIf u open with browser, scroll down to view the button(only one button =.=")Thanks very much. And sorry If my E is badp/s: my yahoo ID is trandatnh, I'm Vietnamese, I want to learn Autoit with everybody like it XuatBinh.htm Edited February 4, 2009 by trandatnh Link to comment Share on other sites More sharing options...
Authenticity Posted February 5, 2009 Share Posted February 5, 2009 $oElem = _IEGetObjById($oIE, 'i1bb') _IEAction($oElem, 'click') _IELoadWait($oIE) Didn't test it... Link to comment Share on other sites More sharing options...
trandatnh Posted February 5, 2009 Author Share Posted February 5, 2009 (edited) 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 February 5, 2009 by trandatnh Link to comment Share on other sites More sharing options...
Authenticity Posted February 5, 2009 Share Posted February 5, 2009 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('~') Link to comment Share on other sites More sharing options...
trandatnh Posted February 5, 2009 Author Share Posted February 5, 2009 (edited) 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 February 5, 2009 by trandatnh Link to comment Share on other sites More sharing options...
Authenticity Posted February 5, 2009 Share Posted February 5, 2009 Rofl, thank Dale for his IE AutoIt library. Read the help file under the function name of course or you can look here Link to comment Share on other sites More sharing options...
trandatnh Posted February 25, 2009 Author Share Posted February 25, 2009 (edited) 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 PCBut 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 February 25, 2009 by trandatnh Link to comment Share on other sites More sharing options...
Authenticity Posted February 25, 2009 Share Posted February 25, 2009 Try to update to IE7, maybe it'll fix it. Link to comment Share on other sites More sharing options...
Bru Posted February 25, 2009 Share Posted February 25, 2009 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now