PVJsquad Posted March 30, 2012 Author Share Posted March 30, 2012 anyone know how to combine the ALT and H in Form_KeyUp```'hide all menu Case vbKeyMenu + vbKeyH picHotbar.Visible = False picStatus.Visible = False PicHideButton.Visible = True picButton.Visible = False ' minimap Options.Minimap = 0 SaveOptions``` Link to comment Share on other sites More sharing options...
abhi2011 Posted March 30, 2012 Share Posted March 30, 2012 If u mean how to make picHideButton to appear and the rest to disappear upon pressing alt + h then use this.Case vbKeyAlt+ vbKeyH Link to comment Share on other sites More sharing options...
PVJsquad Posted March 30, 2012 Author Share Posted March 30, 2012 not the command```Case vbKeyAlt+ vbKeyH```not workingso I need help to combine ALT + H work Link to comment Share on other sites More sharing options...
erkro1 Posted March 30, 2012 Share Posted March 30, 2012 @GoldSide:> not the command> ```> Case vbKeyAlt+ vbKeyH> ```> not working> so I need help to combine ALT + H workAnd what if you change the + to And (So Case vbKeyAlt And vbKeyH Link to comment Share on other sites More sharing options...
PVJsquad Posted March 30, 2012 Author Share Posted March 30, 2012 @Erwin:> And what if you change the + to And (So Case vbKeyAlt And vbKeyH```Case vbKeyMenu And vbKeyH picHotbar.Visible = False picStatus.Visible = False PicHideButton.Visible = True picButton.Visible = False ' minimap Options.Minimap = 0 SaveOptions```Nothing Changed no effect Link to comment Share on other sites More sharing options...
Keny14 Posted March 30, 2012 Share Posted March 30, 2012 @Erwin:> And what if you change the + to And (So Case vbKeyAlt And vbKeyHWork fine, thanks. ;) Link to comment Share on other sites More sharing options...
PVJsquad Posted April 1, 2012 Author Share Posted April 1, 2012 **vbKeyAlt** Variable not defined :P Link to comment Share on other sites More sharing options...
erkro1 Posted April 1, 2012 Share Posted April 1, 2012 Use vbAltMask instead of vbKeyAlt Link to comment Share on other sites More sharing options...
Growlith1223 Posted April 1, 2012 Share Posted April 1, 2012 In case no one has found an answer yet, you would go something like```If KeyAscii = vbKeyReturn Then If KeyAscii = vbKeyAltMask Then Your code here End IfEnd If``` Link to comment Share on other sites More sharing options...
PVJsquad Posted April 2, 2012 Author Share Posted April 2, 2012 @Grim:> In case no one has found an answer yet, you would go something like> ```> If KeyAscii = vbKeyReturn Then> If KeyAscii = vbKeyAltMask Then> Your code here> End If> End If> > ```**KeyAscii** **Variable not defined** Link to comment Share on other sites More sharing options...
erkro1 Posted April 2, 2012 Share Posted April 2, 2012 Give us the whole sub Link to comment Share on other sites More sharing options...
PVJsquad Posted April 2, 2012 Author Share Posted April 2, 2012 what the sub ? Link to comment Share on other sites More sharing options...
erkro1 Posted April 2, 2012 Share Posted April 2, 2012 @GoldSide:> what the sub ?The sub where this code in is:```'hide all menu Case vbKeyMenu + vbKeyH picHotbar.Visible = False picStatus.Visible = False PicHideButton.Visible = True picButton.Visible = False ' minimap Options.Minimap = 0 SaveOptions``` Link to comment Share on other sites More sharing options...
PVJsquad Posted April 3, 2012 Author Share Posted April 3, 2012 wait? so the code like this ?```'hide all menu Case vbKeyMenu + vbKeyH If KeyAscii = vbKeyReturn Then If KeyAscii = vbKeyAltMask Then picHotbar.Visible = False picStatus.Visible = False PicHideButton.Visible = True picButton.Visible = False ' minimap Options.Minimap = 0 SaveOptions End If End If```or like this ?```If KeyAscii = vbKeyReturn Then If KeyAscii = vbKeyAltMask Then 'hide all menu Case vbKeyMenu + vbKeyH picHotbar.Visible = False picStatus.Visible = False PicHideButton.Visible = True picButton.Visible = False ' minimap Options.Minimap = 0 SaveOptions End IfEnd If``` Link to comment Share on other sites More sharing options...
erkro1 Posted April 3, 2012 Share Posted April 3, 2012 Which one works? Link to comment Share on other sites More sharing options...
PVJsquad Posted April 3, 2012 Author Share Posted April 3, 2012 KeyAscii Variable not defined Link to comment Share on other sites More sharing options...
erkro1 Posted April 3, 2012 Share Posted April 3, 2012 Give me the whole sub then, you know that thing which starts with 'Sub …' and ends with 'End Sub', with the code inside it. Link to comment Share on other sites More sharing options...
PVJsquad Posted April 3, 2012 Author Share Posted April 3, 2012 @Erwin:> Give me the whole sub then, you know that thing which starts with 'Sub …' and ends with 'End Sub', with the code inside it.Sub for KeyAscii? what was inside? Link to comment Share on other sites More sharing options...
erkro1 Posted April 3, 2012 Share Posted April 3, 2012 @GoldSide:> Sub for KeyAscii? what was inside?![](http://blastmagazine.com/wp-content/uploads/2011/02/facepalm.jpg)I'll help you later on Teamviewer. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now