I was curious why this won't send the Decimal point to the currently focused field.
Bob Mechler
Code:
SetFocus MoneyHandle& sTxt = TRIM$(sTxt) IF LEN(sTxt) > 0 THEN FOR IJ = 1 TO LEN(sTxt) MDigit = MID$(sTxt,IJ,1) IF VAL(MDigit) >= 0 AND VAL(MDigit) <= 9 THEN KeyBd_Event ASC(MDigit), MapVirtualKey(ASC(MDigit), 0), 0, 0: SLEEP 0 KeyBd_Event ASC(MDigit), MapVirtualKey(ASC(MDigit), 0), %KEYEVENTF_KEYUP, 0: SLEEP 0 ELSE KeyBd_Event %VK_DECIMAL, MapVirtualKey(%VK_DECIMAL, 0), 0, 0: SLEEP 0 KeyBd_Event %VK_DECIMAL, MapVirtualKey(%VK_DECIMAL, 0), %KEYEVENTF_KEYUP, 0: SLEEP 0 END IF NEXT END IF
Comment