Hello I want to conect to a Network with DriveMapAdd.
This worked just fine but when you restart the Computer the Mapped drive is gone.
So i used the persistent mapping flag and that seemed to work, too.
However when the Computer is restarted I cant connect to the Network because it doesnt remember the Username and password I ave it the first time.
How do I fix this?
DriveMapAdd("M:", GUICtrlRead($driveM),1, GUICtrlRead($netzuser),GUICtrlRead($netzpassword) )
$netzuser and $netzpassword are set earlier in the gui and it works right after executing the script but i want it to stay connected
Morning, I am wondering is there is a way to prevent a script from ending/crashing when a "Subscript used on non-accessible variable" error occurs?
Here is some of my code:
$aItems = _OL_ItemFind($oOutlook, $mFolder, $olMail, "[UnRead]=True", "Subject", "Maintenance Request", "EntryID,Subject", "", 0) If @error Then Sleep(2000) LoopUnreadEmails() ;Exit MsgBox(48, "", "@error = " & @error & ", @extended: " & @extended & " at line: " & @ScriptLineNumber) EndIf Error Msg:
(371) : ==> Subscript used on non-accessible variable.: $aItems = _OL_ItemFind($oOutlook, $mFolder, $olMail, "[UnRead]=True", "Subject", "Maintenance Request", "EntryID,Subject", "", 0) $aItems = _OL_ItemFind($oOutlook, $mFolder^ ERROR I know that error occurs very rarely and at random. But like with most errors "in this case" I can use recursion to fix it.
I just recall the function and it will and has fixed itself. But this "Subscript used on non-accessible variable" just ends the script.
Like I said before, is there a way to allow the script to keep running or call a function when this error occurs instead of just ending?
Hi, i'm recording a setup for a program using mouse clicks , however, the problem is when the setup installs (the progress bar showing) the auto generated script by the recorder will not have a winwait() or sleep() to click the "finish" button when the setup is completed. is there anyway to do that automatically?
I am going through the AutoIt Wiki and soaking up a lot of great information. On the “Best Coding Practices” page at https://www.autoitscript.com/wiki/Best_coding_practices#Scopes_of_Variables there seems to be a minor detail missing. In the “Variable Initialization” section at https://www.autoitscript.com/wiki/Best_coding_practices#Variable_Initialization , there are references to a data type $o, but in the table listing prefixes and their data types, there does not appear to be a prefix “o”. I assume that this is for Object?
I have searched for almost an hour and I still cannot find examples and or the code that I am looking for concerning my question.
I am wanting to capture/read/send (however you want to say it) the console output to a file.
Here is a picture of what I want to send to a file after the script runs. (what is in the console output/window after the script runs)