Ontrack16 Posted December 27, 2019 Share Posted December 27, 2019 (edited) I prefer not to store my password for a vpn connection. So I want to open the dialog where I can put manually my password. Via the Windows Run dialog, I type : (blurred the VPN name) and it does what I expect. A screen shows and I can put my password and connect the VPN. However, when I put it in an AutoIt script (au3 and exe) it only shows the command window, and closes the command window again. Tried already with Run, RunWait, ShellExecute and ShellExecuteWait. Also with putting C:\Windows instead of @WindowsDir. The debug info shows no error. Edited December 27, 2019 by Ontrack16 Link to comment Share on other sites More sharing options...
Nine Posted December 27, 2019 Share Posted December 27, 2019 Can you show us the @error value after run ? Maybe it is because Windows system redirection. Try running x64, see if that works. Ontrack16 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Ontrack16 Posted December 27, 2019 Author Share Posted December 27, 2019 Thanks a lot for the reply. The @error return value was 0. And the good news is : I tried compiling in x64, and it solves the issue. So this is the final code : Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now