I have several macros which create a dialog, and I'm using the same structure for each one, just different text. The first button on each one is sending the text,l but the cursor's disappearing from the terminal until I click, whereas with all other buttons, the text is sent and the cursor blinks at the last line of text. Even if I change 'Case 1' to send just one letter, the cursor disappears.
My code is:
Sub Main
Dim System As Object
Dim Sess As Object
Set System = CreateObject("EXTRA.System")
Set Sess = System.ActiveSession
Begin Dialog UserDialog 23, 26, 86, 62, "New DACs"
ButtonGroup .AllButtons
PushButton 0, 0, 84, 18, "New DACs Required"
PushButton 0, 20, 84, 18, "Double DACs"
PushButton 0, 40, 84, 20, "B1 Unsuitable"
End Dialog
Dim optsdialog as UserDialog
ichoice = Dialog(optsdialog)
Select Case ichoice
Case 1
Sess.Screen.SendKeys("Some text")
Case 2
Sess.Screen.SendKeys("Some text")
Case 3
Sess.Screen.SendKeys("Some text")
End Select
End Sub
Regardless of the text I send, the first button always makes the cursor disappear, which makes me think there's a problem with the syntax somewhere. Thanks for any help.
My code is:
Sub Main
Dim System As Object
Dim Sess As Object
Set System = CreateObject("EXTRA.System")
Set Sess = System.ActiveSession
Begin Dialog UserDialog 23, 26, 86, 62, "New DACs"
ButtonGroup .AllButtons
PushButton 0, 0, 84, 18, "New DACs Required"
PushButton 0, 20, 84, 18, "Double DACs"
PushButton 0, 40, 84, 20, "B1 Unsuitable"
End Dialog
Dim optsdialog as UserDialog
ichoice = Dialog(optsdialog)
Select Case ichoice
Case 1
Sess.Screen.SendKeys("Some text")
Case 2
Sess.Screen.SendKeys("Some text")
Case 3
Sess.Screen.SendKeys("Some text")
End Select
End Sub
Regardless of the text I send, the first button always makes the cursor disappear, which makes me think there's a problem with the syntax somewhere. Thanks for any help.