Is there a way to have it so when I click a button on a form, it then changes a presetup system Variable to X.
I have 16 buttons, and each button 1-16 sets the variable to 1-16 depending on what button is pressed.
I then have a separate Auto Hot Key Script running in the background that uses the system variable to choose which program it will run.
I would image something like this:
Is setting a variable from a button possible?
I have 16 buttons, and each button 1-16 sets the variable to 1-16 depending on what button is pressed.
I then have a separate Auto Hot Key Script running in the background that uses the system variable to choose which program it will run.
I would image something like this:
vb Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Set Variable = 3 [HKEY_LOCAL_MACHINE\SOFTWARE\OTS] "Button"="3" End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Set Variable = 5 [HKEY_LOCAL_MACHINE\SOFTWARE\OTS] "Button"="5" End Sub
Is setting a variable from a button possible?