Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions appears on top left corner of window #38

Closed
danielo515 opened this issue Feb 20, 2015 · 8 comments
Closed

Suggestions appears on top left corner of window #38

danielo515 opened this issue Feb 20, 2015 · 8 comments
Assignees
Labels
Milestone

Comments

@danielo515
Copy link

Hello,

I really like this script, but it does not work as I expect. I expect it to appear under the mouse cursor. But instead the suggestions appears on the top left corner of the active window. Why does this happen? I'm on a multi window environment if that does matter.

Very cool script indeed.

@ManiacDC
Copy link
Owner

Hi Daniel, are you experiencing this in all programs (for example, try notepad)? Or just some (like firefox or chrome)?

If it's just some, TypingAid is unable to detect the caret position in certain programs, like FireFox, Chrome, or OpenOffice. A workaround called a "Helper Window" has been created to help deal with this. You can open it manually by hitting Ctrl-Shift-H, or you can have it open based on which window you're in by changing the following settings in Preferences.ini:
HelperWindowProgramExecutables
HelperWindowProgramTitles

Let me know...

@danielo515
Copy link
Author

Hello @ManiacDC

I checked your code, and I found that the problem was about the A_CaretX and A_CaretY on certain windows, as you said. I asked on ahk github and this is a known issue 👎 Then I realized that there were some "helping window" but I did not noticed how that thing works. Now I'm using it to write this message thanks to your explanation. Looks like a rudimentary solution. I would prefer to use the mouse position as an alternative. Is this even possible? I though the helper window would appear automagically.

@ManiacDC
Copy link
Owner

That should be a viable alternative. I'll have to add a new setting for it.

The helper window appears automatically if you've added the program you're using to HelperWindowProgramExecutables or HelperWindowProgramTitles.

@danielo515
Copy link
Author

The helper window appears automatically if you've added the program you're using to HelperWindowProgramExecutables or HelperWindowProgramTitles.

Ok, I'll try it out. I did not see this information at any place.

Regarding the mouse alternative I can confirm it works fairly well. I use clipjump and some of my scripts uses that approach too and most of the times the mouse is very close to where you are writing.

Thank you!

@ManiacDC
Copy link
Owner

ManiacDC commented Mar 3, 2015

There was actually code in place to do this (draw the listbox at the mouse position). It was just... broken. I found it while doing some code cleanup. I've fixed this code in the SQLite branch, and it will be in the next release.

@ManiacDC ManiacDC added this to the Coding milestone Mar 3, 2015
@ManiacDC ManiacDC self-assigned this Mar 3, 2015
@ManiacDC ManiacDC added bug and removed enhancement labels Apr 7, 2015
@ManiacDC ManiacDC modified the milestones: Released, Coding Apr 9, 2015
@ManiacDC
Copy link
Owner

ManiacDC commented Apr 9, 2015

This has been fixed with 2.20.0

@ManiacDC ManiacDC closed this as completed Apr 9, 2015
@danielo515
Copy link
Author

What do you mean with fixed exactly?
It is working properly for browsers now or it is properly using the mouse position as backup?

Regards

@ManiacDC
Copy link
Owner

ManiacDC commented Apr 9, 2015

It is properly using the mouse position as backup. There's nothing I can do about it not detecting the cursor position, that's a bug in the applications - they aren't reporting the cursor position to Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants