Jump to content

adik2dmax666

Active Members
  • Posts

    85
  • Joined

  • Last visited

About adik2dmax666

  • Birthday 04/10/1991

Profile Information

  • Location
    Philippines, Manila
  • Interests
    pen spinning, reading books, playing the piano, table tennis, chess

adik2dmax666's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. #Include <WinAPIEx.au3> Opt('MustDeclareVars', 1) Global $ID = ProcessExists('start.exe') If $ID > 0 Then ConsoleWrite( _WinAPI_GetProcessFileName($ID) & @CRLF) EndIf What if i have 2 running start.exe on different directories? Ex. C:\log1\start.exe C:\log2\start.exe both have different PID but processexist() only returns the first pid..
  2. $read1 = FileRead("C:\RF Online\NetLog\rfclient.log") $read2 = FileRead("C:\Program Files\Level Up Games\RF online\NetLog\rfclient.log") $read5 = FileRead("C:\Program Files (x86)\Level Up Games\RF online\NetLog\rfclient.log") $read3 = FileRead("D:\RF Online\NetLog\rfclient.log") $read4 = FileRead("D:\Program Files\Level Up Games\RF online\NetLog\rfclient.log") $read6 = FileRead("D:\Program Files (x86)\Level Up Games\RF online\NetLog\rfclient.log") $read7 = FileRead("C:\Program Files\RF\RF online\NetLog\rfclient.log") $read8 = FileRead("D:\Program Files\RF\RF online\NetLog\rfclient.log") $username1 = _StringBetween($read1, "SetAccountID", "^^", -1) $username2 = _StringBetween($read2, "SetAccountID", "^^", -1) $username3 = _StringBetween($read3, "SetAccountID", "^^", -1) $username4 = _StringBetween($read4, "SetAccountID", "^^", -1) $username5 = _StringBetween($read5, "SetAccountID", "^^", -1) $username6 = _StringBetween($read6, "SetAccountID", "^^", -1) $username7 = _StringBetween($read7, "SetAccountID", "^^", -1) $username8 = _StringBetween($read8, "SetAccountID", "^^", -1) $size1 = UBound($username1) $size2 = UBound($username2) $size3 = UBound($username3) $size4 = UBound($username4) $size5 = UBound($username5) $size6 = UBound($username6) $size7 = UBound($username7) $size8 = UBound($username8) can it be simplified to this? i dont know if its correct because i run on linux Local $readctr,$read[8],$username[8],$size[8],$arr_read[8] = ["C:\RF Online\NetLog\rfclient.log", "C:\Program Files\Level Up Games\RF online\NetLog\rfclient.log","D:\RF Online\NetLog\rfclient.log","D:\Program Files\Level Up Games\RF online\NetLog\rfclient.log","C:\Program Files (x86)\Level Up Games\RF online\NetLog\rfclient.log","D:\Program Files (x86)\Level Up Games\RF online\NetLog\rfclient.log","C:\Program Files\RF\RF online\NetLog\rfclient.log","D:\Program Files\RF\RF online\NetLog\rfclient.log"] For $i = 0 to 7 ;ConsoleWrite($arr_read[$i] & @LF) $read[$i] = FileRead($arr_read[$i]) $username[$i] = _StringBetween($read[$i], "SetAccountID", "^^", -1) $size[$i] = Ubound($username[$i]) Next
  3. I think he is trying to make a bloater.
  4. I get this error: ### COM Error ! Number: 800401F3 ScriptLine: 36 Description: ### COM Error ! Number: 000000A9 ScriptLine: 37 Description: ### COM Error ! Number: 000000A9 ScriptLine: 38 Description: ### COM Error ! Number: 000000A9 ScriptLine: 43 Description: ### COM Error ! Number: 000000A9 ScriptLine: 47 Description: ### COM Error ! Number: 000000A9 ScriptLine: 64 Description: ### COM Error ! Number: 000000A9 ScriptLine: 65 Description: ### COM Error ! Number: 000000A9 ScriptLine: 67 Description: ### COM Error ! Number: 000000A9 ScriptLine: 70 Description: ### COM Error ! Number: 000000A9 ScriptLine: 71 Description: ### COM Error ! Number: 000000A9 ScriptLine: 72 Description: ### COM Error ! Number: 000000A9 ScriptLine: 75 Description: ### COM Error ! Number: 000000A9 ScriptLine: 78 Description: ### COM Error ! Number: 000000A9 ScriptLine: 84 Description: ### COM Error ! Number: 000000A9 ScriptLine: 88 Description: ### COM Error ! Number: 000000A9 ScriptLine: 90 Description: This is my script. #include <file.au3> Global $oMyRet[2] Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc") ;################################## ; Variables ;################################## $SmtpServer = "smtp.gmail.com" ; address for the smtp-server to use - REQUIRED $FromName = "Ground Defiance" ; name from who the email was sent $FromAddress = "testmail@gmail.com" ; address from where the mail should come $ToAddress = "testmail@gmail.com" ; destination address of the email - REQUIRED $Subject = "Test Mail" ; subject from the email - can be anything you want it to be $Body = "" ; the messagebody from the mail - can be left blank but then you get a blank mail $AttachFiles = "" ; the file(s) you want to attach seperated with a ; (Semicolon) - leave blank if not needed $CcAddress = "" ; address for cc - leave blank if not needed $BccAddress = "" ; address for bcc - leave blank if not needed $Importance = "Normal" ; Send message priority: "High", "Normal", "Low" $Username = "testmail@gmail.com" ; username for the account used from where the mail gets sent - REQUIRED $Password = "*********" ; password for the account used from where the mail gets sent - REQUIRED ;~ $IPPort = 25 ; port used for sending the mail ;~ $ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS $IPPort=465 ; GMAIL port used for sending the mail $ssl=1 ; GMAILenables/disables secure socket layer sending - put to 1 if using httpS $rc = _INetSmtpMailCom($SmtpServer, $FromName, $FromAddress, $ToAddress, $Subject, $Body, $AttachFiles, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl) If @error Then MsgBox(0, "Error sending message", "Error code:" & @error & " Description:" & $rc) EndIf Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Importance="Normal", $s_Username = "", $s_Password = "", $IPPort = 25, $ssl = 0) Local $objEmail = ObjCreate("CDO.Message") $objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>' $objEmail.To = $s_ToAddress Local $i_Error = 0 Local $i_Error_desciption = "" If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress If $s_BccAddress <> "" Then $objEmail.Bcc = $s_BccAddress $objEmail.Subject = $s_Subject If StringInStr($as_Body, "<") And StringInStr($as_Body, ">") Then $objEmail.HTMLBody = $as_Body Else $objEmail.Textbody = $as_Body & @CRLF EndIf If $s_AttachFiles <> "" Then Local $S_Files2Attach = StringSplit($s_AttachFiles, ";") For $x = 1 To $S_Files2Attach[0] $S_Files2Attach[$x] = _PathFull($S_Files2Attach[$x]) ;~ ConsoleWrite('@@ Debug : $S_Files2Attach[$x] = ' & $S_Files2Attach[$x] & @LF & '>Error code: ' & @error & @LF) ;### Debug Console If FileExists($S_Files2Attach[$x]) Then ConsoleWrite('+> File attachment added: ' & $S_Files2Attach[$x] & @LF) $objEmail.AddAttachment($S_Files2Attach[$x]) Else ConsoleWrite('!> File not found to attach: ' & $S_Files2Attach[$x] & @LF) SetError(1) Return 0 EndIf Next EndIf $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer If Number($IPPort) = 0 then $IPPort = 25 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort ;Authenticated SMTP If $s_Username <> "" Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password EndIf If $ssl Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True EndIf ;Update settings $objEmail.Configuration.Fields.Update ; Set Email Importance Switch $s_Importance Case "High" $objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "High" Case "Normal" $objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "Normal" Case "Low" $objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "Low" EndSwitch $objEmail.Fields.Update ; Sent the Message $objEmail.Send If @error Then SetError(2) Return $oMyRet[1] EndIf $objEmail="" EndFunc ;==>_INetSmtpMailCom ; ; ; Com Error Handler Func MyErrFunc() $HexNumber = Hex($oMyError.number, 8) $oMyRet[0] = $HexNumber $oMyRet[1] = StringStripWS($oMyError.description, 3) ConsoleWrite("### COM Error ! Number: " & $HexNumber & " ScriptLine: " & $oMyError.scriptline & " Description:" & $oMyRet[1] & @LF) SetError(1); something to check for when this function returns Return EndFunc ;==>MyErrFunc Autoit Version: Latest Tried solutions: regsvr32 cdo.dll , same errors regsvr32 cdosys.dll , same errors
  5. I can use this UDF even without MS access installed. The udf creates objects available in windows by odbc data sources. Thanks to GEOSoft's udf, I was able to create an inventory system using MDB as a database.
  6. On several occassions, i can log in on some pcs. i still can't figure it out..
  7. Will this UDF work if i don't have installed MS access on my pc?
  8. I have this script to navigate to a website Func Navigate($nNum, $nLink) If $nLink = "" Then $nLink = "about:blank" _IENavigate($oIE[$nNum], $nLink, 0) GUICtrlSetData($Tab[$nNum], "Blank Page") Else _IENavigate($oIE[$nNum], $nLink, 0) $nLink = CheckLink($nLink) GUICtrlSetData($Tab[$nNum], $nLink) EndIf EndFunc ;==>Navigate I'm having some issues with logging in. Some login forms accept the input and logins my account. But some forms doesn't trigger _IENavigate by either pressing the Enter key or clicking on the login button. I checked the source of website that i can't login and some that i can. Working login pages have complete action url ex. facebook <form method="POST" action="https://login.facebook.com/login.php?login_attempt=1" id="login_form"> While forms which i can't login have incomplete action. <form name="myForm" action="login.php" method="post">
  9. solved! MsgBox(4096, @OSArch, @OSArch) returns x86
  10. MsgBox(4096, "@CPUArch", @CPUArch) Returns x64 weird isn't it?
  11. I created a youtube downloader which i compiled as x86 and x64. now i have youtubedownloader_x86.exe and youtubedownloader_x64.exe. I have this initialize script If @CPUArch = "x64" Then ShellExecute("youtubedownloader_x64.exe") Else ShellExecute("youtubedownloader_x86.exe") EndIf Im currently running on a x32 xp . meaning i should run the x86 app. Why does @CPUArch return "x64" but my os is a 32bit xp. all x64 app errors "not valid win32 app"...
  12. Bump, still can't make it though...
×
×
  • Create New...