Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/19/2021 in all areas

  1. I assumed you are using SciTE as Editor to modify the source. F1 ( and it could be you need to use Fn+F1 when your Keyboard is set that way!). When you move your cursor to the function RunWait() and then do F1, the Helpfile will be opened with an explanation of the function. mmm ... that means you do not take the time to read and understand ... just try to be patient and do so to really learn to program yourself! Have you tried googling on this to see what that could mean? hint ... now start reading and only come back with a question when you have actually read my answers properly and read on the function. I won't be replying to follow-up question unless you demonstrate you did. Jos
    2 points
  2. You are also missing a quote from the provided code, no? Local $Magick = 'magick convert "C:\Users\Me\Desktop\Folder\image.jpg" -crop +125+25 -crop -125-25 image1.png"' Local $Magick = 'magick convert "C:\Users\Me\Desktop\Folder\image.jpg" -crop +125+25 -crop -125-25 "image1.png"'
    2 points
  3. Remove Exit Function it will exit the loop see.https://www.autoitscript.com/autoit3/docs/keywords/Exit.htm
    1 point
  4. Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Moderation Team
    1 point
  5. I would suggest changing several things -- Move your Global declarations outside of the functions Move the call to CheckIfTabloExist outside of your For...Next. Otherwise, you call it multiple times when the value hasn't been set. You may want to look at using FileReadToArray, which would allow you to do something like this -- Local $aFiles = FileReadToArray($sConfigPath) $sDownloadFolderPath = $aFiles[0] $sLocalFolderPath = $aFiles[1] $sTabloFolderPath = $aFiles[2]
    1 point
  6. Because you call CheckIfTabloExist 3 times. Only on the third call sTabloFolderPath exists and has valid content. I would modify your script as follows: #include <Array.au3> #include <String.au3> #include <AutoItConstants.au3> #include <WinAPIFiles.au3> Global $hConfigOpen, $sReadConfig, $sDownloadFolderPath, $sLocalFolderPath, $sTabloFolderPath Global $sConfigPath = (@ScriptDir & "\Config.txt") Func GetConfigFile() $hConfigOpen = FileOpen($sConfigPath, $FO_READ) If $hConfigOpen = -1 Then Exit MsgBox($MB_SYSTEMMODAL, "", "error reading Config.txt.") ; If open error For $nLine = 1 To 3 $sReadConfig = FileReadLine($hConfigOpen, $nLine) If $nLine = 1 Then $sDownloadFolderPath = $sReadConfig If $nLine = 2 Then $sLocalFolderPath = $sReadConfig If $nLine = 3 Then $sTabloFolderPath = $sReadConfig If Not FileExists($sTabloFolderPath) Then Beep(800, 1000) MsgBox($MB_SYSTEMMODAL, "", $sTabloFolderPath & " does not exist!") Exit EndiF Endif Next EndFunc ;==>GetConfigFile
    1 point
  7. Yea but you didnt learn what @WorkingDir was... Use that instead of the quoted path. If you are running from the same folder. I highly recommend going back to the help page and looking at the now working section.. It might be hard to understand without context but once u have something working you should be able to see whats going on.. @WorkingDir is a variable you can use not just a (Value) you can enter
    1 point
  8. WORK IN PROGRESS! The Simple Library Docs Generator allows to create CHM files from standard UDF function headers. The resulting CHM will look like the CHM help file that comes with AutoIt. Standard UDF headers are described in the wiki. Download the SLDG from the files forum. The SLDG has been written by MrCreatoR. A few modifications have been made by me.
    1 point
  9. Set the Workingdir (parameter 2) to the proper path in the RunWait()?
    1 point
  10. Welcome to the forum! As a note to both new and current members and as mentioned above, please read the FAQs on the AutoIt Wiki before posting. This will save you time, as the answers to many common questions are out there. Most importantly for new forum members, please see the section on Why isn't my thread getting any replies? Forum members are here, volunteering their time to help you with your questions, and we will always do our best to assist. Below are just a few of the items we need from you in order to provide the best help, please see the FAQ section for more: First, foremost and always, know and follow the forum rules: Every member of this forum is expected to know and adhere to the forum rules. The rules are based on common sense and should not be daunting for anyone to follow. Doing so will ensure you receive assistance and will prevent any necessary sanctions by the Moderation team. We would much rather help you with your scripts than have to attend to the unpleasant business of suspending or banning accounts. Add a meaningful title to your thread: "HELP!!" tells no one anything, and will often delay your receiving assistance. Include a detailed description of what you are trying to do, what you have tried on your own, and what problem/error you are experiencing: "Doesn't work" or "AutoIt's broke" doesn't cut it. Forum members are also here to help you write and improve your own scripts; this is not a forum where you put in an order and someone writes the code for you. Always Post Code: Even if the code is not doing what you want it to, posting the code you are working from rather than asking forum members to guess is always going to result in more rapid assistance. If you cannot post the code for business reasons, create a script that reproduces the issue you are seeing.
    1 point
×
×
  • Create New...