How to move / set mouse pointer at specified location
Moderator: Rathinagiri
How to move / set mouse pointer at specified location
How to move / set mouse pointer at specified location by coding
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
- danielmaximiliano
- Posts: 2763
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: How to move / set mouse pointer at specified location
Hello BDP:
in Minigui is an example of mouse. work ok in HMG
in Minigui is an example of mouse. work ok in HMG
Code: Select all
/*
* MINIGUI - Harbour Win32 GUI library Demo
*
* Copyright 2002 Roberto Lopez <harbourminigui@gmail.com>
* http://harbourminigui.googlepages.com/
*
* MOUSEMOVE demo
* (C) 2006 Jacek Kubica <kubica@wssk.wroc.pl>
*/
#include "MiniGUI.ch"
Procedure main()
DEFINE WINDOW Form_1 ;
AT 0,0 ;
WIDTH 348 ;
HEIGHT 176 ;
MAIN ;
TITLE "Mouse Test" ;
ON MOUSEMOVE DisplayCoords()
END WINDOW
CENTER WINDOW Form_1
ACTIVATE WINDOW Form_1
Return
*--------------------------
Procedure DisplayCoords()
*--------------------------
Local aCoords:={}
aCoords := GETCURSORPOS()
Form_1.Title:= "Pos y: "+ PADL(aCoords[1]-Form_1.Row-GetTitleHeight()-GetBorderHeight(), 4) + ;
" Pos x: "+ PADL(aCoords[2]-Form_1.Col-GetBorderWidth(), 4)
Return
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
- danielmaximiliano
- Posts: 2763
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: How to move / set mouse pointer at specified location
Code: Select all
SetCursorPos( 380+Win_1.Col+GetBorderWidth(), 195+Win_1.Row+GetTitleHeight()+GetBorderHeight() )
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Re: How to move / set mouse pointer at specified location
Me ganaste de mano.... jajajaja
You came before my answer... hahaha
You came before my answer... hahaha
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: How to move / set mouse pointer at specified location
Thank you, DaNiElMaXiMiLiAnOdanielmaximiliano wrote:Code: Select all
SetCursorPos( 380+Win_1.Col+GetBorderWidth(), 195+Win_1.Row+GetTitleHeight()+GetBorderHeight() )
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG