Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - naderST

#521
lo mas fácil es interactuar con un php ahora investigo un poco, sí consigo algo posteo.
#522
Cita de: dj-blydex en 29 Abril 2008, 02:35 AM
panas disculpenme peor son 20 ejercicios y los q no puse fue porq los ice ya disculpenme no importa no escriban mas ya no me ayuden de todos modos yo no lo veia de esa manera no se preocupen por decir mas nada dejenlo asi

Tu no estas pidiendo ayuda tu estas pidiendo que te hagan el trabajo  :¬¬
#523
Si te mandaron a hacer eso deberias tener una base osea la profesora no te puede decir asi sin haberte enseñado nada has tal programa y tal programa...
#524
Sí son proyectos diferentes son 2 ejecutables diferentes pues cuando le den al boton ejecuta el otro ejecutable con Shell.


Shell "C:\el_otro_ejecutable.exe"
#525
Cuando hay una sección de VB y otra de .NET donde va VB6 y donde va vb .net???? es logico no?
#526
Mira este codigo, es para hacer click izquierdo o derecho en la posicion que este el raton.

Option Explicit

Private Const MOUSEEVENTF_LEFTDOWN As Long = &H2
Private Const MOUSEEVENTF_LEFTUP As Long = &H4
Private Const MOUSEEVENTF_RIGHTDOWN As Long = &H8
Private Const MOUSEEVENTF_RIGHTUP As Long = &H10

Private Declare Sub mouse_event Lib "user32.dll" ( _
        ByVal dwFlags As Long, _
        ByVal dX As Long, _
        ByVal dY As Long, _
        ByVal cButtons As Long, _
        ByVal dwExtraInfo As Long)

Private Declare Function GetCursorPos Lib "user32.dll" ( _
        ByRef lpPoint As POINTAPI) As Long
       
Private Type POINTAPI
    x As Long
    y As Long
End Type

Private Sub MouseClick(Button)
    Dim Posicion As POINTAPI
   
    Call GetCursorPos(Posicion)
    Select Case Button
        Case 1
        Call mouse_event(MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, _
            Posicion.x, Posicion.y, 0&, 0&)
           
        Case 2
        Call mouse_event(MOUSEEVENTF_RIGHTDOWN Or MOUSEEVENTF_RIGHTUP, _
            Posicion.x, Posicion.y, 0&, 0&)
           
    End Select
End Sub

Private Sub Command1_Click()
    Timer1.Enabled = True
End Sub

Private Sub Form_Load()
    Timer1.Interval = 1
    Timer1.Enabled = False
End Sub

Private Sub Timer1_Timer()
    Call MouseClick(1)
End Sub
#527
con tu navegador ves el source de la pagina y ahi ves el nombre de los campos del formulario.

En el caso de que uses Firefox: Ver->Codigo de fuente de la página.
#528

Option Explicit

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long

Private Type COPYDATASTRUCT
  dwData As Long
  cbData As Long
  lpData As Long
End Type

Private Const WM_COPYDATA = &H4A

'Private Sub Form_Load()
   'Call SetMusicInfo("Myself", "Debut", "The Song That Never Ends")
'End Sub

' eg: Call SetMusicInfo("artist", "title", "album")
' eg: Call SetMusicInfo("artist", "title", "album", "WMContentID")
' eg: Call SetMusicInfo("artist", "title", "album", , "{1} by {0}")
' eg: Call SetMusicInfo("", "", "", , , False)
Public Sub SetMusicInfo(ByRef r_sArtist As String, ByRef r_sAlbum As String, ByRef r_sTitle As String, Optional ByRef r_sWMContentID As String = vbNullString, Optional ByRef r_sFormat As String = "{0} - {1}", Optional ByRef r_bShow As Boolean = True)

   Dim udtData As COPYDATASTRUCT
   Dim sBuffer As String
   Dim hMSGRUI As Long
   
   'Total length can not be longer then 256 characters!
   'Any longer will simply be ignored by Messenger.
   sBuffer = "\0Music\0" & Abs(r_bShow) & "\0" & r_sFormat & "\0" & r_sArtist & "\0" & r_sTitle & "\0" & r_sAlbum & "\0" & r_sWMContentID & "\0" & vbNullChar
   
   udtData.dwData = &H547
   udtData.lpData = StrPtr(sBuffer)
   udtData.cbData = LenB(sBuffer)
   
   Do
       hMSGRUI = FindWindowEx(0&, hMSGRUI, "MsnMsgrUIManager", vbNullString)
       
       If (hMSGRUI > 0) Then
           Call SendMessage(hMSGRUI, WM_COPYDATA, 0, VarPtr(udtData))
       End If
       
   Loop Until (hMSGRUI = 0)

End Sub

#529
si la propiedad enabled esta en false no se puede (hasta donde yo se :P) pero si quieres cambiarle el ForeColor y que no se pueda modificar pon la propiedad Locked en True
#530
Para que no ejecuten el programa 2 veces es asi:

Private Sub Form_Initialize()
    If App.PrevInstance = True Then
        MsgBox "El programa esta abierto O.o", vbInformation
        Unload Me
    End If
End Sub


y para cambiar el color al textbox es asi:

Private Sub Text1_GotFocus()
    Text1.BackColor = vbRed 'Cuando tiene foco
End Sub

Private Sub Text1_LostFocus()
    Text1.BackColor = vbWhite 'Cuando pierde foco
End Sub