Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[Simple]Tut how to make VPN GUI [VB 6 + OPENVPN Commands] ]

Status
Not open for further replies.
InStrRev = search nya ung string tas mag return xa ng position num nya if true...
log_ctr = counter para sa log... d2 ako nag based kng may update sa log oh wala para di na cge refresh ung textbox... ung sample sa 1st page empty nya muna taz lagay lahat ng log...
EOF(1) = End of File ung 1 is reference nya...
Int = convert any string to int and double to int and etc... ex. "1" = 1 or 1.1 = 1
 
sir dapat po siguro ilagay ko dun sa baba ng msgbox na wrong user/pass yung lahat ng timer na iset sa false... kasi po nung lumabas yung error msg pag okay ko naka STOP lang yung caption ng connect button... then nung iclick ko bumabalik lang ulit sa STOP reconnecting and connecting

tama po ba ako?:weep:
 
InStrRev = search nya ung string tas mag return xa ng position num nya if true...
log_ctr = counter para sa log... d2 ako nag based kng may update sa log oh wala para di na cge refresh ung textbox... ung sample sa 1st page empty nya muna taz lagay lahat ng log...
EOF(1) = End of File ung 1 is reference nya...
Int = convert any string to int and double to int and etc... ex. "1" = 1 or 1.1 = 1

salamat ngayon pwede na ulit ako bumalik sa pag babasa ng mga code dito ^_^ :clap::yipee:
 
always set the running Timer to false if nag trigger ang mga yan... di ku kac alam kng anung mga Timer ang nadagdag sa inyo if possible kill also the openvpn para xur and also set the buttons and the State to default status.. :)

no need to insert sa lahat ng Timer...
 
Last edited:
always set the running Timer to false if nag trigger ang mga yan... di ku kac alam kng anung mga Timer ang nadagdag sa inyo if possible kill also the openvpn para xur and also set the buttons and the State to default status.. :)

no need to insert sa lahat ng Timer...

yung gamit ko pong mga timer yung lang nasa file na nakapost dito... kayo po yata nag post nun ^_^ wala akong binago :)
 
ahh alam ko na ilalagay ko dun sa ibaba ng mga msgbox yung
disconnecting_Timer.Enabled = True
para makill at madisconnect na :) then mastop na lahat ng timer :)
 
ahh alam ko na ilalagay ko dun sa ibaba ng mga msgbox yung
disconnecting_Timer.Enabled = True
para makill at madisconnect na :) then mastop na lahat ng timer :)
 
mali mali dapat pala yung reconnect_timer and disable ^_^
 
If InStrRev(line(n), "auth-failure") > 0 Then
Shell "taskkill /F /IM openvpn.exe", vbHide
Command1.Caption = "Connect"
Label1.Caption = "Disconnected"
connecting_Timer.Enabled = False
log_Timer.Enabled = False
MsgBox ("Error: Wrong User/Pass!")
End If
If InStrRev(line(n), "There are no TAP") > 0 Then
Shell "taskkill /F /IM openvpn.exe", vbHide
Command1.Caption = "Connect"
Label1.Caption = "Disconnected"
connecting_Timer.Enabled = False
MsgBox ("Not TAp installed!")
End If

:salute:
 
sir isa pa po palang tanong... yung stat.db natin san nakuha yun? :D

sensya na po ang dami kong tanong ^_^
 
ahh... pde poh iedit un kahit anong gsto nyo...

nyahahaha naoopen pala sa notepad:weep:
:praise:

di kasi agad pumasok sa isip ko yung notepad kasi akala ko ginawa din siya sa vb ^_^

salamat sir :)
 
@shadow


bat ayaw gumana ung sa tap dun sa code na binigay mo....

cannot find the file spicified ung cnasabi sa cmd.... hmmmmm
 
pa help nmn po mga boss chief... tungkol sa Shell App.Path

sitwasyon:
sa main folder ko, nakalagay yung GUI.EXE from vb, folder1[nandito yung openvpn] at folder2 [nandito yung file.ovpn]

problema:
hnd ko na mapagana. :help: anung code po ba pagmay dir?
 
pre eto lagay mo sa notepad mo..

@echo OFF
@cls
@pushd %~dp0
if defined ProgramFiles(x86) (
@echo Installing the 64bit version of TAP Driver
@cd bin/x64/
tapinstall.exe install OemWin2k.inf tap0901
) else (
@echo Installing the 32bit version of TAP Driver
@cd bin/x86/
tapinstall.exe install OemWin2k.inf tap0901
)

pause


then name mo as filename.bat tapos ilagay mo yung file mo sa bin/x64
bin/x86

yan alam mo na siguro kalikutin yan basta yan yung sa batch file
then sa remove eto.. then yung file na devcon.exe nasa baba nitong post ko.. ninakaw ko lang kung saan ehehehe:clap::yipee:

@echo OFF
@cls
@pushd %~dp0
@echo Removing TAP-Win32/TAP-Win64 Drivers...
@devcon remove tap0901
@echo TAP-Drivers are now uninstalled!
pause

eto yung sakin
View attachment 366360
View attachment 366371

ok na napagana ko na.. di ko naintindihan ung cnabi mo... na dun pala ilalagay ung .bat sa mismong files ng x86 hehehehe....


ie para san po ung devcon.exe?

edit


ok devcon.exe para pala dun sa paguninstall.... ^_^ mamats
 
Last edited:
mga master patulong naman kung paano ko icoconvert yung bytes sa KB T_T di ko po magawa eh
 
baka meron sa inyomay code ng sa mb at kb
 
@shadow

nagawa mo na ung sa convertion para sa mb ung recieve sent?
 
Status
Not open for further replies.
Back
Top Bottom