Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/18/2020 in all areas

  1. Nine

    Sudoku game 2020

    Yes, I know, another Sudoku game script. I started with a solution finder and progressively it got to a full game. Hope you like it. Version 2020-11-19 * Corrected a bug where grid wasn't displayed correctly after validation on success Version 2020-07-24 * Added icon and wav files for completeness * Added keyboard navigation * Solved a small bug Version 2020-04-14 * 4 levels of difficulty (around 100 grids per level) * Multi-lingual * Allows multiple entries per cell * All grids are solvable by logic only (no trial/error needed) * Remember preferences * Offline playable (SQLite required) * Solution finder works for all grids Enjoy ! Sudoku.zip
    2 points
  2. Thanks @Danp2, You were right as usual
    1 point
  3. Stress test : Search in a folder with 498 subdirectories (10.198 files in total, with 1.351 .au3 files) ==> NO ERRORS @Nine BTW : This might be a small but useful extension. Display the number of folders and files searched and the number of matches (and search time ). A text below the treeview would be sufficient.
    1 point
  4. @Purity8 another good source for AutoIt-related information is the AutoIt Wiki. For instance, answers to your specific questions, in your previous post, can be found in the Wiki's Best Coding Practices topic.
    1 point
  5. @fluflu Glad I could help, and have a good day you too
    1 point
  6. Nine

    WinExists doesn't work

    Opt("WinTitleMatchMode", 3) means that the title of the windows must be exactly the same as what you have provided in the function. It is also case-sensitive. So either there were additional characters in the window title or it was not spelled correctly (case wise). In other words, there was a mismatch between the string and the real window title.
    1 point
  7. JLogan3o13

    reddead1345

    One topic locked for breaking the forum rules can be overlooked. Opening a second with the exact same question (also against the rules) is deserving of a stern warning. Opening a third, where you outright state you're trying to bypass the forum rules is bordering on simply unintelligent. Take a week off to consider whether you actually want to be a legitimate part of this community.
    1 point
  8. nf67, Or you can use these SREs from Malkey to get various parts of the path directly: Local $sFile = "C:\Program Files\Another Dir\AutoIt3\AutoIt3.chm" ; Drive letter - Example returns "C" Local $sDrive = StringRegExpReplace($sFile, ":.*$", "") ; Full Path with backslash - Example returns "C:\Program Files\Another Dir\AutoIt3\" Local $sPath = StringRegExpReplace($sFile, "(^.*\\)(.*)", "\1") ; Full Path without backslash - Example returns "C:\Program Files\Another Dir\AutoIt3" Local $sPathExDr = StringRegExpReplace($sFile, "(^.:)(\\.*\\)(.*$)", "\2") ; Full Path w/0 backslashes, nor drive letter - Example returns "\Program Files\Another Dir\AutoIt3\" Local $sPathExDrBSs = StringRegExpReplace($sFile, "(^.:\\)(.*)(\\.*$)", "\2") ; Path w/o backslash, not drive letter: - Example returns "Program Files\Another Dir\AutoIt3" Local $sPathExBS = StringRegExpReplace($sFile, "(^.*)\\(.*)", "\1") ; File name with ext - Example returns "AutoIt3.chm" Local $sFilName = StringRegExpReplace($sFile, "^.*\\", "") ; File name w/0 ext - Example returns "AutoIt3" Local $sFilenameExExt = StringRegExpReplace($sFile, "^.*\\|\..*$", "") ; Dot Extenstion - Example returns ".chm" Local $sDotExt = StringRegExpReplace($sFile, "^.*\.", ".$1") ; Extenstion - Example returns "chm" Local $sExt = StringRegExpReplace($sFile, "^.*\.", "") MsgBox(0, "Path File Name Parts", _ "Drive " & @TAB & $sDrive & @CRLF & _ "Path " & @TAB & $sPath & @CRLF & _ "Path w/o backslash" & @TAB & $sPathExBS & @CRLF & _ "Path w/o Drv: " & @TAB & $sPathExDr & @CRLF & _ "Path w/o Drv or \'s" & @TAB & $sPathExDrBSs & @CRLF & _ "File Name " & @TAB & $sFilName & @CRLF & _ "File Name w/o Ext " & @TAB & $sFilenameExExt & @CRLF & _ "Dot Extension " & @TAB & $sDotExt & @CRLF & _ "Extension " & @TAB & $sExt & @CRLF) M23
    1 point
  9. Melba23

    how to delete a list item?

    MATISZON, Here you go: Func usunlink() $sName = GUICtrlRead($List1) _GUICtrlListBox_DeleteString($List1, _GUICtrlListBox_GetCaretIndex($List1)) MsgBox(0, "DELETE", $sName & " has been deleted") EndFunc M23
    1 point
  10. Meet the line continuation character "_" $string = 'This is line 1' & @CRLF & _ 'This' & _ ' is line 2' & @CRLF & _ 'This is line 3' ConsoleWrite($string & @CRLF) Now you can have the line to suit your editor width which will be easier for you to manage to type and read.
    1 point
  11. Unable to reproduce that error. Do you have more information how you got that ?
    0 points
×
×
  • Create New...