Jump to content

rynodyno

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by rynodyno

  1. PLATOOO!!! it's working mate.. there are a quite a few lines written for each error and I need to continue with the script, but i should be able to figure it out.. .thanks a million for your help!!
  2. zach i don't think it's a problem with the macro's.. i replaced the macro's with some simple text, and it still gives me an autoit error... the "line" part of the filewriteline doesn't seem to work no matter what i do!
  3. zach i don't think it's a problem with the macro's.. i replaced the macro's with some simple text, and it still gives me an autoit error... the "line" part of the filewriteline doesn't seem to work no matter what i do!
  4. zach i don't think it's a problem with the macro's.. i replaced the macro's with some simple text, and it still gives me an autoit error... the "line" part of the filewriteline doesn't seem to work no matter what i do!
  5. zach i don't think it's a problem with the macro's.. i replaced the macro's with some simple text, and it still gives me an autoit error... the "line" part of the filewriteline doesn't seem to work no matter what i do!
  6. the _ERROR function is being hit now thanks to @herewasplato!! but i'm getting an error "incorrect number of parameters in function call" and i don't see anything wrong with my code!! here it is: #include <File.au3> $file = FileOpen("\\zeus\$rfernando\Test Scripts\Automatic Testing\test.txt", 9) AdLibEnable("_Error") ; Script Start - start synergetic Run ("S:\TCMVIC\Trial_CD_August\Synergetic\SynMain.exe arose") WinWaitActive("Information") send("{enter}") ;Login WinWaitActive("Synergetic Login") Send("+{TAB}") Send("{DEL}") Send("sa") Send("{TAB}") Send("hersql3{#}") Send("{enter}") ;Create Staff Member Sleep(500) send("!M") Sleep(500) send("H") Sleep(500) send("S") Sleep(500) WinWaitActive("Set Staff Search Criteria") Send("!N");New Staff Member ------------ERROR OCCURS HERE-------------- WinWaitActive("Create New Staff Member") Send("MR") Send("{Enter}") Send("{Enter}") FileClose($file) Func _Error() If WinExists("DataTools Rapid Addressing Tool") Then FileWriteLine($file, @MON & @MDAY & " " & @HOUR & @MIN & @SEC & " I am done:" & @ComputerName, @CR) EndFunc ;Close Synergetic WinWaitActive("Synergetic Management System for Schools [arose]") Send("!C") Send("!F") sleep(100) Send("x") winwaitactive("Confirm") Send("Y")
  7. Thank you so much for your help so far mate!! i think it's almost working.. now when an error pops up it gives me an error saying "Incorrect number of parameters in function call" I don't see anything wrong with it!! even tried 'filewrite'... no success :-( Below is what i've worked on so far... #include <File.au3> $file = FileOpen("\\zeus\$rfernando\Test Scripts\Automatic Testing\test.txt", 9) AdLibEnable("_Error") ; Script Start - start synergetic Run ("S:\TCMVIC\Trial_CD_August\Synergetic\SynMain.exe arose") WinWaitActive("Information") send("{enter}") ;Login WinWaitActive("Synergetic Login") Send("+{TAB}") Send("{DEL}") Send("sa") Send("{TAB}") Send("hersql3{#}") Send("{enter}") ;Create Staff Member Sleep(500) send("!M") Sleep(500) send("H") Sleep(500) send("S") Sleep(500) WinWaitActive("Set Staff Search Criteria") Send("!N");New Staff Member ;--------------------ERROR POPS UP HERE---------------------- WinWaitActive("Create New Staff Member") Send("MR") Send("{Enter}") Send("{Enter}") FileClose($file) Func _Error() If WinExists("DataTools Rapid Addressing Tool") Then FileWriteLine($file, @MON & @MDAY & " " & @HOUR & @MIN & @SEC & " I am done:" & @ComputerName, @CR) EndFunc ;Close Synergetic WinWaitActive("Synergetic Management System for Schools [arose]") Send("!C") Send("!F") sleep(100) Send("x") winwaitactive("Confirm") Send("Y")
  8. how do i call it if i want this function to run everytime an error pops up??
  9. could someone please point me to a simple code thatshows how to creat a file using either _filecreate, dircreate, or writeline please?!!? i've looked through mny but all i could find was how to create backup batch files etc... i need to create a log file with details of error pop-ups (if it should occur).. this is the part of my code where i've tried to do this: #include <File.au3> Func _Error() If @error Then $file = FileOpen("\\zeus\$rfernando\Test Scripts\Automatic Testing\test.txt", 9) ; Check if file opened for writing OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf FileWriteLine($file, @MON & @MDAY & " " & @HOUR & @MIN & @SEC & " I am done:" & @ComputerName, @CR) MsgBox(32, "Error", "Error logged as: " & @error) EndIf FileClose($file) EndFunc ; Script Start - start synergetic Run ("S:\TCMVIC\Trial_CD_August\Synergetic\SynMain.exe arose") WinWaitActive("Information") send("{enter}")
  10. How come no one has EndFunc at the end?! just left it out? or is it not necessary!??! trying it both ways... been working on this for 8 hours now... very... frustrating...
  11. The file still does not get created.. i even tried the 'dircreate' function instead of _filecreate..
  12. thank you buddy!! will get on it straight away!!!
  13. This is the code i have so far... the script keeps running until the program is closed even if there were errors :-( ; Script Start - start synergetic Run ("S:\TCMVIC\Trial_CD_August\Synergetic\SynMain.exe arose") WinWaitActive("Information") send("{enter}") ;Login WinWaitActive("Synergetic Login") Send("+{TAB}") Send("{DEL}") Send("sa") Send("{TAB}") Send("hersql3{#}") Send("{enter}") ;Create Course Sleep(500) send("!M") Sleep(500) send("S") Sleep(500) send("U") Sleep(500) WinWaitActive("Set Course Search Criteria") Send("!N");New course Send ("F");Campus Sleep(100) Send("{Enter}") Send("{TAB}") Send("Test 1");Course Name Send("{TAB}") Send("Auto Generated Test course");Course Description Send("{Enter}") Send("!N");Dates Send("!N");Charges Send("!N");Classes Send("!N");Students Send("!N");UserForms Send("!N");Semester Dates Override Send("!N");Additional Send("!O") Send("^{TAB}") Send("{ESC}") ;Course Created ;Delete course Sleep(1000) send("!M") Sleep(500) send("S") Sleep(500) send("U") Sleep(500) WinWaitActive("Set Course Search Criteria") Send("F") Send("{Enter}") sleep(800) Send("{PGDN 5}") Send("^d") WinWaitActive("Confirm Delete") Send("Delete") Send("{ENTER}") Sleep(2000) Send("Y") Send("{Enter}") WinWaitActive("Set Course Search Criteria") send("{ESC}") WinWaitActive("Synergetic Management System for Schools [arose]") Send("{LEFT 3}") Send("{Enter}") ;Close Synergetic WinWaitActive("Synergetic Management System for Schools [arose]") Send("!C") Send("!F") sleep(100) Send("x") winwaitactive("Confirm") Send("Y")
  14. Hi all! I'm new to autoit (2 weeks!) and have been practicing automating my test scripts for an in-house built software.. i just want to know (i'm not expecting anyone to do the coding for me!) if it is possible to also log errors or any other exceptions while these tests are running in autoit?? and maybe tell me in words how i would go about doing it? i know this mite be a bit too much to ask but even telling me keywords of what to research on or any useful topcis/links i should follow up will be of great help! eagerly waiting for replies... ryan!
  15. hello all, i've been trying to decrypt a password by placing a dll file in the root directory, i can't figure out what's wrong with my code! so far i got: $sIn = "pcM3FjOVITt2McV1fmnWbA==" $sOut = "82493689538956134896128904680123480628034652034623905902349064590230495623904690412390469016349 01234906902490226904690" $result = DllCall ("MyCrypt.dll", " ", "MC_decrypt", "str", $sIn, "str", $sOut, "str", 'Synergetic') MsgBox ($result[2]) this throws an exception: Error: Subscript used with non array variable any help greatly appreciated!
  16. Thanks mate, but i found a pretty basic way of doing it. I just wanted to clear the default username from an application called synergetic (in house built program) and enter my own username and password. WinWaitActive("Synergetic Login") Send("+{TAB}") WinWaitActive("Synergetic Login") Send("{DEL}") Send("USERNAME") Send("{TAB}") Sleep(2000) Send("PASSWORD") Send("{enter}") Thanks anyway! Ryan
  17. I'm new to AutoIT but can someone please tell me how to delete the current username, enter a new one and enter a password?? so far i have managed to open the application the username/ password dialog box is active.
×
×
  • Create New...