-
Posts
447 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
EndFunc's Achievements
-
Netol reacted to a post in a topic:
Set focus of a button
-
$STDOUT_CHILD is not producing any results
EndFunc replied to EndFunc's topic in AutoIt General Help and Support
Ah, I'm stupid for not noticing that. The script wasn't giving an error at all it was running through and not outputting anything. The problem was the the msgbox. Instead of giving me an error because I didn't include MsgBoxConstants.au3 it just seem to ignore it so the script just ran and did nothing. Normally it should say their is a variable not defined. Thanks for clarity and 2nd set of eyes.- 3 replies
-
- $stdout_child
- autoit
-
(and 2 more)
Tagged with:
-
$STDOUT_CHILD is not producing any results
EndFunc posted a topic in AutoIt General Help and Support
Whenever I try to run this simple command it does not work with the constants at the end. If I remove the $STDERR_CHILD and $STDOUT_CHILD, the command works but of course I can't capture the text. I've tried many ways. I have the autoconstants include declared also. I looked at other topics in the forum and many are very old but didn't seem to be this scenario. AutoIt ver 3.3.12 Local $get = Run(@ComSpec & " /c ipconfig","",@SW_SHOW,$STDERR_CHILD + $STDOUT_CHILD) While 1 $sOutput = StdoutRead($get) If @error Then ExitLoop EndIf MsgBox($MB_SYSTEMMODAL, "Stdout Read:", $sOutput) WEnd- 3 replies
-
- $stdout_child
- autoit
-
(and 2 more)
Tagged with:
-
Script run msi in 64bit from netshare
EndFunc replied to Pakserrion's topic in AutoIt General Help and Support
Are you using the correct package name and the full path to the msi file? Also you probably need to specify the working directory as well. The help file for RunAs suggests that it is needed. -
slaney30 reacted to a post in a topic:
Map a drive in WINPE using a variable from the first line of a text file
-
Active Directory UDF - Help & Support (III)
EndFunc replied to water's topic in AutoIt General Help and Support
Did you actually look at the UDF first? _AD_AddUserToGroup- 883 replies
-
- active directory
- ad
-
(and 2 more)
Tagged with:
-
FileWriteToLine help is not working for me. v3.3.10.0
EndFunc replied to meows's topic in AutoIt General Help and Support
Note that the function will not work if there is no line there already. Your script will create the file if it doesn't exist. So that means the file is empty. There are no lines so it sets @error to 1 for the first line you try to write and so forth. _FileWriteToFile seems to imply there is a line there already. It's not working the way you might think it should. You might need to use FileWriteLine. You can try this. If Not _FileCreate(@ScriptDir & "\test.txt") Then MsgBox(48, "Error", " Error Creating test txt. error:" & @error) FileWriteLine(@ScriptDir & "\test.txt", "my replacement for line 1") FileWriteLine(@ScriptDir & "\test.txt", "my replacement for line 2") FileWriteLine(@ScriptDir & "\test.txt", "my replacement for line 3") EndIf FYI I would use backslashes in paths. Just standard for windows. -
Active Directory UDF - Help & Support (III)
EndFunc replied to water's topic in AutoIt General Help and Support
There is a list domain controllers function in the AD UDF if that is useful to you. However you shouldn't need to manually enter the main domain in an input box. Nearly everything can be automated. You can use the macro to get the domain name and use it to join the domain. @LogonDomain msgbox(64, "domain", @LogonDomain)- 883 replies
-
- active directory
- ad
-
(and 2 more)
Tagged with:
-
Run AutoIt Remotely - Nothing seems to work
EndFunc replied to EndFunc's topic in AutoIt General Help and Support
I was able to get farther now and I had to change RunWait to ShellExecuteWait to get part of the script working. But the problem it seems to having now is spaces in the UNC path. Local $hSearch = FileFindFirstFile("\\srv01\software\Server Software\scripts\latest_tsm\*.exe") It fails on this when compiled and called remotely. It works when not compiled and ran from the server. -
pause the program until click the msgbox
EndFunc replied to tonysing's topic in AutoIt General Help and Support
I must have missed something too because the msgbox is typically blocking execution of the rest of the script until it's dimissed. You can try this below. This will install the script if you press OK or wait for 15 seconds. If you hit Cancel it quits. Dim $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(8513,"Software Installation","Voltage Encryption Client for Outlook will be installed on your computer. Please close Microsoft Outlook, Adobe Reader and IE and click OK to start the installation.",15) Select Case $iMsgBoxAnswer = 1 ;OK _Install() Case $iMsgBoxAnswer = 2 ;Cancel Exit Case $iMsgBoxAnswer = -1 ;Timeout _Install() EndSelect Func _Install() ;Your script stuff in here EndFunc -
Run AutoIt Remotely - Nothing seems to work
EndFunc replied to EndFunc's topic in AutoIt General Help and Support
Yeah I'll see what I can do. I can't use openssh with this server but I'll keep testing and put some debug code in. I don't get it either. I'll also test with my account again after putting some debug code in. -
I never said you installed anything. I was just giving you suggestions of what to try and look for. If it doesn't see the class, then it either needs the library or probably just needs to be enabled. Here http://bit.ly/1wsx2LI
-
Run AutoIt Remotely - Nothing seems to work
EndFunc replied to EndFunc's topic in AutoIt General Help and Support
Win2012. Hmm, It appears to be running when using system account, I have been wachting task manager closer, but it starts and goes away, so something is erroring out. Event logs don't show anything useful that I can see. -
How old is your version of PHP? You might try using PEAR to install SOAP, it not loaded. Also if you're using the PHP CLI, which it looks like, it might not have SOAP loaded as it uses a different PHP.ini file than the regular PHP code uses.
-
I've been trying to execute an AutoIT script on a remote server and not having any luck. I don't want to do the old create a sched task to have it run. I've tried calling it from powershell (Invoke-Command), WinRS and PSexec. They run but the script never starts. No error messages. PSexec gives this result within a few seconds. Which means it ran. d:myautoit.exe exited on servername with error code 0 I'm not sure why it won't run. I even added RequireAdmin to the code to see if thats the issue. Ran PSexec with the -i and -s options and even passed my creds with no luck. Why won't this script run? Works fine if I double click it. The autoit exe does a package install by calling an msi and does some configurations after awhile so it's not something that is done fast. I should see it in the task manager for a while just like when I run it manually. I'm hoping someone has some suggestions.
-
Command line with spaces in the path
EndFunc replied to EndFunc's topic in AutoIt General Help and Support
Nevermind I was able to get it to work using the "Working directory" parameter of runwait. $iSched = RunWait(@ComSpec & ' /k ' & 'dsmcutil.exe inst scheduler /name:"ADSM Scheduler" /node:' & @ComputerName & ' /clientdir:"D:\Program Files\Tivoli\TSM\baclient" /optfile:"D:\program files\tivoli\tsm\baclient\dsm.opt" /password:' & @ComputerName & ' /validate:yes /autostart:yes /startnow:yes', "D:\program files\tivoli\tsm\baclient", @SW_SHOW)