

I guess the best way to handle this would be to set up options for people to be able to edit the coordinates. Some people have the link bar enabled and others don't. All you gotta do it brush up the math skill ( In case it's rusty like mine ! ), and enjoy !
#Toggle mouse coordinates code
Find the percantage of the location, and set the mouse point to the location plus the LocationPoints needed to put the mouse on the correct object.Īnd with the current code supplied, i'm quite sure that it will be possible to do. Find out the percentage of expansion, and calculate the point to fit. But still, it could be a joy to get past.ĭoes everyone run the webpage in fullscreen? And how does the webpage act?ĭoes the content expand with the increasing resolution, or does the webpage have it's own Height/Width settings ?
#Toggle mouse coordinates ps2
Alternatively the mouse could also just auto hide after a moment of inactivity, though the other method would be better as an auto-hide could be annoying for people who use an analog stick to control the mouse (I'm using a PS2 controller. Would your solution help me do that? I'm still new to coding so I may not fully understand and for that I apologize. If the X and Y coordinates could be saved and loaded when hiding and un-hiding, this would also be a plus. Because with different resolutions, it puts the boxes of text in different locations :( The mouse to click on, I could then find a way for it to auto adjust them based on the screen resolution. I was thinking if I could hard set the coordinates to the data I want The problem is with everyone having different screen resolutions. The data is in boxes and will always be in the same boxes. I know that I could just use a macro program like AutoHot Key but this seemed I do a lot of repetitive actions at work, and I was trying to make like a macro program. Thanks for the work on this SharpAspirant! What I'm doing is making an Auto program. So what you have to do, is take the X & Y of the component you want to focus the mouse on, and just set the values. ( I added +50 manually so that the mouse would appear inside the window. In this case, it takes the current Window's location compared to the Desktop, and points the mouse to that location. MouseOperations.SetCursorPos(x + 50, y + 50) Private void Window_Loaded( object sender, RoutedEventArgs e)
