Jump to content

Prab

Active Members
  • Posts

    90
  • Joined

  • Last visited

Recent Profile Visitors

403 profile views

Prab's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Am I misunderstanding the return value from _AD_Open? I just downloaded 0.37 and wanted to make my script error out during _AD_Open. I use all five parameters, and the first 2 are populated from InputBox. The other 3 are static. I use my username and my correct password and it returns 1. I then use my username and an incorrect password and it still returns 1. Seems to me like it shouldn't be able to connect. Any help is appreciated. Sidenote, might be a good idea to add this (untested) to the top of _AD_Open to enforce adding all three of the last parameters If $sAD_DNSDomainParam <> "" Then If $sAD_HostServerParam = "" OR $sAD_ConfigurationParam == "" Then Return SetError(SOME ERROR INFO) EndIf
  2. Hi, I just downloaded the UDF from http://www.autoitscript.com/forum/index.php?app=downloads&showfile=66 and think it has a bug. I run _ADAddUserToGroup($group, $user) which returns -1 when it succeeds, but the documentation says it should return 1. I think the problem stems from Func _ADIsMemberOf($group, $user) $ObjGroup = _ADObjGet("LDAP://" & $strHostServer & "/" & $group) If Not IsObj($ObjGroup) Then Return -1 $ismember = $ObjGroup.IsMember("LDAP://" & $strHostServer & "/" & $user) $ObjGroup = 0 Return -$ismember EndFunc ;==>_ADIsMemberOfWhy does this return -$ismember instead of $ismember? Edit: Never mind, figured it out by using UDF found at http://www.autoitscript.com/forum/index.php?showtopic=106163.
  3. @happy2help - Don't know about the first error. As you can see, my code is only about 5 lines long so it must be something else that is crashing. For your second problem try getting rid of FileDelete(@TempDir & "\test.mp3")then find the file in your temp dir and play it in Itunes/Windows Media Player/VLC. If the mp3 doesn't have all the letters, its a problem with google translate, if it does, its a problem with soundplay().
  4. Found via techcrunch. Just a quick hack using an unofficial api. I could make it more pretty. It just doesn't play anything if you give it a string over 100 characters. textToSpeach("google is the best") Func textToSpeach($input) $temp = StringReplace($input, " ", "+") InetGet("http://translate.google.com/translate_tts?q=" & $temp, @TempDir & "\test.mp3") SoundPlay(@TempDir & "\test.mp3", 1) FileDelete(@TempDir & "\test.mp3") EndFunc Edit: Tested with over 100 characters
  5. This script was made for a friend who has autism. Their doctor wanted them to by a program for almost $2000 that does pretty much the same thing as this. It reads a settings.ini file in the following format [files\Animals.jpg] files\Cat.jpg = files\Cat.wav files\JumpingHorse.jpg = files\Jump.wav [files\Traffic.jpg] files\Stopsign.jpg = files\Stop.wav files\GreenLight.jpg = files\Go.wav I figure it might be a good simple example for people that are trying to make a dynamic GUI. Any feedback is appreciated. SpeechTool.au3
  6. I caught the window by moving my mouse very quickly. There is a race condition in the script. If you move your mouse fast enough you can exploit this and move the window a few pixels closer to your mouse per loop. By repeatedly swiping your mouse quickly one direction, then slowly the other, you can move the windows closer to your mouse. I don't feel that writing a script to do this is cheating (we are on a scripting forum), but I feel that I solved the real puzzle. Edit: Found diagonals are even more effective. I was able to beat it in about 20 seconds using this technique.
  7. I didn't look at the details of your code, but I think _PathSplit covers what you are trying to do. Details are in the help file.
  8. Not 100% sure, but try FileOpen("Name", 1). I believe it will fail if the file is still being written to.
  9. Try adding the macro @CRLF to the end of the string.
  10. Look at _RunDos() in the helpfile. Edit: and GUICtrlRead().
  11. @JSThePatriot - You can't account for everything. I consider it a crash if somebody uses taskmanager to end the process. There is no way to add that error checking to your script. Make a helper script like this $return = RunWait("yourprog.exe")) If $return = 0 Then MsgBox(0,"","Script exited normally") Else MsgBox(0,"","Script crashed") EndIf Most programs/scripts will return 0 as success, just make sure that yours does the same. Edit: Just reread . My solution doesn't, but by using Fileinstall() you could only have one exe.
  12. I have used IE.au3 with both IE6 and IE7 under Windows XP with success. I have never tried it with IE8 or under Vista.
  13. I think if you change $file = GUICtrlRead($Group1) to $file = GUICtrlRead($Input1) it will work.
  14. I noticed, but didn't want to bite the hand that feeds. Again thanks for the help. I'll post the whole script in the example forum when its done. Nothing spectacular, but, hey, its just an example.
  15. Many thanks. Your solution is simple and elegant. It will only have to add one line to my Resume() code to make it work. I still sort of wonder what went wrong with mine. Oh well. I already took care of when seconds are <= 9. I just took that part of the code out to shorten the post.
×
×
  • Create New...