Jump to content

edpoguatemala

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

edpoguatemala's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for your interest. I figure it out. A colleague will run a php file on the server, so I had to do in in another way. Reading in the forum, looking for solutions I found ideas on how to make it done. So I end with this: #include <Array.au3> #include <File.au3> #include <MsgBoxConstants.au3> #include <InetConstants.au3> #include <WinAPIFiles.au3> MarkCompleted() Func MarkCompleted() ; List all the files and folders in the desktop directory using the default parameters. Local $aFileList = _FileListToArray(@DesktopDir &"\" &@YEAR &"_"& @MON &"_"& @MDAY & "_picpic_orders", "*.txt") If @error = 1 Then MsgBox($MB_SYSTEMMODAL, "", "Path was invalid.") Exit EndIf If @error = 4 Then MsgBox($MB_SYSTEMMODAL, "", "No file(s) were found.") Exit EndIf For $i= 1 to 18 Local $sString = StringLeft($aFileList[$i], 4) ; Retrieve 5 characters from the left of the string. InetGet("https://hellopicpic.com/set_pic_orders_completed.php?token=ygtV2bMh23uJ7f6s&id="&$sString & @CRLF, $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND) Next EndFunc ;==>MarkCompleted
  2. Hello Everyone, So I'm using auto it to automate the download of pictures in woocommerce orders. Once images are downloaded, I need to change the status of the order from in process to completed. This is how my code looks like: Download() Func Download() ; Save the downloaded file to the temporary folder. Local $sFilePath = @DesktopDir&"\TestAutomatizacion\"&@YEAR &"_"& @MON &"_"& @MDAY & "_picpic_orders.zip" ; Download the file in the background with the selected option of 'force a reload from the remote site.' Local $hDownload = InetGet("https://hellopicpic.com/get_pic_orders.php?token=ygtV2bMh23uJ7f6s&type=pic", $sFilePath, $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND) ; Wait for the download to complete by monitoring when the 2nd index value of InetGetInfo returns True. Do Sleep(250) Until InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE) ; Retrieve the number of total bytes received and the filesize. Local $iBytesSize = InetGetInfo($hDownload, $INET_DOWNLOADREAD) Local $iFileSize = FileGetSize($sFilePath) ; Close the handle returned by InetGet. InetClose($hDownload) EndFunc ;==>Download Thanks for any help you can give.
  3. Dear @Werty and @Seminko, Thank you very much for the response. The link to ImageMagick actually help me to complete the task. I download some cmyk profiles and ran the command: convert cmyk_image.jpg -colorspace rgb rgb_image.jpg Now I have to execute that from my autoit script. Thanks for your help.
  4. Hello everyone, I have been looking for the following and haven't find the answer yet. I have a folder where there is .bmp images in RGB, and I need to convert all the images in that folder to CMYK. Then all those files I'll need to export(save) them to .TIFF format. Thank you for any help you can provide. I'll appreciate any script example you can share.
×
×
  • Create New...