Lailloken / Lailloken-UI

Path of Exile UI and QoL overlay. Emphasizes ease of use, minimalist design, and seamless integration.
MIT License
581 stars 28 forks source link

Invalid option error #311

Closed KestrelKitezh closed 10 months ago

KestrelKitezh commented 1 year ago

Hey

Not really sure if I'm the one doing something wrong here, but I've tried a few things to see if I can fix it, with no luck.

image

This happens alot, and I'm not really sure why. He got read/write access, running as admin, and it seem to be a x/y issue. Could it be a multi monitor issue? I'm running a 5 screen setup with 3 horizontal screens, and 2 above. Could this maybe screw with it?

Running beta .8, and newest autohotkey version .37.1

image

Lailloken commented 1 year ago

It seems to be having problems with getting the correct screen coordinates to display help-tooltips when hovering over ui-elements in the settings menu.

image

Could you right-click the script's tray icon and open Window Spy? Make sure Follow Mouse is un-checked, then open the script's settings menu again and click into it so it's focused. I need to know if the script is misreading window coordinates and, if so, what the coordinates are. image

KestrelKitezh commented 1 year ago

First attempt, general tab. image

Clicking the Cheat-sheets image

KestrelKitezh commented 1 year ago

Seem to trigger when I hoover over the enable checkbox

KestrelKitezh commented 1 year ago

Wonder if this is what your looking for. This is the same spot; with each in focus. image

Mouse same place with script focused (it auto focuses when error trigger). image

or are the coords relative to anchor?

KestrelKitezh commented 1 year ago

Nevermind the coords relative question. I see it now. When it focuses the window changes, so it makes sense. Screen is always the same

Lailloken commented 1 year ago

Thanks for the screenshots. I can see a help-tooltip on the first screenshot of the general tab. Does the error-message appear only when switching tabs and hovering stuff, or does it also appear when hovering over buttons/checkboxes in the general tab?

KestrelKitezh commented 1 year ago

General tab and betrayal-info seem to work fine. All hoovers work. Cheat-sheets Clone-frames Hotkeys (only the bottom checkbox trigger error (misc keys)) Item-info Mapping tracker Screen-checks search-strings updater

^ All above failed on all hoovers. I assume its when he tries to generate a tooltip. I find it abit weird though, since the updater tab, I screenshoted that yesterday when I first posted, and it worked. Not now for some reason. I even reloaded the script between each tab test

Lailloken commented 1 year ago

Can you send me a screenshot of your display arrangement? image

I'll try and replicate it on my end. I can't see anything out of the ordinary in the Window Spy coordinates.

KestrelKitezh commented 1 year ago

image

KestrelKitezh commented 1 year ago

technically could disable all other displays just to see if that changes anything, just to save you some trouble. Gimme a minute

KestrelKitezh commented 1 year ago

Still the same with only one display. Ironically betrayal info checkbox hoover failed this time xD

Lailloken commented 1 year ago

~Just tested something: If you check Follow Mouse in the Window Spy and repeatedly click any tab in the settings menu, the ahk_id in the top-most box should change its value with every click but everything else should stay the same (some values in the mouse position box may flash briefly, but that doesn't matter). Could you check if it behaves the same on your end?~ EDIT: nvm, the ahk_id is only visible in the v2 Window Spy


Something else entirely:

image

Just noticed how your Window Spy looks different between screenshots. Scaling seems to be bricked or something. May not be significant, but I'm grasping at straws here. The fact that the error pops up inconsistently between tabs could also point to some AutoHotkey bug. You could try a clean reinstall.

KestrelKitezh commented 1 year ago

Thats because I tried to drag it out I think to see the entire error message in the all text box. The spy thingie broke alittlebit when I started resizing it.

You cant make the textbox bigger it seems, so the windows brick alittle

KestrelKitezh commented 1 year ago

can uninstall and try anyway though just to check

Lailloken commented 1 year ago

I couldn't get this weird issue out of my head, so here's something you can try. It's a modified version of the script that shows the screen-coordinates. If you hold the shift-key and hover over checkboxes/buttons, a text-box will open: image

Lailloken UI.zip

Try to find instances where it returns blank coordinates

KestrelKitezh commented 1 year ago

Enabled cheatsheet, and wh en I hoovered over hotkey settings : image

Lailloken commented 1 year ago

Are you using any software/hardware solution for your monitor setup, or do they all just go straight into your graphics card? The script cannot reliably get the position of ui-elements that are being hovered over.

KestrelKitezh commented 1 year ago

straight into gpu. Nothing other than windows handle it

KestrelKitezh commented 1 year ago

But this seem so far to be a only me problem though (?), so maybe it isn't worth spending time on.

Lailloken commented 1 year ago

I'll release an update tomorrow morning that uses the cursor-position for tooltips as a fallback if the normal coordinates cannot be retrieved correctly.

Lailloken commented 1 year ago

Since these tooltips are also used outside the settings menu, more testing needs to be done. Use this modified version for now: Lailloken UI.zip

The easiest way to test them outside the settings menu is enabling the Lab Overlay in the Minor QoL Tools tab, then entering Aspirants' Plaza and holding TAB. An overlay with an icon in the top-left corner will open, and that icon has a tooltip when hovered over.

KestrelKitezh commented 1 year ago

Hoovers in the lab overlay works fine

KestrelKitezh commented 1 year ago

Please note that this new file broke the F1 key in clone-frame's. Cant seem to manually move the source x/y either. F3 also just move vertically. Not horizontally. Locked midscreen

KestrelKitezh commented 1 year ago

image

Tried to save. That might be my fault though, since I fiddled pretty hard with the frame

Lailloken commented 1 year ago

Something seems fundamentally broken. The modified file doesn't handle anything with hotkeys, so it's strange that the F-keys are bricked. But generally this looks like there are problems with screen/mouse coordinates yet again, with F3 only moving on one axis.

The error-message after saving is due to the script not being able to refresh/rebuild the settings window correctly. It normally creates a second window on top of the first one, then destroys the first one in order to prevent the window from causing a flash. In your case, it can't find the first one anymore and throws an error.

Did you end up reinstalling AutoHotkey two days ago, when I suggested it? EDIT: also, have you modified/tweaked your Windows install in any way? Like disabling Desktop Window Manager, or anything else.

KestrelKitezh commented 1 year ago

I did uninstall, then rebooting and installed again. And nothing is modified in windows except murdering the telemetry services windows is shipped with these days.

On a sidenote, I did notice something different now though. I reloaded the script, and suddenly F1 works, but F3 doesn't work vertically now. Only horizontally. There is something very weird going on here. Positive note is that I cant manage to get an error no matter how hard I try.

KestrelKitezh commented 1 year ago

I see he changes the X/Y coordinates in the window when I press F3, but he doesn't move down for some reason.

Edit: I manually changed the X/Y, and now that works. So everything is fine I guess.