|
Then I assign that macro to a key combination.
================= LANGUAGE=VBSCRIPT [PCOMM SCRIPT HEADER] LANGUAGE = VBSCRIPT DESCRIPTION=Hex input [PCOMM SCRIPT SOURCE]
Option Explicit
Dim input_value, hex_value
autECLSession.SetConnectionByName (ThisSessionName)
subHex_
If input_value = "" Then
MsgBox ("invalid input")
Exit SubElseIf (IsNumeric(input_value) Or _
(Len(Trim(input_value)) = 3 And _
UCase(Left(input_value, 1)) = "X") And _
IsNumeric("&H" & Mid(input_value, 2, 2))) Then If (UCase(Left(input_value, 1)) = "X") Then
input_value = "&h" & Mid(input_value, 2, 2)
End If If (input_value >= 64 And input_value <= 254) Then
hex_value = Hex(input_value) Else
MsgBox ("value '" & input_value & "' out of range")
Exit Sub
End IfElse
MsgBox ("non numeric input '" & input_value & "'")
Exit Sub
End IfautECLMacro "apl " & Hex(input_value) End Sub
================= Vern
At 01:17 PM 9/23/2004, you wrote:
Speaking of missing keys... Is there a way to map the "Hex" key onto the PC "emulated" keyboard. The workstn keyboard had a Hex key used to input special characters, mostly screen attributes. I like to highlight and color code some of my source files.
Eurrat
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.