#NoTrayIcon #SingleInstance force ; Example: Simple input-box: IfExist, login.txt { FileReadLine, name, login.txt, 1 FileReadLine, pass, login.txt, 2 } else { Gui, Add, Text,, Username: Gui, Add, Text,, Passwort: Gui, Add, Edit, vFirstName ym ; The ym option starts a new column of controls. Gui, Add, Edit, vLastName Gui, Add, Button, default, OK ; The label ButtonOK (if it exists) will be run when the button is pressed. Gui, Show, Login Daten eingeben return ; End of auto-execute section. The script is idle until the user does something. ButtonOK: GuiClose: GuiEscape: Gui, Submit ; Save the input from the user to each control's associated variable. FileAppend, %FirstName%`n, login.txt FileAppend, %LastName%`n, login.txt Process, Close, autovpnrun.exe MsgBox, 0, , Deine Daten wurden eigentragen,bitte starte autovpn neu. } Process, Exist, openvpn-gui.exe NewPid=%ErrorLevel% if NewPID = 0 { run C:\Programme\OpenVPN\bin\openvpn-gui.exe --connect fhte.ovpn } WinWait, OpenVPN - User Authentication, Username: IfWinNotActive, OpenVPN - User Authentication, Username:, WinActivate, OpenVPN - User Authentication, Username: WinWaitActive, OpenVPN - User Authentication, Username: Send, %name%{tab}%pass%{ENTER} IfWinExist, OpenVPN Connection (fhte) { WinClose, OpenVPN Connection (fhte) } ExitApp
OpenVPN Autologin script
Started by
mightymike
, Mar 19 2006 07:10 PM
2 replies to this topic
heres my autologin script for the OpenVPN Gui version.
#1
-
Posted 19 March 2006 - 07:10 PM
Hi,
I just used this script to create the auto login. But now I'm faced with the problem how to clear the username/password from my system. Each time I start the openvpn, the programs uses this saved login. Please how do I clear the login or reset it?
I just used this script to create the auto login. But now I'm faced with the problem how to clear the username/password from my system. Each time I start the openvpn, the programs uses this saved login. Please how do I clear the login or reset it?
#2
-
Posted 21 June 2011 - 08:23 AM