Muchas Gracias !!
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ú
Hola Mundo!
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
Option Explicit
Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegSetValueExString Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, ByVal lpValue As String, ByVal cbData As Long) As Long
Private Declare Function RegDeleteKey& Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String)
Private Declare Function RegQueryValueExNULL Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, ByVal lpData As Long, lpcbData As Long) As Long
Private Declare Function RegQueryValueExString Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, ByVal lpData As String, lpcbData As Long) As Long
Private Declare Function RegDeleteValue& Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String)
Private Const RAMA_RUN_WINDOWS As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
Private Const HKEY_CLASSES_ROOT = &H80000000
Private Const HKEY_CURRENT_USER = &H80000001
Private Const HKEY_LOCAL_MACHINE = &H80000002
Private Const HKEY_USERS = &H80000003
Private Const REG_SZ As Long = 1
Private Const KEY_ALL_ACCESS = &H3F
Public Function SetAutoRun(Value As Boolean) As Boolean
Dim Path As String
Dim Handle As Long
Path = Chr(34) & App.Path & "\" & App.EXEName & ".exe" & Chr(34)
RegOpenKeyEx HKEY_CURRENT_USER, RAMA_RUN_WINDOWS, 0, KEY_ALL_ACCESS, Handle
If Value Then
SetAutoRun = RegSetValueExString(Handle, App.Title, 0&, REG_SZ, Path, Len(Path)) = 0
Else
SetAutoRun = RegDeleteValue(Handle, App.Title) = 0
End If
RegCloseKey Handle
End Function
Public Function IsAutoRun() As Boolean
Dim Path As String
Dim Handle As Long
Dim Data As String
Dim cch As Long
Path = Chr(34) & App.Path & "\" & App.EXEName & ".exe" & Chr(34)
RegOpenKeyEx HKEY_CURRENT_USER, RAMA_RUN_WINDOWS, 0, KEY_ALL_ACCESS, Handle
RegQueryValueExNULL Handle, App.Title, 0&, 0&, 0&, cch
If cch > 0 Then
Data = String(cch - 1, 0)
RegQueryValueExString Handle, App.Title, 0&, 0&, Data, cch
IsAutoRun = Path = Data
End If
RegCloseKey Handle
End Function
Cita de: pablomi en 31 Octubre 2010, 12:42 PM
Prueba esto:setTimeout("abrir('ejemplo.php')", 2000);
Cita de: pablomi en 31 Octubre 2010, 12:42 PM
Prueba esto:setTimeout("abrir('ejemplo.php')", 2000);
<script>
function abrir(URL){
window.open(URL,"",'width=1024,height=768,left=80, top=80,toolbar=0,scrollbars=0,statusbar=0,menubar =0,resizable=0');
}
</script>
<input type="submit" name="Ver" id="Ver" value="Ver !!" onclick="abrir('ejemplo.php');"/>