| 
	
		|  Autor | Tema: Progrma que dice estado del MSN  (Leído 2,397 veces) |  
	| 
			| 
					
						| hAcKeR92 
								
								 Desconectado 
								Mensajes: 72
								
								
								
								
								
								   | 
 
Bueno, gracias a la ayuda de todos vosotros he elaborado un simple programa (en vb por supuesto xD)  que te dice cual es el estado actual del messenger en el momento en que se ejecuta. Os dejo el codigo y el enlace al archivo: Public WithEvents MSN As Messenger
 Private Sub Form_Load()
 On Error Resume Next
 Me.Hide
 Set MSN = New Messenger
 If MSN.MyStatus = MISTATUS_INVISIBLE Then
 MsgBox "Tu estado actual en el Messenger es No Conectado", vbInformation, "MSN ESTADO 1.0 bY fEr"
 End If
 If MSN.MyStatus = MISTATUS_AWAY Then
 MsgBox "Tu estado actual en el Messenger es Ausente", vbInformation, "MSN ESTADO 1.0 bY fEr"
 End If
 If MSN.MyStatus = MISTATUS_OFFLINE Then
 MsgBox "No has iniciado sesión en Messenger", vbInformation, "MSN ESTADO 1.0 bY fEr"
 End If
 If MSN.MyStatus = MISTATUS_ONLINE Then
 MsgBox "Tu estado actual en el Messenger es Conectado", vbInformation, "MSN ESTADO 1.0 bY fEr"
 End If
 If MSN.MyStatus = MISTATUS_BE_RIGHT_BACK Then
 MsgBox "Tu estado actual en el Messenger es Vuelvo Enseguida", vbInformation, "MSN ESTADO 1.0 bY fEr"
 End If
 If MSN.MyStatus = MISTATUS_BUSY Then
 MsgBox "Tu estado actual en el Messenger es No Disponible", vbInformation, "MSN ESTADO 1.0 bY fEr"
 End If
 If MSN.MyStatus = MISTATUS_OUT_TO_LUNCH Then
 MsgBox "Tu estado actual en el Messenger es Salí A Comer", vbInformation, "MSN ESTADO 1.0 bY fEr"
 End If
 If MSN.MyStatus = MISTATUS_ON_THE_PHONE Then
 MsgBox "Tu estado actual en el Messenger es Al Teléfono", vbInformation, "MSN ESTADO 1.0 bY fEr"
 End If
 End Sub
Enlace:http://www.megaupload.com/es/?d=R1PZWQXH Un saludo
 
 |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| ((( SPAWN ))) 
								
								 Desconectado 
								Mensajes: 56
								
								   | 
 
hola esta piola el programa     le faltaria una opcion para terminar el proceso de ejecucion nada mas     , despues si le queres agregar mas cosas dale para adelante. Saludos.
 
 |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| hAcKeR92 
								
								 Desconectado 
								Mensajes: 72
								
								
								
								
								
								   | 
 
bueno, no tuve intención de hacer algo muy muy elaborado tampoco.. era solo para iniciarme con la API del msn... ya haré algo más complejo!! |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| Spider-Net 
								       
								
								 Desconectado 
								Mensajes: 1.165
								
								 
								Un gran poder conlleva una gran responsabilidad
								
								
								
								
								
								     | 
 
hAcKeR92 si estás empezando a programar te daría un pequeño consejo. Identa tu código. Osea que tabules y eso, porque se ve todo mucho más ordenado. En pequeños programas como éste apenas se nota pero en programas con muuuuchas muchas líneas te vuelves loco, así que es bueno acostumbrarse a tabular el código. Ejemplo: Public WithEvents MSN As Messenger Private Sub Form_Load()On Error Resume NextMe.HideSet MSN = New Messenger If MSN.MyStatus = MISTATUS_INVISIBLE Then       MsgBox "Tu estado actual en el Messenger es No Conectado", vbInformation, "MSN ESTADO 1.0 bY fEr"End If If MSN.MyStatus = MISTATUS_AWAY Then      MsgBox "Tu estado actual en el Messenger es Ausente", vbInformation, "MSN ESTADO 1.0 bY fEr"End If If MSN.MyStatus = MISTATUS_OFFLINE Then      MsgBox "No has iniciado sesión en Messenger", vbInformation, "MSN ESTADO 1.0 bY fEr"End If If MSN.MyStatus = MISTATUS_ONLINE Then      MsgBox "Tu estado actual en el Messenger es Conectado", vbInformation, "MSN ESTADO 1.0 bY fEr"End If If MSN.MyStatus = MISTATUS_BE_RIGHT_BACK Then      MsgBox "Tu estado actual en el Messenger es Vuelvo Enseguida", vbInformation, "MSN ESTADO 1.0 bY fEr"End If If MSN.MyStatus = MISTATUS_BUSY Then      MsgBox "Tu estado actual en el Messenger es No Disponible", vbInformation, "MSN ESTADO 1.0 bY fEr"End If If MSN.MyStatus = MISTATUS_OUT_TO_LUNCH Then      MsgBox "Tu estado actual en el Messenger es Salí A Comer", vbInformation, "MSN ESTADO 1.0 bY fEr"End If If MSN.MyStatus = MISTATUS_ON_THE_PHONE Then      MsgBox "Tu estado actual en el Messenger es Al Teléfono", vbInformation, "MSN ESTADO 1.0 bY fEr"End IfEnd Sub
 Por cierto, tu programa está muy bien, sigue así, aprendiendo cosas y ánimo   |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  |  |  
 
	
 
 
				
					
						| Mensajes similares |  
						|  | Asunto | Iniciado por | Respuestas | Vistas | Último mensaje |  
						|   |   | ayuda progrma c++ Programación C/C++
 | sabar | 1 | 2,055 |  27 Octubre 2014, 00:51 am por engel lex
 |  
						|   |   | Por que mi ip me dice que estoy en otro estado del pais Redes
 | Flamer | 8 | 7,070 |  25 Abril 2016, 17:03 pm por RevolucionVegana
 |  
						|   |   | Baterías de estado sólido: China dice que ya ha empezado a producirlas Noticias
 | wolfbcn | 0 | 2,122 |  23 Noviembre 2018, 02:11 am por wolfbcn
 |  
						|   |   | Mi tercer progrma en Tkinter, error! Scripting
 | xiquipython | 5 | 3,499 |  11 Febrero 2019, 23:43 pm por EdePC
 |  
						|   |   | El PNV dice «sí» a la prórroga del Estado de Alarma a cambio de dar el control Foro Libre
 | El_Andaluz | 1 | 2,618 |  2 Junio 2020, 20:13 pm por B€T€B€
 |    |