Jump to content

Recommended Posts

Posted

Hi,

I am using AutoIt mostly for browser... But till now I have skipped on using PixelSearch since I couldn't get it to work...

SO for short, to see if I could get it working I tested it on Paint (in Windows 10) instead... That worked fine...
BUT when it came to the browser and the content in the browser (the "webpage") it wouldn't work anymore....

If I also test for the browser app in itself (Chrome) it works just like the test with paint - but not the content (webpage)..

Anyone else having experienced this ? and maybe know the solution? ..

Would be real nice to have it working
:)
 

Posted

To work with Browsers I suggest the WebDriver UDF.
Pixelsearch isn't very reliable due to multiple reasons.
What do you want to achieve with the Browser automation? Enter data, retrieve content ... ?
 

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted
1 hour ago, hook said:

BUT when it came to the browser and the content in the browser (the "webpage") it wouldn't work anymore....

Can you show the web page you are having problem with, along with the code you are using that isn't working.  Give us the debug answer you have got to say it didnt work 

Posted (edited)

ok... I will just leave out the pixelsearch then.... It is not a normal webpage... AND I am _not_ going into the HTML and so on in the "page"...

It is to make some automatic stuff for a browser game (only controlling keyboard and mouse) but this is slightly off topic... The concern was only how to use the pixelsearch - but seems a problem in the browser..

The code is just a very simple test... made many tests before to try figuring out PixelSearch.. SO I went back to basics... making it as simple as possible... Just not working for the content of the browser...

This is all my test code:
 

_main()

Func _main()
    While 1
        $RedPix = PixelSearch(221, 477, 386, 536, 0xF60000)
        If IsArray($RedPix) = True Then
            MsgBox(0, '', 'Red pix coords:')
            ExitLoop
        Else
            Sleep(100)
        EndIf
    WEnd
EndFunc

Edited by hook
Posted
7 minutes ago, hook said:

It is to make some automatic stuff for a browser game (only controlling keyboard and mouse) but this is slightly off topic... The concern was only how to use the pixelsearch - but seems a problem in the browser..

... Why dont you play yourself

.... Read forum rules.

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

  • Developers
Posted

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...