Jump to content

Recommended Posts

Posted

Are you serious ?  You want us to debug your code ?  Listen, you need to add in your skills the ability to follow your code and check where your problem is located.  If you cannot find a solution, then reduce to a few lines of code the exact issue, and then we will help you.

Posted
2 hours ago, MoriceGrene said:
 ...
        Case 1 ; MarketWatch
            Local $hFile = FileOpen($sMarketWatchFile, 2)
            If $hFile = -1 Then
                MsgBox(16, $aRighe[37], "Impossibile aprire il file per la scrittura:" & @CRLF & $sMarketWatchFile)
            Else
                consolewrite(GUICtrlRead($inpMarketWatchEdit) & @crlf) ; <<<< maybe it's empty ?
                FileWrite($hFile, GUICtrlRead($inpMarketWatchEdit))
                FileClose($hFile)
                MsgBox(64, $aRighe[36], $aRighe[36], 2)
            EndIf
...

..like @Nine said, try to zoom into the aspect of the code with the problem.
If you want us to look at something, provide simple running code, to run and debug.

And keep in mind that we don't have anything to look into MT5 stuff.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted
8 hours ago, Nine said:

Are you serious ?  You want us to debug your code ?  Listen, you need to add in your skills the ability to follow your code and check where your problem is located.  If you cannot find a solution, then reduce to a few lines of code the exact issue, and then we will help you.

I don’t expect you to debug my code; I’m just trying to understand why IniWrite, instead of updating the INI file, correctly adds a newline at the end of the document but doesn’t update anything. Even if I force it with static data, when it runs it doesn’t do it. The strange thing is that the same code, when not used inside OnEvent, works, so I assume it’s something related to OnEvent or something like that. I couldn’t find anything about it in the manual, so I apologize if I’m bothering you.

Posted
4 hours ago, MoriceGrene said:

..., so I apologize if I’m bothering you.

That sounds more like a non-apology than one. And I'll take offence on his behalf because he did answer your post with good advise ( even if not what you expected ).
The best you can do is to ... do what I asked before.

Maybe is a problem in AutoIt, maybe is a problem with the your script code.
We would welcome a detailed account of, piece by piece of your code, to pin point the exact issue.

Do remember that we dedicate time and answer, out of the goodness of our hearts, and nothing else ;) 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted
3 hours ago, argumentum said:

That sounds more like a non-apology than one. And I'll take offence on his behalf because he did answer your post with good advise ( even if not what you expected ).
The best you can do is to ... do what I asked before.

Maybe is a problem in AutoIt, maybe is a problem with the your script code.
We would welcome a detailed account of, piece by piece of your code, to pin point the exact issue.

Do remember that we dedicate time and answer, out of the goodness of our hearts, and nothing else ;) 

I understand your point, and thank you for your time and advice. There was probably a misunderstanding: my intentions were good, just like yours.
After checking more carefully, I found that the issue was not related to AutoIt nor to the behavior of my script, but simply to an incorrect tab selection that prevented the code from working properly.

From my point of view, if possible, this thread can be removed as well, since it’s not really useful to anyone. I apologize again for opening the topic too hastily without double-checking the code first.

Thanks again, and have a nice day!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...