I need to capture the screen coordinates when touching a left mouse
button. Seems like "canvas" should do this but I just do not see it.
Any other ideas?
I need to capture the screen coordinates when touching a left mouse
button. Seems like "canvas" should do this but I just do not see it. Any other ideas?
On Saturday, January 14, 2023 at 10:31:25 AM UTC-7, Luc wrote:
On Fri, 13 Jan 2023 18:26:09 -0800 (PST), mikkelstuff wrote:
I need to capture the screen coordinates when touching a left mouse button. Seems like "canvas" should do this but I just do not see it.bind $canvaswidget <ButtonRelease-1> {$textwidget delete 1.0 end; $textwidget insert end [%W canvasx %x]/[%W canvasy %y]}
Any other ideas?
or
bind $canvaswidget <ButtonRelease-1> {puts [%W canvasx %x]/[%W canvasy
%y]}
--Got it! Sorry but I have not programmed in Tcl/Tk since retirement and am rusty. Ok, rusty geezer. Thanks all
Luc
On Fri, 13 Jan 2023 18:26:09 -0800 (PST), mikkelstuff wrote:
I need to capture the screen coordinates when touching a left mousebind $canvaswidget <ButtonRelease-1> {$textwidget delete 1.0 end; $textwidget insert end [%W canvasx %x]/[%W canvasy %y]}
button. Seems like "canvas" should do this but I just do not see it. Any other ideas?
or
bind $canvaswidget <ButtonRelease-1> {puts [%W canvasx %x]/[%W canvasy %y]}
--Got it! Sorry but I have not programmed in Tcl/Tk since retirement and am rusty. Ok, rusty geezer.
Luc
I need to capture the screen coordinates when touching a left mouse button.
* Harald Oehlmann <wortkarg3@yahoo.com>
| Request:
| In consequence, I would like on a WIndows system to:
| - present a Tk screen: Username/Password
| - then verify the entered username/password against the system the
| computer is in. This may be a local user or a user in the active
| directory.
| TWAPI looks to be helpful here.
Check [open_user_token] in TWAPI:
https://twapi.magicsplat.com/v4.7/security.html#open_user_token
It seems to be the wrapper around LogonUser(), which from what I read is *the* method to verify user/passwd.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (1 / 15) |
Uptime: | 62:57:31 |
Calls: | 9,813 |
Calls today: | 1 |
Files: | 13,754 |
Messages: | 6,191,217 |