A anaylor01 Well-Known Member Licensed User Longtime User Mar 26, 2016 #1 Can you call a button click? I have tried the three below ways and one of them seem to work. btnSaveSettings_Click CallSub(Main,"btnSaveSettings_Click") CallSub("","btnSaveSettings_Click")
Can you call a button click? I have tried the three below ways and one of them seem to work. btnSaveSettings_Click CallSub(Main,"btnSaveSettings_Click") CallSub("","btnSaveSettings_Click")
A anaylor01 Well-Known Member Licensed User Longtime User Mar 26, 2016 #2 I think I am doing the IME action wrong. I am trying to call the button click when the user clicks done on the soft keyboard. Code: Sub IME_HandleAction As Boolean Msgbox("done button","donebutton") ' btnSaveSettings_Click CallSub("Main","btnSaveSettings_Click") End Sub Upvote 0
I think I am doing the IME action wrong. I am trying to call the button click when the user clicks done on the soft keyboard. Code: Sub IME_HandleAction As Boolean Msgbox("done button","donebutton") ' btnSaveSettings_Click CallSub("Main","btnSaveSettings_Click") End Sub
mangojack Expert Licensed User Longtime User Mar 26, 2016 #3 You should be able to call the sub directly. Have you added an action handler for the IME ? try this ... Code: IME.Initialize("IME") IME.AddHandleActionEvent(EditText1) 'your input view Sub IME_HandleAction As Boolean btnSaveSettings_Click End Sub Sub btnSaveSettings_Click Log( "Button has been Clicked") End sub Upvote 0
You should be able to call the sub directly. Have you added an action handler for the IME ? try this ... Code: IME.Initialize("IME") IME.AddHandleActionEvent(EditText1) 'your input view Sub IME_HandleAction As Boolean btnSaveSettings_Click End Sub Sub btnSaveSettings_Click Log( "Button has been Clicked") End sub
A anaylor01 Well-Known Member Licensed User Longtime User Mar 26, 2016 #4 Here is what I have and it isn't working. It doesn't do anything after I click done on the keyboard. Well the keyboard closes and thats it. Code: Sub SetKeyboard IME.Initialize("IME") DoEvents IME.ShowKeyboard(edtGameName) IME.AddHandleActionEvent(edtGameName) End Sub Sub IME_HandleAction As Boolean btnSaveSettings_Click End Sub Upvote 0
Here is what I have and it isn't working. It doesn't do anything after I click done on the keyboard. Well the keyboard closes and thats it. Code: Sub SetKeyboard IME.Initialize("IME") DoEvents IME.ShowKeyboard(edtGameName) IME.AddHandleActionEvent(edtGameName) End Sub Sub IME_HandleAction As Boolean btnSaveSettings_Click End Sub
mangojack Expert Licensed User Longtime User Mar 26, 2016 #5 anaylor01 said: Here is what I have and it isn't working. It doesn't do anything after I click done on the keyboard. Click to expand... Your code works fine here .. All I can suggest is check the spelling of btnSaveSettings_Click Maybe insert a Log call in IME_HandleAction sub to confirm its working ? Upvote 0
anaylor01 said: Here is what I have and it isn't working. It doesn't do anything after I click done on the keyboard. Click to expand... Your code works fine here .. All I can suggest is check the spelling of btnSaveSettings_Click Maybe insert a Log call in IME_HandleAction sub to confirm its working ?