dotkich833 Posted February 19, 2012 Share Posted February 19, 2012 I'm writinganautoto automaticallyclickonnextbutton.But I cann't use_IELinkClickByTextfunction.Who canhelp me?<input type="button" value="Next" style="font-size:18px;" onclick="OnNext(this.form)" class="button"> Link to comment Share on other sites More sharing options...
akalie Posted February 19, 2012 Share Posted February 19, 2012 there is a very hard way:use search paterns, but if there is a limited number of places there button could be and how it may look... We made a couple of functions to search an image on the area of the screen, using pixel checksumes. ps sorry my english Sorry my English)) Link to comment Share on other sites More sharing options...
water Posted February 19, 2012 Share Posted February 19, 2012 Why can't you use _IELinkClickByText? Try _IELinkClickByIndex or _IEAction($object, "click") My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dotkich833 Posted February 19, 2012 Author Share Posted February 19, 2012 I use _IELinkClickByText but it's not auto click Link to comment Share on other sites More sharing options...
water Posted February 19, 2012 Share Posted February 19, 2012 What do you mean by "auto click" and can you post the code you use? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dotkich833 Posted February 19, 2012 Author Share Posted February 19, 2012 (edited) #include <IE.au3> $oIE = _IECreate ("http://www.autoitscript.com/",1) $o_submit = _IEGetObjByName ($oIE, "next") _IEAction ($o_submit, "click") sorry, that site I cann't give Edited February 19, 2012 by dotkich833 Link to comment Share on other sites More sharing options...
water Posted February 19, 2012 Share Posted February 19, 2012 Unfortunately there is no next button on this site. Therefore I can't test. Can you find a public site which can't be automated by your script? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
xeroTechnologiesLLC Posted February 19, 2012 Share Posted February 19, 2012 i'm having the same problem, with IE7 and forcing focus continuously onto the Add Report button. I've even tried controlClick function and no go. The strange thing is, it works - the first time the program runs. But it will not run any consecutive time after that. Any thoughts as to why? Link to comment Share on other sites More sharing options...
bogQ Posted February 19, 2012 Share Posted February 19, 2012 sorry, that site I cann't givewell then the only opinion i can give you is thisyou dont have *name='"SomeName"* of the button and you're trying to use its *value="Data"* as *name='"Data"*,anyone see something wrong here?(i do think will never work because let's face it, you're trying to work with name instead with value?!! ofc i can b wrong heare i dont say im correct O_o)i suggest you to try to use _IE* collections, and after you finde correct object it shud workApart from that, you did not supply testing URL so i hardly think that someone can blindly help you to get to work with something that don't exist.so im gona try to direct you to this example in hope that example with www.google.com/advanced_search in it will geave you some clue about _IE* Collection, have fun playing TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
water Posted February 19, 2012 Share Posted February 19, 2012 What we need to help you isa site and the button you want to clickthe IE version you runthe AutoIt version you runa short reproducer script that always gives the error you descirbe My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
xeroTechnologiesLLC Posted February 19, 2012 Share Posted February 19, 2012 Well, after having some more points of view on the matter here in house I figured out that I had a variable that was not clearing correctly after the initial time the program ran. I was using a time variable to tack onto the end of a report name that was polling every time the program ran. The problem was the variable was right only for the time the program ran - not every time the function ran. /face palm/ So..yeah, just ignore the noob. Just passing through... Link to comment Share on other sites More sharing options...
gicungduoc Posted September 10, 2013 Share Posted September 10, 2013 Hi All, I got the same problem when tried to make auto click on the button for the site with this button property as below: <input type="button" value="Change" style="font-size:10px" onclick="if (confirm('Do you want to confirm?')) { window.location.href='last_update.php?list_id=' + approve_all(261,280) + '&redirect=ZGFuaHNhY2gucGhwPyZwYWdlPTE0'; }"> The button has no name or id so i could not use normal way to click on it. Please help me to solve this issue. Thanks all. [topic='27925']WebcamExample[/topic] || [topic='68866']WebcamUDF[/topic] || [topic='138222']DSShowCaptureFilter[/topic] || [topic='20121']ScreenResolutionChange[/topic] || [topic='139426']WebcamDS[/topic] || [topic='156613']ObfuscatorUTF8[/topic] || [topic='156219']VideoColorSystemPAL/NTSC[/topic] || [topic='31963']ExcelWindowsInGUI[/topic] || [topic='110473']4Webcam[/topic] || [topic='83763']RichEdit[/topic] || [topic='83763']RichEditUDF[/topic] || [topic='142384']RichEditLabel[/topic] ||[topic='96986']GUITFLabel[/topic] || [topic='32144']AccessCom[/topic] || [topic='38353']BetaPad[/topic] || [topic='31963']EmbeddedExcel[/topic] Link to comment Share on other sites More sharing options...
corgano Posted September 10, 2013 Share Posted September 10, 2013 (edited) Take the onclick="...." action $action = "if (confirm('Do you want to confirm?')) { window.location.href='last_update.php?list_id=' + approve_all(261,280) + '&redirect=ZGFuaHNhY2gucGhwPyZwYWdlPTE0'; }" Assuming $action is javascript, you may also be able to get away with using _IENavigate _IENavigate($oIE,"javascript:"&$action) I use this instead of clicking javascript buttons Edited September 10, 2013 by corgano 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e Link to comment Share on other sites More sharing options...
gicungduoc Posted September 10, 2013 Share Posted September 10, 2013 Done, It's work well. I've solved problem that make me sleepless and take some more white hair . Thanks a lot "corgano"..... [topic='27925']WebcamExample[/topic] || [topic='68866']WebcamUDF[/topic] || [topic='138222']DSShowCaptureFilter[/topic] || [topic='20121']ScreenResolutionChange[/topic] || [topic='139426']WebcamDS[/topic] || [topic='156613']ObfuscatorUTF8[/topic] || [topic='156219']VideoColorSystemPAL/NTSC[/topic] || [topic='31963']ExcelWindowsInGUI[/topic] || [topic='110473']4Webcam[/topic] || [topic='83763']RichEdit[/topic] || [topic='83763']RichEditUDF[/topic] || [topic='142384']RichEditLabel[/topic] ||[topic='96986']GUITFLabel[/topic] || [topic='32144']AccessCom[/topic] || [topic='38353']BetaPad[/topic] || [topic='31963']EmbeddedExcel[/topic] Link to comment Share on other sites More sharing options...
gicungduoc Posted September 11, 2013 Share Posted September 11, 2013 (edited) By the way, "corgano" _ do you have any idea to control Javascript pop-up window, after click on javascript button by your recommended method, a Javascript pop-up window will come up to confirm the process with OK and CANCEL button, How to control these button? I have no idea so far. Please help..... Edited September 11, 2013 by gicungduoc [topic='27925']WebcamExample[/topic] || [topic='68866']WebcamUDF[/topic] || [topic='138222']DSShowCaptureFilter[/topic] || [topic='20121']ScreenResolutionChange[/topic] || [topic='139426']WebcamDS[/topic] || [topic='156613']ObfuscatorUTF8[/topic] || [topic='156219']VideoColorSystemPAL/NTSC[/topic] || [topic='31963']ExcelWindowsInGUI[/topic] || [topic='110473']4Webcam[/topic] || [topic='83763']RichEdit[/topic] || [topic='83763']RichEditUDF[/topic] || [topic='142384']RichEditLabel[/topic] ||[topic='96986']GUITFLabel[/topic] || [topic='32144']AccessCom[/topic] || [topic='38353']BetaPad[/topic] || [topic='31963']EmbeddedExcel[/topic] Link to comment Share on other sites More sharing options...
gicungduoc Posted September 11, 2013 Share Posted September 11, 2013 I've just found solution to click on Javascript pop-up windows. Finally, it need to use _IEAction with 'focus' parameter before navigate it. Someone have been being faced on this issue, i can help!!!! [topic='27925']WebcamExample[/topic] || [topic='68866']WebcamUDF[/topic] || [topic='138222']DSShowCaptureFilter[/topic] || [topic='20121']ScreenResolutionChange[/topic] || [topic='139426']WebcamDS[/topic] || [topic='156613']ObfuscatorUTF8[/topic] || [topic='156219']VideoColorSystemPAL/NTSC[/topic] || [topic='31963']ExcelWindowsInGUI[/topic] || [topic='110473']4Webcam[/topic] || [topic='83763']RichEdit[/topic] || [topic='83763']RichEditUDF[/topic] || [topic='142384']RichEditLabel[/topic] ||[topic='96986']GUITFLabel[/topic] || [topic='32144']AccessCom[/topic] || [topic='38353']BetaPad[/topic] || [topic='31963']EmbeddedExcel[/topic] Link to comment Share on other sites More sharing options...
corgano Posted September 11, 2013 Share Posted September 11, 2013 (edited) if (confirm('Do you want to confirm?')) { window.location.href='last_update.php?list_id=' + approve_all(261,280) + '&redirect=ZGFuaHNhY2gucGhwPyZwYWdlPTE0'; } because YOU are the one doing the $action instead of the page, you can take a look at it and change it yourself. In this case, the if(confirm()) bit looks like what is making the message box, so simply remove it window.location.href='last_update.php?list_id=' + approve_all(261,280) + '&redirect=ZGFuaHNhY2gucGhwPyZwYWdlPTE0'; Edited September 11, 2013 by corgano 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e 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