MoriceGrene Posted 23 hours ago Posted 23 hours ago (edited) please cancel my post thanks and sorry Edited 13 hours ago by MoriceGrene
Nine Posted 21 hours ago Posted 21 hours ago 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. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
argumentum Posted 20 hours ago Posted 20 hours ago 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.
MoriceGrene Posted 13 hours ago Author Posted 13 hours ago 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.
argumentum Posted 8 hours ago Posted 8 hours ago 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 MoriceGrene 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
MoriceGrene Posted 5 hours ago Author Posted 5 hours ago 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! argumentum 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now