allcapone1912

Click on Images with alt="TEST"

18 posts in this topic

#1 ·  Posted (edited)

hi,

currently i have a script that make click with IE but i want to make a new one, if is possible without IE or FF

so, it is possible or not?

for example:

Run('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe", "http://mdecho.com/"')

then click on image with alt = "YouTube Go"

<img width="480" height="310" src="http://mdecho.com/wp-content/uploads/2016/09/4226057-afp-mediafax-foto-loic-venance-480x310.jpg" class="attachment-banzai-featured-slideshow-main size-banzai-featured-slideshow-main wp-post-image" alt="YouTube Go" />

once again, without IE, FF and pixel click

Edited by allcapone1912

Share this post


Link to post
Share on other sites



#2 ·  Posted

Are you going to this website just to click this link?

then just open the link where you eventually want to be:

$sLink = "http://mdecho.com/2016/09/google-lanseaza-youtube-go-o-noua-aplicatie-care-permite-vizionare-fara-conexiune-la-internet/"
ShellExecute($sLink)

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

thanks for your reply

it will be many links, randomly

only alt = "***" will be the same for all

 

Edited by allcapone1912

Share this post


Link to post
Share on other sites

#5 ·  Posted

more details

each images/links html source will have this format:

<img src="some random link" alt="KEYWORD" />

so, what i currently trying to do is to click on that "some random link" for specific alt="KEYWORD"

with IE this can be done in this mode

; Click on IMG by Alt text

#include <IE.au3>

Local $oIE = _IE_Example("http://mdecho.com/")
_IEImgClick($oIE, "KEYWORD", "alt")

but, that's the problem, i need it without IE or FF

Share this post


Link to post
Share on other sites

#6 ·  Posted

Winhttp udf 


NEW:     ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2016-11-12
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft Components * TeamViewer API -UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, The Art of Computer Programming
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

#7 ·  Posted

14 hours ago, mLipok said:

Winhttp udf 

in order to make it via WInHTTTP i have to make an addition connection to url

but i need to get link and click on it from opened Firefox, no other addition GET/REQUEST

Run('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe", "http://mdecho.com/"')

 

Share this post


Link to post
Share on other sites

#8 ·  Posted

Not fully understanding your project, I will take another stab at a solution...

  1. What about a list of the links from your website that are executed randomly via script.
  2. A script that just randomly mouseclicks somewhere on your webpage every 'X' seconds.

Share this post


Link to post
Share on other sites

#9 ·  Posted

18 hours ago, allcapone1912 said:

but, that's the problem, i need it without IE or FF

 

Quote

but i need to get link and click on it from opened Firefox, no other addition GET/REQUEST

I'm confused. First you state no IE or FF. Then you state an opened FF.

Which is it?

Share this post


Link to post
Share on other sites

#10 ·  Posted

3 minutes ago, Danp2 said:

 

I'm confused. First you state no IE or FF. Then you state an opened FF.

Which is it?

sorry for confusion

i mean without IE.au3 or FF.au3

only with 

Run('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe", "http://mdecho.com/"')

 

Share this post


Link to post
Share on other sites

#11 ·  Posted

2 hours ago, allcapone1912 said:

i mean without IE.au3 or FF.au3

then try

 

Share this post


Link to post
Share on other sites

#12 ·  Posted

6 hours ago, allcapone1912 said:

i mean without IE.au3 or FF.au3

only with 

Run('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe", "http://mdecho.com/"')

 

Your requirements don't make sense to me. You can't expect to find and click on a specific link without the aid of one of the browser libraries.

AutoBert's suggestion is your only other option.

Share this post


Link to post
Share on other sites

#13 ·  Posted

4 hours ago, AutoBert said:

then try

 

thanks for our reply,

interesting post but a little too complicate for me(ive never used it in past)

so, if i will not find any other solution, eventually i will use your advice

Share this post


Link to post
Share on other sites

#14 ·  Posted

On 1.10.2016 at 4:34 PM, allcapone1912 said:

once again, without IE, FF and pixel click

Without IE ? Why ?
Wihtout FF ? Do you mean FireFox.exe or FF.au3 UDF ?
 

This seams to me like a strongly restricted/secured PC station.

additional questions:

IE not .... because there are restriction for user which is loged to PC station ?
FF.au3 not .... because you can not instal  MozRepl ?

 


NEW:     ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2016-11-12
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft Components * TeamViewer API -UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, The Art of Computer Programming
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

#15 ·  Posted

32 minutes ago, Danp2 said:

Your requirements don't make sense to me. You can't expect to find and click on a specific link without the aid of one of the browser libraries.

AutoBert's suggestion is your only other option.

I hoped that there are other methods besides AutoBert's suggestion

but, if no other i will use it but will take me much more time that i  thought

 

Share this post


Link to post
Share on other sites

#16 ·  Posted

2 minutes ago, mLipok said:

Without IE ? Why ?
Wihtout FF ? Do you mean FireFox.exe or FF.au3 UDF ?
 

This seams to me like a strongly restricted/secured PC station.

additional questions:

IE not .... because there are restriction for user which is loged to PC station ?
FF.au3 not .... because you can not instal  MozRepl ?

 

without IE because i am not using direct connectiion, using via proxy and very often get error

i don't have permission to install any other additional item, like MozRepl...

Share this post


Link to post
Share on other sites

#17 ·  Posted

Just now, allcapone1912 said:

without IE because i am not using direct connectiion, using via proxy and very often get error

Interesting.
What kind of error ?
 


NEW:     ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2016-11-12
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft Components * TeamViewer API -UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, The Art of Computer Programming
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

#18 ·  Posted

47 minutes ago, Danp2 said:

Your requirements don't make sense to me. You can't expect to find and click on a specific link without the aid of one of the browser libraries.

AutoBert's suggestion is your only other option.

 

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