Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Friday fun...
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00356714
Message ID:
00357141
Views:
29
George,

Here's another "wrapper" for your code. It keeps running until ESC is pressed, and pops up the translation in the message box, whenever the clipboard changes. It would be nice if it popped up on top.

Michael
LOCAL loHeck, lcClip, lcText, lnKey
loHeck = CREATEOBJECT("hexwords")

lcClip = ''
DO WHILE .T.
  lnKey = INKEY(1, "H")
  IF lnKey = 27
    RETURN
  ENDIF
  IF lcClip != _CLIPTEXT
    lcClip = _CLIPTEXT
    IF UPPER(LEFT(lcClip, 2)) = "0X"
      lcText = loHeck.HexToWord(lcClip)
    ELSE
      lcText = loHeck.WordToHex(lcClip)
    ENDIF
    =MESSAGEBOX(lcText)
  ENDIF
ENDDO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform