![]() This is a great forum and ahk is a great program. The third parameter you can specify either Screen or Relative. The second parameter specifies the coordinate mode will be for mouse coordinates. The reason I need this is because the form I am filling in allows me to tab to an input box, but from there i need to move by mouse to the. If you want coordinates to be relative to the active window, you need to use the CoordMode command at the top of your script. Then I want to be able to move the cursor horizontally x pixels, without changing the vert position. Does anyone know of any pitfalls here? Has anyone tried to do this before? Thanks for your comments. of 2 - Finding the current coordinates of the cursor - posted in Ask for Help: I am wanting to find the coordinates of the cursor wherever it is at. Since I am dealing with buttons and input boxes that are rectangular in shape, the horizontal position can be the same at any resolution.Īs I say, I am going to test more, but so far I have been able to change the screen res. Identify the current x and y coordinates of your cursor by moving the mouse anywhere on the screen and by pressing spacebar, thanks to this simple app. The font size in windows must be set to 96dpi (normal) for the 800 x 600, and set to 120dpi (large) for 1024 x 768, and 1280 x 1024. Retrieves the current position of the mouse cursor, and optionally which window and control it is hovering over. ![]() The manual location on my machine is: C:\Program Files\AutoHotkey\WindowSpy.ahk. What I find is that the coordinates between resolutions of 800 x 6 x 1024, are very close, and by finding (via Window Spy) the very top (vertical ) location of the item I am trying click on for a res of 1280 x 1024, will still work for 800 X 600, it just hits at the bottom of the button or box, but still catches it. You can right click the icon of any running AHK script and select 'Window Spy', or you can search for 'Window Spy' in the Windows start menu. AutoHotkey.exe is just the interpreter for AHKs scripts, it's no standalone. I have been experimenting a bit, I am finding that the following works, unless it is a fluke. Welcome to the forums Current versions of AHK include a script named Window Spy that replaced the script you are looking for (mostly the same, looks very similar, different name) - you can find it in your AutoHotkey folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |