Jump to content

Search the Community

Showing results for tags 'stylus'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Wondering how to detect the pen's cursor location in the situations where MouseGetPos() doesn't work. I'm using a Surface Pro 4 and have noticed that MouseGetPos() doesn't always update coordinates when using the pen instead of the mouse to control the cursor (but does on some windows). I read somewhere that the pen is not treated exactly the same as a mouse, so am not surprised by this behaviour. An script to demonstrate this behaviour with the SciTE4AutoIt3 editor and EDGE (or CHROME) running side by side: #include <GUIConstants.au3> HotKeySet("{ESC}", "Terminate") Global $mousex,$mousey Global $oldx = MouseGetPos(0) Global $oldy = MouseGetPos(1) Global $Form1 = GUICreate("Mouse Pos - ESC to exit", 197, 33, 400, 408, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_TOPMOST)) Global $Label1 = GUICtrlCreateLabel("0,0", 0, 8, 196, 17, $SS_CENTER) GUISetState(@SW_SHOW) While 1 $mousex = MouseGetPos(0) $mousey = MouseGetPos(1) if $mousex<>$oldx or $mousey<>$oldy then $oldx=$mousex $oldy=$mousey GUICtrlSetData($label1, "") GUICtrlSetData($Label1, $mousex & ", " & $mousey) endif sleep(100) WEnd Func Terminate() Exit EndFunc Move the cursor using the mouse between windows and coordinates keep updating (Expected behaviour) Move the cursor using the pen between widows - cursor coordinates doesn't update when over the EDGE/CHROME window, but do when over SciTE4AutoIt3. This also happens with CHROME as well as both WORD and ONENOTE's document windows (updates on the toolbars etc, but not over the "page") …
×
×
  • Create New...