Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
139 views

I have a TPopupMenu where one of the items should (after doing other stuff) select the item of the TChecklistBox (CategoryFilter) the mouse cursor is at. Currently I do this with the following code, ...
Wolfgang Bures's user avatar
0 votes
0 answers
65 views

I'm trying to get the position of my cursor ignoring all other elements on my page (including those with event listeners of their own). I know you can get the position of the cursor like this: const ...
Hazrd's user avatar
  • 296
0 votes
1 answer
380 views

I have code that creates fields on a word document based on selection, but when it is done it has the field selected. I want to select the position right after the field. So if there is a FIELD_ ...
djblois's user avatar
  • 845
1 vote
0 answers
75 views

For a long time I could not understand why the coordinates that I receive from win32gui.GetCursorPos() and those that I send to the screenshot do not match, until I noticed that for some reason they ...
Micael's user avatar
  • 11
-2 votes
1 answer
402 views

Building an app that displays a text editor it would be nice to communicate to the user the cursor position as line and offset. This is an example method doing this. /// Find row and column of cursor ...
Lego Esprit's user avatar
0 votes
1 answer
157 views

I'm new at vim, started to play with macroses, and founded not obvious override behaviour for jump/change lists. The main question - are there any stable ways to jump by changes/moves inside same line ...
Alexander Moiseev's user avatar
0 votes
1 answer
856 views

