darcaro Posted October 24, 2008 Share Posted October 24, 2008 (edited) Hello - I have a very simple AutoIT gui that allows me to launch a webpage by concatenating variables and creating a url. The trouble is, I always get the "Continue to this website (not recommended) " message. Is there any easy way to click certain links , and for that matter, click on any text on a given screen?? This would be incredibly helpful! Thanks!! Edited October 24, 2008 by darcaro Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 24, 2008 Share Posted October 24, 2008 Read the helpfile. _IELinkClickByText() Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
farhan879 Posted October 24, 2008 Share Posted October 24, 2008 #include <file.au3> $URL = "www.google.com" $fd = FileOpen(@TEMPDir & "url.url",2) if $fd = -1 Then Exit FileWriteLine($fd,"[InternetShortcut]") FileWriteLine($fd,"URL=" & $URL) FileClose($fd) Run(@comspec & " /c " & chr(34) & @TEMPDir & "url.url" & chr(34)) System task ---> My first GUICalculator v1.0 ---> My version of the calculatorNetZilla 1.0 --> Web browserEmail Sender --> You can Send emails with this without opening a web browser Link to comment Share on other sites More sharing options...
Cw2K1 Posted October 24, 2008 Share Posted October 24, 2008 Read the helpfile. _IELinkClickByText() and also read the related Functions Enjoy the complexity.Feel the power of simplicity. Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 24, 2008 Share Posted October 24, 2008 and also read the related Functions You're stalking me aren't you? XD It's pretty common sense to read related functions for future reference but I suppose it never hurts to mention it. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
darcaro Posted October 24, 2008 Author Share Posted October 24, 2008 This is great - the one thing is that there are a few clicks on the page that I wanted to click on , and _IELinkClickByText worked for some of them, but not all. The ones that dont work seem to be Javascript items - Is there any way to search for that text, and click that?? When I hover over it, I can see the where it wants to go (which appears to be a URL) but it doesnt click using that function. Thank you all so much for your help! Link to comment Share on other sites More sharing options...
DaleHohm Posted October 24, 2008 Share Posted October 24, 2008 Suggest you download DebugBar (see my sig) to easily see the structure of the HTML page. LINKs are <A> tags... you can click on other elements with _IETagnameGetCollection and _IEAction, but you need to study a bit. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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