Cant understand the (x,y)phenomenon

Discussion in 'Code Snippets and Tutorials' started by pandahorde, Mar 16, 2007.

Thread Status:
Not open for further replies.
  1. pandahorde

    pandahorde Level IV

    Joined:
    Dec 17, 2006
    Messages:
    2,249
    Likes Received:
    17
    Location:
    "MANILA ZOO"
    Guys i make a program that delete yahoo messages.
    when i put
    (X,Y,true) for example (234,-12,true);
    well it works fine.. all works fine..


    until next day.. i run the script ..it click in other surface..it wont click in the link i desire to click..
    and i repair it again and run the program. and it works.
    and next day same error..it click everywhere.


    IS THE X,Y INTEGER IS LOCATED IN THE LOWEST PROTION OF THE SCAR PROGRAM?
     
  2. zav75

    zav75 Level I

    Joined:
    Feb 28, 2007
    Messages:
    76
    Likes Received:
    6
    Location:
    Canada, Province of Québec
    Thats the fault of client windows, you must select the client by draging manually or by specifying the handle in your program. When you take the coord. make sure to take them after you've draged the crosshair in the desired windows. Also make sure that your window is always at the same place. Before each utilisation make sure you've also spicified the client windows with the crosshair. This way you should not have troubles with one windows, however if your program deals with many pages you will have to absolutly learn how to specifi client window by programation.

    The x,y var are normally declared at the begening of your script this way all your methods will have x and y as usable var. If you don't declar x,y and you use it in a fonction the program will tell you that the var you're trying to use aren't in the defined vars.
     
  3. Underground_Secrets

    Joined:
    Dec 22, 2006
    Messages:
    626
    Likes Received:
    1
    Gender:
    Female
    Location:
    West Coast in USA
    i did not understand anything u just said. wats a handle? how do u drag 4 client? wat is a client window? wats programation?
     
  4. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    basically your scripts faults are this

    The user interaction between the script itself and the location of the links.
    What we mean is that when you go to yahoo and scroll down to your new mail the location of the link (X,Y) will change from probably about (300,150) or somewhere around there to lets say (310,150)
    Ideally a bot to delete yahoo messages would not require screen locations and just parse the html and delete it from using the required links... or if you insist on using scar, it would automatically detect the location of the link and click it from there :)
     
  5. Underground_Secrets

    Joined:
    Dec 22, 2006
    Messages:
    626
    Likes Received:
    1
    Gender:
    Female
    Location:
    West Coast in USA
    it kinda sounds like instead of coding it w/ x & y based on getting the cooardinents off ure pc screen, instead u position x & y based on the html in the view source code? im i getting this?
     
  6. clonewars2222

    clonewars2222 Level I

    Joined:
    Jul 25, 2007
    Messages:
    126
    Likes Received:
    0
    Well, since the page sometimes moves around (I think) I personally think it would be better to have autocolor or something like that.
    the_skip: Do not gravedig
     
Thread Status:
Not open for further replies.