Mirage Source http://miragesource.net/forums/ |
|
Check Input http://miragesource.net/forums/viewtopic.php?f=201&t=968 |
Page 1 of 16 |
Author: | halla [ Thu Dec 28, 2006 9:44 pm ] |
Post subject: | Check Input |
Ok im making it so when you hit F5 it shows or hides the chat menu. I got it semi working. I went to check input and at the end added... Code: If KeyCode = vbKeyF5 Then
If frmMirage.picChat.Visible = True Then frmMirage.picChat.Visible = False ElseIf frmMirage.picChat.Visible = False Then frmMirage.picChat.Visible = True End If End If The problem with this if you cant tell is when you hide it ... it sees visible is false so then it shows it again and so on... how else should I do this... I tried making a whole new thing... like if F5 then .... but that didnt work... |
Author: | Robin [ Thu Dec 28, 2006 9:57 pm ] |
Post subject: | |
Add exit sub. |
Author: | Tony [ Fri Dec 29, 2006 2:09 am ] |
Post subject: | |
Code: If KeyCode = vbKeyF5 And frmMirage.picChat.Visible = True Then
frmMirage.picChat.Visible = False Else If frmMirage.picChat.Visible = False Then frmMirage.picChat.Visible = True End If Revised. :: Pando |
Author: | funkynut [ Fri Dec 29, 2006 2:33 am ] |
Post subject: | |
Code: If KeyCode = vbKeyF5 And frmMirage.picChat.Visible = True Then
frmMirage.picChat.Visible = False ElseIf KeyCode = vbKeyF5 And frmMirage.picChat.Visible = False Then frmMirage.picChat.Visible = True End If You forgot to check if F5 was being pressed when visibility = false, therefore, whenever it checked input, it would check if visibilty was false and set it to true |
Author: | Lea [ Fri Dec 29, 2006 2:33 am ] |
Post subject: | |
So you're saying the menu flickers when the key is pressed? like... on off on off on off? |
Author: | halla [ Fri Dec 29, 2006 3:24 am ] |
Post subject: | |
Ok I got it ... it wasnt any of those methods and I kept putting it in keyup instead of keydown I beleive that was a problem too. |
Author: | funkynut [ Fri Dec 29, 2006 1:32 pm ] |
Post subject: | |
hmm bugger, I copied the code form wrong person |
Author: | RogerBes [ Sun Nov 07, 2021 2:23 am ] | ||
Post subject: | Весьма привлекательные девки на видео | ||
Сильно красивые барышни на видео - Порно азиатки
|
Page 1 of 16 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |