Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting location of AutoText list menu
#1
at present, There are two ways to display the position of the AutoText list

1. If there is an insertion point, it will be displayed below the insertion point

2. If there is no insertion point, it will be displayed at the mouse pointer position

Because the position of the mouse pointer is random! So the position is not fixed, My monitor has a big resolution, 4K, not convenient to view

I need two Arguments to achieve the following result:

If there is no insertion point,
Argument1. Display in the upper left corner of the screen,
Argument2. Display in the center of the screen

In addition, how to adjust the resolution width and height of AutoText list?

Is that possible? Thanks in advance



Autotext Autotext
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/m

;How to set parameters? If there is no insertion point,
;1. Display in the upper left corner of the screen,
;2. Display in the center of the screen
ru :run "notepad" ;;notepad
ru :run "wordpad" ;;wordpad
#2
There are no parameters for the list location.
The newest QM version 2.4.11 correctly scales the list in high DPI screens.
#3
Is there any other way to display the AutoText list in the center of the screen【If no insertion point】?

Many AutoText  software, including this function
[Image: autotext.png]
#4
this is kind of a hack but will move the autotext popuplist to the center of the screen when no caret is detected 
Function MoveAutoText_list
Trigger !v"" "QM_PopupList" "" "SysListView32"     Help - how to add the trigger to the macro
Code:
Copy      Help
int hwnd=TriggerWindow
int x y
int hwnd2=GetCaretXY(x y)
if(hwnd2)
,ret
else
,CenterWindow hwnd
#5
used normally. Thank you
#6
@Kevin
How to move to the center of the current control client area(If possible to find) ?
Otherwise, move to the center of the window where the control is located
Otherwise, move to the center of the screen


Forum Jump:


Users browsing this thread: 1 Guest(s)