Jump to content

Gobinath

Active Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by Gobinath

  1. Hi, How to send the email using autoit and need some examples ... thanks in advance .........? i use this code but it shows error 3 unable to resolve ip ....i connect my pc through proxy server is there any problem .......... #include <INet.au3> $s_SmtpServer = "mysmtpserver.com.au" $s_FromName = "My Name" $s_FromAddress = "From eMail Address" $s_ToAddress = "To eMail Address" $s_Subject = "My Test UDF" Dim $as_Body[2] $as_Body[0] = "Testing the new email udf" $as_Body[1] = "Second Line" $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body) $err = @error If $Response = 1 Then MsgBox(0, "Success!", "Mail sent") Else MsgBox(0, "Error!", "Mail failed with error code " & $err) EndIf
  2. Is possible to connect mysql in autoit If it is possible means need some Examples ....
  3. thanks i need this only .................
  4. Thanks i need one more help if connect two hard-disk and i want to find out boot partition on second disk how it is possible across disk??????
  5. I dont need current running OS ... i need that which partition have the boot loader ..???? thanks in advance
  6. how to find Boot partition when i have Dual OS
  7. IS possible to call windows api in Autoit?????
  8. im n Product Testing ....product name Storcube and wr r u frm...
  9. Thanks smartee and i need i more help from u.......there is any possible to find no. of test case pass,fail,untested using this Html code....
  10. K Smartee every time i need to change S.no it is possible in my code ......
  11. just like this #include <File.au3> if FileExists("E:\1.html") Then _FileWriteToLine("E:\1.html",12,"<TR>",0) _FileWriteToLine("E:\1.html",13,"<TD ALIGN=CENTER>1</TD>",0) _FileWriteToLine("E:\1.html",14,'<TD ALIGN=CENTER>'&@MDAY & "/" & @MON & "/" & @YEAR&'_'&@HOUR & "." & @MIN & "." & @SEC&'</TD> ',0) _FileWriteToLine("E:\1.html",15,"<TD ALIGN=CENTER>"&@OSVersion&"_"&@OSArch&"</TD> ",0) _FileWriteToLine("E:\1.html",16,"<TD ALIGN=CENTER>your text or image</TD> ",0) _FileWriteToLine("E:\1.html",17,"<TD ALIGN=CENTER>your text or image</TD> ",0) _FileWriteToLine("E:\1.html",18,"</TR>",0) $Disk = "E:\1.html" FileOpen($Disk,1) $last_line = FileReadLine ($Disk,-1) MsgBox(4096,"",$last_line) Else $Disk = "E:\1.html" FileOpen($Disk,1) _FileWriteToLine($Disk,1,'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ') _FileWriteToLine($Disk,2,'<html xmlns="http://www.w3.org/1999/xhtml"> ') _FileWriteToLine($Disk,3,'<body>') _FileWriteToLine($Disk,4,'<TABLE BORDER=3 ALIGN=CENTER> ') _FileWriteToLine($Disk,5,'<TR>') _FileWriteToLine($Disk,6,'<TH WIDTH="75" HEIGHT="30">S.No</TH> ') _FileWriteToLine($Disk,7,'<TH WIDTH="200" HEIGHT="30">Date</TH> ') _FileWriteToLine($Disk,8,'<TH WIDTH="150" HEIGHT="30">OsType</TH> ') _FileWriteToLine($Disk,9,'<TH WIDTH="750" HEIGHT="30">Testcase</TH> ') _FileWriteToLine($Disk,10,'<TH>Status</TH>') _FileWriteToLine($Disk,11,'</TR>') _FileWriteToLine($Disk,12,'</TABLE>') _FileWriteToLine($Disk,13,'</body> ') _FileWriteToLine($Disk,14,'</html> ') EndIf
  12. I dont have any code ...please give some simple sample program for html ...because i m new for this
  13. i Dont Have any code for updating HTML....
  14. Hi, Here i m automate the testing i have the variables S.no,testcaseid,Executiondate,Result every i want to print this in to table (HTML Format)Eg: maintain the testcase result in html format S.No TestcaseID Executiondate Result 1 Gui001 8/8/11 Pass Again if execute the program it needs to update the html document like this S.No TestcaseID Executiondate Result 1 Gui001 8/8/11 Pass 2 Gui002 9/8/11 Fail and keep on updating the document ....... Help me on this .....
  15. Thanks Guyz.............!!!!!!!!!!!!
  16. <BackupSet> <Name>07-02-2011_12-43-34</Name> <OSVersion>Windows7</OSVersion> <CreationTime>07/02/2011 12:44:06</CreationTime> <DiskSize>40.0 GB</DiskSize> <DiskUsedSize>40.0 GB</DiskUsedSize> <BackupType>PARTITION_BACKUP</BackupType> <CompressionType>NO_COMPRESSION</CompressionType> <EncryptionType>NO_ENCRYPTION</EncryptionType> <Comment></Comment> <MaxNoOfIncrementals>600</MaxNoOfIncrementals> <VolumeSet>G,I</VolumeSet> <NoOfPartitions>2</NoOfPartitions> <Partition> <Name>G:\</Name> <Index></Index> <Size>20.0 GB</Size> <UsedSpace>1.53 GB</UsedSpace> </Partition> <Partition> <Name>I:\</Name> <Index></Index> <Size>19.99 GB</Size> <UsedSpace>202.13 MB</UsedSpace> </Partition> </BackupSet> here i m using this xml file how to read the name (which is bold) Exactly and store in to variable ???????????? backupsetinfo1.xml
  17. how to schedule a task using autoit
  18. How to write runwait command output in text file..................... help me???????
  19. How to read a data from xml and list the items in list box is it possible to do this ? possible means how? help me . Advance in thanks
  20. That Program is only for calculating Timer I used but i dn't know how to implement before......in between Runwait commands
  21. Thanks "guinness" I got it .........thanks again
  22. local $dif1 ="00" local $dif2 ="00" local $dif3 ="00" While 1 $begin = TimerInit() sleep(1000) $dif = (Round(TimerDiff($begin)/1000)) $dif1 = $dif1+$dif if $dif1 = 60 Then $dif1 = 0 $dif2=$dif2+1 if $dif2<10 Then $dif2 = "0"&$dif2 Endif if $dif2 = 60 Then $dif1 = 0 $dif2 = 0 $dif3=$dif3+1 if $dif3<10 Then $dif3 = "0"&$dif3 Endif EndIf EndIf If $dif1 < 10 Then $dif1 = "0"&$dif1 ;MsgBox(4096,"",$dif1) ConsoleWrite("*"&$dif3&"."&$dif2&"."&$dif1&@CRLF) Else ConsoleWrite("*"&$dif3&"."&$dif2&"."&$dif1&@CRLF) EndIf Wend
  23. ;4.25 local $dif1 ="00" local $dif2 ="00" local $dif3 ="00" While 1 $begin = TimerInit() sleep(1000) $dif = (Round(TimerDiff($begin)/1000)) $dif1 = $dif1+$dif if $dif1 = 60 Then $dif1 = 0 $dif2=$dif2+1 if $dif2<10 Then $dif2 = "0"&$dif2 Endif if $dif2 = 60 Then $dif1 = 0 $dif2 = 0 $dif3=$dif3+1 if $dif3<10 Then $dif3 = "0"&$dif3 Endif EndIf EndIf If $dif1 < 10 Then $dif1 = "0"&$dif1 ;MsgBox(4096,"",$dif1) ConsoleWrite("*"&$dif3&"."&$dif2&"."&$dif1&@CRLF) Else ConsoleWrite("*"&$dif3&"."&$dif2&"."&$dif1&@CRLF) EndIf Wend Here I am using this code for Timer ..........
  24. Here I am using multiple Runwait command for that how to implement that
×
×
  • Create New...