Jump to content

Ontrack16

Members
  • Posts

    5
  • Joined

  • Last visited

Ontrack16's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. 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 :
  2. 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.
  3. I went looking inside the 7zip.au3. I saw no problem with the variable. It is properly declared as a global (at beginning in the file). Beats me why the error appears then What I did see is that in the beginning, it tries to open 7-zip32.dl in the script folder. Global $hDLL_7ZIP = DllOpen(@ScriptDir & "\7-zip32.dll")l I tried to find this file in my 7zip installation (4.65) but couldn't find it. So I googled and downloaded a version (3.11.0.1) So I placed the requested file in my script dir. And yes, now it works
  4. When I try to use the udf, I get an error about an undeclared variable I downloaded and installed latest autoit and 7zip versions.
  5. I use AutoIT mainly for running several installation programs one after the other. Some of the installation programs have the "unpleasant" habit to ask user to reboot the computer. Example : I make a program to run setup1.exe, then setup2.exe then ... When setup1.exe is at its' end, it tell the user to reboot the computer. Which the user does. Result : Not everything is installed. Not everything has been installed (setup2.exe, ...) Currently I just show a message box at the beginning, telling the user not to reboot even when it's asked for. But I am looking for something better. I tried by "detecting" the dialog box that tells the user to reboot (with autoinfo) without success. Is there a way to detect that windows is trying to reboot, and prevent it ?
×
×
  • Create New...