05-11-2009, 09:36 PM 
		
	
	
		I think that I use to have this but I can not find it. Is there a way to get the cursor or I beam position, in notepad, relative to 0,0 of id 15?
	
	
	
	
	
| 
					 Get position of cursor
				 | 
| 
		
		
		05-11-2009, 09:36 PM 
		
	 
		I think that I use to have this but I can not find it. Is there a way to get the cursor or I beam position, in notepad, relative to 0,0 of id 15?
	 
		
		
		05-11-2009, 09:57 PM 
		
	 
		int hwnd=id(15 win("Notepad" "Notepad")) lef 0 0 hwnd 
		
		
		05-12-2009, 04:09 AM 
		
	 
		This just makes the mouse hover over 0,0 of  id 15.I need to know that Notepads I beam is at (the forth space of row 2) relative to 0,0 of id 15 of Notepad. 
		
		
		05-12-2009, 06:11 AM 
		
	 
		Function GetCaretXY gets text cursor position, where possible.
	 
		
		
		05-12-2009, 01:39 PM 
		
	 
		
		
		05-12-2009, 01:52 PM 
		
	 
		GetCaretXY CaretX CaretY 0 0 1 will be relative to the client area of the child window where caret is. 
		
		
		05-12-2009, 06:04 PM 
		
	 
		Thank you – One question. Where is the documentation on the flags or should I just try flags on all functions?
	 
		
		
		05-12-2009, 06:07 PM 
		
	 
		Only what you see in status bar or when press F1.
	 
		
		
		04-18-2010, 09:01 PM 
		
	 
		Hi! I use the below function many times. int x y int h=GetCaretXY(x y) to get caret coordinates in "Microsoft word 2003 on my windows XP" The (h,x, y) are alway (0, 0, 0).   It is relative to screen and works for Notepad, however. I search on the internet for a long time The problem seems that after GetGUIThreadInfo the g.hwndCaret =0, g.rcCaret.left .... are not exist. Can QM experts help me, please! | 
| 
					« Next Oldest | Next Newest »
				 |