Stacker

.. any tip for coordinate app

3 posts in this topic

Hi all,

i have a file with coordinate ( ID,code,x,y,rotation,package,description)  like this :

C2,CC001_100N,104445,69357,180,T-0603-08,100nF 10% 16V X7R 0603

can i plot this file on screen with rectangle or picture related to package.

Is possible on mouse over get information like "C2 CC001_100N T-0603-08 100nF 10% 16V X7R 0603" ?

thanks for any tips

Share this post


Link to post
Share on other sites



The file is a "cad output" for printed circuit board.
 the steps are :
- read file to array ( this no problem )
- plot in windows the coordinates  ( plot in scale object or shape from "library" -> package )
- retrive information (string) on mouse over object or shape.

I think the possible "solution" is to draw shape, for example filled red rectangle and:
if color is red i retrive mouse coordinates
if mouse is in range ( tolerance) at part center or in other way ( i don't know how ) i search in array  the coordinates near the value and retrive the information i need

so green background window with red or other color "box".

suggestions are appreciated

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

  • Similar Content

    • nullschritt
      By nullschritt
      Hello, I originally started writing these functions in autoit, because of how easy it was to debug my code (the algorithms are actually implemented in php, though the same functionality could be used without conversion by using aucgi).
       
      My original intended purpose for these functions was to allow my web server to calculate if a player was between two points(inside a "region") in a game(minecraft).
       
      Currently my functions can do the following:
      Calculate the absolute distance between two points Calculate the volume between two points(to the nearest whole number) Calculate all points between two points, including their volume(to the nearest whole numbers) Check is a point is between two points(to the nearest whole number) ​(Maybe more I haven't though of?) I then expanded on the code to add some additional functionality. This code could be used with little modification to create a voxel style game engine. (It could actually even be further modified to support decimal values, though this would significantly slow it's performance exponentially per decimal place, though this shouldn't be necessary, except in rare cases such precision collision detection[ex: detect if a bullet hit a player or npc])
       
      I encourage everyone to submit your modifications/optimizations to my code so everyone can use them. I know my code isn't perfect, and it's functions could be expanded on with the right knowledge(things like collision detection, world generation, etc).
       
      If you use any of my code in your project, please link to this page! And while not required, I would like it if you please linked me to your project, I love to see my code in use!
       
      So finally here's the code(including examples of all functions being used):
      voxel.au3
    • UnknownWarrior
      By UnknownWarrior
      So from all my research from this forum, I've came up with pretty much the same algorithm written many different ways -- all are yielding the same, yet wrong, answer.



      My example:

      I want to click on a certain button with MouseClick. It is located at 885, 183 (we will just use the x coord for demonstration) with the resolution of 1440x900. I want to be able to click on that same button (it's very small) with a 1280x720 resolution as well. So, I plugged in 885 in any of those 3 equations and they ALL result in 785 for the answer. The problem? I used Au3Info and that coordinate actually resides on 772 (x).

      Why such the big difference? I do realize there are aspect ratios, but I have not seen them demonstrated in ANY of the threads I found - and people claimed these conversions were working for them... (1440x900 = 16:10 and 1280x720 = 16:9 ratios)


      Any ideas? o.o

      Thanks