Jump to content

pixelsearch does not return array


Recommended Posts

Post your script that is having the problem, or a runnable example script that shows the issue for you and we will be able to help you with it.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

21 minutes ago, serena_knight said:

redim $xy[2][1]

PixelSearch returns a 1D array not a 2D like you seem to believe

 

12 minutes ago, serena_knight said:

$xy = pixelsearch($ul,$top,$hrt,$bbot,0,1,$win)

You are missing color code in there

Your code is fully wrong with only a few lines, why do you think that we are skeptical about the rest of your script ?

Link to comment
Share on other sites

Serena - is there some reason why you have to use pixel search? It is the WORST way to do what you are attempting. You have said you are trying to see what text is there and move the mouse to it. 

Have you made any attempt to hook into the control in question and just read it? There are MANY examples here in the forum on how to do it. 

Can you at least show a partial screenshot of the text you are trying to read? Maybe the name of the application? If you provided the name of the application then there is a very high chance there is ready made code for you to use and you don't have to beat your head against the wall trying to do this. 

So far you have had MANY people try to help you and your responses are NOT helping yourself. This isn't hard. Just answer our questions in this simple form:

Quote

 

Name of Application ______________________________________

Have you tried to hook into the control directly? YES or NO.

Are you willing to show a screenshot of the application? YES or NO.  (If yes to this question - please attach screenshot.)

 

Help us help you. 

 

I will assume if you ignore all of what I'm saying then you are on your own. 

Link to comment
Share on other sites

1 hour ago, serena_knight said:

the values of $ul, $top, $hrt, $bbot, $win ?

for example

1 hour ago, serena_knight said:

besides the problem of violating company policy there is the problem of coping anything off my 

remote access to my computer at work and then pasting it here, the company security system blocks any such

copy/paste attempt.  I would love to show you everything, can't 

well so you want to tell us you cant show us a code without breaking security rules? even if you delete the data which are for it?

it seems like you don't want any help even if you asked for it <_<

why do i get garbage when i buy garbage bags? <_<

Link to comment
Share on other sites

how can i give you a script that runs and needs a webpage and the database behind it.  all i want is a way to move a mouse pointer to  a highlighted text

like movemouse(highlighted text)

is there anyway other than pixelsearch.?

Edited by serena_knight
Link to comment
Share on other sites

there is no answer on this site, i found some that asked what i am trying to do and there were  no  real answers, i have search for vbscript examples and there are none. there is a pixelsearch sample for vbscript,  which is a little different than autoit. but that would be a pain to try,, thats it i give up

will tell that user that that this script will not work, thanks for all the help 

 

Link to comment
Share on other sites

11 hours ago, serena_knight said:

there is no answer on this site, i found some that asked what i am trying to do and there were  no  real answers, i have search for vbscript examples and there are none. there is a pixelsearch sample for vbscript,  which is a little different than autoit. but that would be a pain to try,, thats it i give up

will tell that user that that this script will not work, thanks for all the help 

 

and I see you COMPLETELY ignored the simple questions I gave you. Seeing you are not even bothering to help yourself, I'm out.

Link to comment
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
 Share

  • Recently Browsing   0 members

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