Jump to content

ValentinM

Active Members
  • Posts

    28
  • Joined

  • Last visited

About ValentinM

  • Birthday 12/07/2000

Profile Information

  • Member Title
    Jedi

Recent Profile Visitors

580 profile views

ValentinM's Achievements

Seeker

Seeker (1/7)

11

Reputation

  1. Hi Sven, thanks for your detailed explanations, I didn't know about this feature. Yes, I was talking about Ctrl+Shift+F (and Ctrl+F as well depending on context). Even if this feature is very useful, I still think it shouldn't be the default behaviour (still in my opinion) as when I "Ctrl+Click" a variable, I'm used to instantly reach its definition. But yes, this feature should be available. Regards !
  2. I disagree, why not use Ctrl+F to navigate between occurrences ?
  3. FYI, this feature doesn't come from VSCode itself but from GitHub Copilot, which is an AI helper using GPT-4 that predicts code based on your files (I can't remember if it sticks to the current file or more, but it was originally supposed to only read the current one). It not only predicts the right includes but is also excellent at making loops, filling arrays, etc. However, it can be quite bad at other tasks. It learns from your code and can read your comments, so you can implicitly give it directives. For example: So keep in mind that it could mess with the includes as well. But I use it daily, and it helps me more than it hurts my brain 😀 In the past, you had to be a student, teacher, or pay for access to Copilot, but I can see on their website that it has become free. To use it, you have to install this extension and probably sign in or sign up for a GitHub account. EDIT : Autocompletion is made by pressing TAB.
  4. The power of VS Code is in extensions. You want bookmarks ? Install Bookmarks. Or maybe you would like a "session" system just like in SciTE ? Install Save and restore tabs. You also can open .csv files, and color them with Rainbow CSV for a better reading experience, or even use Git(hub/lab) straight into it. Copilot can help too, and since it reads your open files, we have to admit that it works pretty well. These are some extensions I am using, I hope it will be useful for someone.
  5. I’ve been using PhpStorm and VSCode for a few years now, and I couldn't get used to SciTE (although I use it occasionally because of its lightweight nature). That’s why I managed to make things work with @genius257's extension, as Damien’s version was old (not updated since a long time when I tried it) and highlighting all our base code in red (since we’re using OOP and multiple files in my team). The extension fits my needs perfectly. Additionally, I developed my own extension to open the AutoIt Help when I press a shortcut, with the function under the cursor automatically selected in the Help GUI. I also released an update today (what a coincidence !) to support UDF .chm files: AutoIt Tools (not a big work as a debugger, but I needed it). EDIT : (add) -> I managed to use VSCode's tasks, preLaunchTasks and launch settings to automatically start Au3Check before compiling so I have no issues.
  6. Hello Melba, Today I was doing the final tests of my application, and I encountered a case I did not expect to fail. I have a function that deletes columns, using your _GUIListViewEx_DeleteColSpec() function. Unfortunately, when I try to delete the last column of the Listview, I get this error : I've been able to fix this on my side, just by doing "if columns count is = 1 then abort", and it is not currently a problem in my app. Anyway, I think it deserves a fix in the future version. Are you able to reproduce the issue ? I wish you a Merry Christmas, take care !
  7. This was the answer for me. I was getting the MsgBox "Error opening libcurl.dll", until I added the libcurl.dll and libcurl-x64.dll parent folder to my system environment variables. I am using VS Code (with launch.json and task.json to debug), and as my team is using SciTE they didn't have the issue (probably due to SciTE environment variables). Hope it can help someone in the future !
  8. Hello Melba23, it seems to work wonderfully. Your work is very useful to me, and your bug fixing work is just as useful. I wish I could better understand how your code works and maybe sometimes give you some bugfixing snippets in case I find any issue in the future, but I unfortunately just don't have the time to study your entire code - I'm just using it. Thank you very much !
  9. Sure, I will be patient. If I can find something I'll comeback here but I don't know if I'll have the time either. Take care!
  10. Melba23, thank you for your reply. Unfortunately, your beta doesn't fix the issue on my side. I don't notice any change in the behaviour I described yesterday, except that if there are too many columns in the listview to fit on the GUI (so you have the scrollbar at the bottom), there is another issue. For example, if you have "Col 0, Col 1, Col 2, Col 3,..." and many others, and you try to move Col 2 to Col 0 then you will have Col 2, Col 0, Col 1, Col 3,... But then, if you try to edit "Col 0", it will automatically "scroll" the listview so you will only see "Col 0, Col 1, Col 3,..." and you have to scroll back to "Col 2" to see it. And each time you want to edit "Col 0", it will do that scroll. And the edit field is still located on "Col 0". I don't know if I am very clear so if needed I can try to reformulate or even take screenshots.
  11. Hello, I think I found an issue. If I drag & drop the first column elsewhere, the edit input field linked to it will stay at the first column location. I noticed it while adding a column to my file, and trying to edit some cells. I don't know how I could miss that before now. This is what I get for example when I double-click on the first row, straight under the "hi" column. Take a look at the input field width, which is exactly the same as "hi" column one.
  12. I don't know what you call "modifiers" so I will try to go a bit deeper in details to be clear. I have two functions that manages my hotkeys, StartHotkeys() and StopHotkeys(). So the only thing I do to get my Hotkeys firing my functions is for example : HotKeySet("{DELETE}", "DeleteRow") And sometimes in the app, I don't want the Hotkeys to be on (ie. when a file is loading, if my GUI doesn't have the focus,...), so when it happens I use StopHotkeys() that basically does the same thing without calling a function. HotKeySet("{DELETE}") Did I answer you correctly? EDIT : Just googled "modifiers" and seems like it's just like pressing "Shift" or "Ctrl"... So I am not using modifiers for deleting rows.
  13. Thank you M23, I have a better understanding now. This is a better idea, and if I don't misunderstand, it will save some resources as this function will not check every time if there is an ongoing edit process. I successfully implemented your function, this way : Func DeleteRow() If _GUIListViewEx_EditProcessActive() <> 0 Then StopHotkeys() Send("{DELETE}") Return EndIf If _GUICtrlListView_GetSelectedCount($iIDListView) > 0 Then ; My delete code Else ; Error case EndIf EndFunc The only thing that bothers me is that I need to manually send the 'DELETE' key to my GUI. Otherwise, the first 'DELETE' keypress will not delete a char in the edit field. PS : The function you typed in your example doesn't match the function in your UDF ( _GUIListViewEx_EditProcess() -> _GUIListViewEx_EditProcessActive() ).
  14. Thank you M23, I tried your new UDF. I placed this snippet on the top of my GUI loop, and I have to say it doesn't work properly. Local $test = _GUIListViewEx_EditProcessActive() ConsoleWrite("$test = " & $test & @CRLF) If $test = 0 Then $oLog.TracerLog("Not editing, $test = " & $test) $bEditingCell = False Else $oLog.TracerLog("Editing, $test = " & $test) $bEditingCell = True EndIf This code is spamming my debug console of "Not editing, $test = 0" which is okay. But when I start editing, it seems that the GUI loop stops until I exit the cell. Is it a behaviour you can reproduce ? If not, it would probably mean that some of my code is interfering with yours. I'm investigating.
×
×
  • Create New...