I'm trying to instantiate my ballPrefab on click at the cursor's position. I know that Input.mousePosition only takes the x and y coordinates. However, my camera looks in the direction of x (global) (...
Leandra 's user avatar
0 votes
0 answers
57 views

https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_sequences I tried to use this site but I couldn't, can you help me? this cod is running in windows system but i want to this code change linux. What ...
nwer's user avatar
  • 1
4 votes
0 answers
2k views

After some tests for hiding my console cursor. I've found those npm packages that implements functionnalities for hiding and showing back again the cursor. cli-cursor ansi-escapes Looking into ...
Darkosphere's user avatar
0 votes
0 answers
228 views

I have an entry that's IsVisible property is set to false. Then I have a button that has a clicked event handler that sets the entry IsVisible to true and sets the focus and cursor position of the ...
SimCaz's user avatar
  • 1
6 votes
1 answer
6k views

For a regular EditText, we can get the cursor position by calling the getSelectionStart() method. In Jetpack Compose this posibility is available for ClickableText, but apparently not for TextField or ...
San's user avatar
  • 108
0 votes
1 answer
526 views

I am trying to implement the 'Tagging users in comments' feature similar to Instagram. Requirements: A list of users should be shown when a user types one or more characters after '@'. The term to be ...
Rohit Kokate's user avatar
0 votes
1 answer
195 views

i am currently trying to design a Terminal in JavaScript. Unfortunately do i have an issue in tracking where something is getting included or deleted. Here a possible Solution (https://stackoverflow....
Karion White's user avatar
0 votes
2 answers
2k views

I want to validate an input field with regex (replacing all vowels). The input should always be matched against that regex, regardles if typed into or pasted into that field. I know how to deal with ...
toffler's user avatar
  • 1,233
0 votes
1 answer
165 views

I'm working on a math project. Therefore I want to modify the 'input text'-Box. It should mark the bracket pair of the cursor i. e. the bracket positioned left and the one right from the cursor. I ...
philippII's user avatar
0 votes
1 answer
240 views

I am designing an app to draw electrical circuit models and I need to insert elements on scene by clicking on a button and after on the scene. The way it should work is the following: I press the ...
Dani RedRain's user avatar
-1 votes
1 answer
265 views

I have a google docs created with App Script for which I am trying to place my cursor after a specific word in order to insert some content there. When I just insert the content it inserts it at the ...
Harvey's user avatar
  • 209
2 votes
0 answers
169 views

I'm on Mint, using Geany to program with a tool that will give me the line and column location of a code bug; but it won't go further than opening the file with Geany, I have to find it myself. That's ...
Michael Macha's user avatar
0 votes
3 answers
391 views

I'm trying to copy text and then trying to add it in the place where the cursor currently is. Basically i'm trying to add the text from the right hand side to the WordPress tinymce editor, where the ...
Thowzif Abdullah's user avatar
0 votes
2 answers
1k views

I am currently coding a node.js program relating to mouse coordinates. Is there a way to see the mouse position in the terminal in Node.JS? I've tried the ways beginning in \e but they only list the ...
AvivKeller's user avatar
1 vote
1 answer
189 views

I'm trying to get nodes to show an adjacent popover when clicked. Here's a codepen on where I'm at: https://codepen.io/SavanaPope/pen/abLdmbz?editors=1000 I've gotten very close, the popover currently ...
SavanaPope's user avatar
4 votes
1 answer
429 views

Background I'm trying to write a Go library for creating terminal task-lists, inspired by the Node library listr. My library, golist, prints the task list out in a background goroutine and updates the ...
A Poor's user avatar
  • 1,084
0 votes
2 answers
318 views

I have a Xamarin.Forms application, I want my Entry field to re-focus or the Cursor position is set to zero without triggering the soft-keyboard after pressing Enter, I have a hardware scanner that ...
Shibit's user avatar
  • 83
2 votes
1 answer
386 views

I want to keep my cursor's vertical position when page up (Ctl-U) or down (Ctl-D). This is particularly useful when I am in a long python function and want to figure out block structures by ...
Ying Xiong's user avatar
  • 5,048
2 votes
1 answer
416 views

I was wondering what specific commands I can execute to move a text cursor in QsciScintilla to the left or right? I know for a QPlainTextEdit, you can execute the commands: self.textEdit.moveCursor(...
Benjamin Sloutsky's user avatar
2 votes
1 answer
755 views

Because I tried mine, it does not work. It will end it immediately. mov ah,00 mov al,02 int 10h int 21h mov ah,02h mov bh,00 mov dx, 0000h int 10h ret
sherley's user avatar
  • 21
0 votes
0 answers
318 views

I notice an annoying occurrence when printing logs to the console during a tqdm-wrapped loop. In that case, the logs begin in the same line as the tqdm printouts right after them. I figure that I can ...
EZLearner's user avatar
  • 1,864
0 votes
1 answer
709 views

Quote from the documentation: A_ScreenWidth, A_ScreenHeight: The width and height of the primary monitor, in pixels (e.g. 1024 and 768). I expected MouseMove A_ScreenWidth, A_ScreenHeight to move ...
Wenfang Du's user avatar
4 votes
1 answer
2k views

I am aware that there are a lot of existing questions about getting the caret position in ContentEditable elements. Almost all of those existing solutions provide the caret position with respect to ...
rugk's user avatar
  • 5,785
1 vote
1 answer
778 views

I have created a simple TextField with a long text therein. Every time I run the code the LAST part of the text fields shows. Since I set cursorPosition to 1, shouldn't the FIRST part of the text ...
TSG's user avatar
  • 4,776
2 votes
0 answers
597 views

I would like to add some text after the current position of the cursor in an active word document. The code I need would have to be something like this: import win32com.client as win32 word = win32....
José Chamorro's user avatar
4 votes
1 answer
2k views

I'm trying to write a powershell script that implements a typing speed test. I'm looking to make it look something like this picture. So you print some text to the console, then print over it in a ...
Peter Kapteyn's user avatar
-1 votes
1 answer
202 views

Im making a game kind of like HOI4 and ive come to this problem of not knowing how to check bodered territories my first thought was to set the console's cursor position and then check around that to ...
Rasig Kosonmontri's user avatar
1 vote
0 answers
78 views

So I'm reading through the Emacs Lisp intro, and I come across this function used as an example for save-excursion: (message "We are %d characters into this buffer." (- (...
Solaire's user avatar
  • 21
0 votes
1 answer
54 views

This successfully retrieves the screen coordinates but I would like it to display coordinates relative to a particular window that is being moused over: POINT p; if (GetCursorPos(&...
splitinfiinity's user avatar
0 votes
0 answers
141 views

i am using ckeditor. i want to get last word when i press space and it will replace with a random word. i able able to get last word from the textarea and replace it with random word. but when i style ...
usman's user avatar
  • 1
1 vote
1 answer
551 views

This question has been asked before but only regarding the cursor position as it seems.. I've implemented some kind of auto-load-on-change text editor based on QTextEdit. Problem is: when I apply the ...
frans's user avatar
  • 9,988
1 vote
0 answers
68 views

How can I set text in Caret Position (cursor position) of textbox by Click on button? I can set text end of textbox but I need to set some text in cursor location by clicking on some buttons like ...
Hadi Rajabi's user avatar
1 vote
0 answers
141 views

I'm creating my own site on the Wix platform, and I met one problem. When I'm setting up text alignment to the right side, after starting typing, the cursor moves to the left side of the text, but I ...
Faser's user avatar
  • 23
0 votes
0 answers
34 views

I have an application (built with HTML, CSS, and JS) with 3 input fields each of which accepts numbers (1 -9, and 0). I also have buttons 1 thru 9 (and 0, similar to calculator). Having trouble making ...
vusalhasanov's user avatar
0 votes
1 answer
622 views

I am using this react code for getting a custom cursor following the main cursor. animation is done using gsap and lerp function. But the animation is not seamless and the chrome performance monitor ...
Maharshi Patel's user avatar
0 votes
2 answers
254 views

Everytime I use "comment-line" in a elisp bunch of code, the cursor moves up. This is annoying. Is there a way to comment line by line in Elisp so that the cursor stays in the very same line?...
Emmanuel Goldstein's user avatar
1 vote
1 answer
207 views

.Model small .stack 64 .data mesg db "What is your name? ",'$' .code Main PROC far mov ax,@data mov ds,ax ; clear the screen mov ax,0600h mov cx,0 mov dx,184FH int 10h ...
Michael Aziz's user avatar
0 votes
1 answer
86 views

My site uses iframes. Frame A has a list of items for selection, when one is selected it shows details in Frame B. The link from frame A is like this: <a href="https://www dot mysite dot com/...
AliBaliKing's user avatar
0 votes
2 answers
94 views

I have an Android app with multiple input forms with multiple drop downs. For these forms, the user can enter and exit the record multiple times before they commit the record. Hence if they chose ...
Tony's user avatar
  • 41
4 votes
1 answer
3k views

Questions and Briefing Hello. I am trying to fix a problem with my PyQt5 window which has a custom Title Bar. If you maximize the window and you hover over the title bar with the cursor and drag the ...
Kevin A.'s user avatar
  • 129
1 vote
2 answers
892 views

The following code creates a ScrolledText box which the user can type into. They can also choose one of the buttons to enter a Spanish Language character. from functools import partial import ...
Dave Mathews's user avatar
0 votes
0 answers
209 views

I am using a Gtk.Entry and writing from left to right (xalign==0.0). When the entry is not empty, the cursor is to the right of the text (as expected): But when the entry is empty, the cursor is on ...
Noa Kirsh's user avatar
1 vote
2 answers
95 views

I have some question about printing on C. Here is my code. while(1) { if(Button == 32) { break; } else { if(Button == 1) count += 1; if(...
K C's user avatar
  • 39
0 votes
1 answer
522 views

I am trying to give a date format to a MDTextField on an app I am developing with KivyMD. The format of such field such be 'dd/mm/yyyy'. What I am trying to do is that once the first 2 numbers are ...
Diego Gc's user avatar
  • 185

1
2 3 4 5
9