Jump to content

All Activity

This stream auto-updates

  1. Today
  2. Yesterday
  3. Made changes to the main post of this thread (pretty much explaining what I did above). Also put more information on all my projects on the new website. Mode60 Official Website (mode-60.github.io)
  4. Yes, you're right, should have guessed...3 days after the others with the same non-standard font, and noob question.
  5. Thanks Melba! Definitely not a showstopper. Easier to identify if it wasn't selected when there is only one entry. Just have to click the header for a little while to see the color lol. Thanks again! -SpeedyKiwi
  6. SpeedyKiwi, The problem is that you are using user-coloured items - so the normal Windows calls made by the _SelectItem function do not affect the row colouring . I will have to take a look at how the deselection can be done in this case. But my home office is being redecorated starting tomorrow so I am not sure how long this might take - do not hold your breath! M23
  7. I'm in the process of silently installing AutoItV3 and need some guidance on customizing a few options without user intervention. Specifically, I'm looking to: - Automatically select between using native x64 tools or x86 tools by default. - Set the default action for .au3 files. - Include optional components such as script examples and UDF script examples. Does anyone have experience or scripts that could help configure these settings silently during installation? Any assistance or pointers would be greatly appreciated.
  8. SpeedyKiwi, Looking into it. To post code you need to use Code tags - see here how to do it. M23
  9. Melba23, Thanks for the quick reply! Quick and dirty GUI to show what I am doing and seeing. Not sure how to post the code like you guys do yet. Forever Learning. Unselect_Row.au3
  10. SpeedyKiwi, Welcome to the forum. I have just tested the _SelectItem function on a ListView and it works fine! So please let me have a short reproductor script that shows the problem and I will investigate further. M23
  11. Thanks for the answers, fellas. Sorry I kind of forgot about this thread, I'm just using RBTray so it's all good. Cheers!
  12. Melba23, First off, thank you for all of your contributions to the community. You rock! Having an issue with deselcting a row of data after it has been colored to indicate a state. I have tried... using -1 to deselct all - no luck using 0,0 for the arguement - no luck Tried selecting the main gui window and it still won't un select the line that is selected in blue. I even grabbed a piece from one of your functions where you specifically state to unselect the row. It's gotta be the user (ME!) but I can't see where I am going wrong. I'm open to any all solutions where someone has successfully unselected a row. Thank you all for your help and time!
  13. Ty @rsn for nudging me in correct direction https://newbedev.com/can-t-change-tel-protocol-handler-in-windows-10 did it Edit: something like this writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\callto", "", "URL:callto") writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\callto", "URL Protocol", "") writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\tel", "", "URL:tel") writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\tel", "URL Protocol", "") writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\dialer.callto\Shell\Open\Command", "", '"' & @ScriptDir & '\' & $appName & '.exe" "%1" /phone') writeReg("HKEY_CURRENT_USER\SOFTWARE\Dialer\Capabilities", "ApplicationDescription", "Dialer") writeReg("HKEY_CURRENT_USER\SOFTWARE\Dialer\Capabilities", "ApplicationName", "Dialer") writeReg("HKEY_CURRENT_USER\SOFTWARE\Dialer\Capabilities\URLAssociations", "callto", "dialer.callto") writeReg("HKEY_CURRENT_USER\SOFTWARE\Dialer\Capabilities\URLAssociations", "tel", "dialer.callto") writeReg("HKEY_CURRENT_USER\SOFTWARE\RegisteredApplications", "Dialer", "Software\Dialer\Capabilities") Func writeReg($p, $n, $v) If @error Or RegRead($p, $n) <> $v Then RegWrite($p, $n, "REG_SZ", $v) EndFunc ;==>writeReg
  14. If you want your app to be on the list, you have to register it as a protocol handler. I've had to fix handlers in the past but never had to create one. The info here seems to be easy enough to follow to modify the keys in: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\tel
  15. That is why i typed "windows/chrome", while firefox do have that, chrome had it until some update in 2023, and now he lets windows OS to handle that part. So my question still stands, how to associate AutoIt app with windows prompt for listing it on default app for "tel:" Closes i have at this point in time is maybe this, Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts but i still need to make test case to see if it should work or not.
  16. does firefox show you in this list? if firefox brings you up, choose firefox and then through firefox, you choose the application you want
  17. I want for my AutoIt app to show on that list so the user can select it, i know where i can list and select them, but how to put my AutoIt app on that list is the question and not how to select default one. As you see i already have that prompt when clicked "shown on image" but i do not have my AutoIt app to select from list.
  18. go to Settings > Apps > Default apps > Choose default apps by protocol > TEL
  19. So basically I installed MicroSIP and Line Phone, and both of them are suggested app for href="tel:" So how i can suggest to windows/chrome that my AutoIt app should be located on that list for user to select from?
  20. You're right inspect tool don't show the text but element is on top. weird. Saludos
  21. YES! This works perfect now! So detailed example, again thank you so much! FirstVisibleLine is the code I needed.
  22. What about this version: -- Perform before each save function PersonalTools:OnBeforeSave(path) local VersionPrefix = ";Version:" -- define the prefix for version line. needs to be the first string on a line if editor.Lexer == SCLEX_AU3 and path ~= "" then -- find version prefix in sourcecode local spos, epos = editor:findtext('^\\s*' .. VersionPrefix .. '\\s*[\\d\\.]*', SCFIND_REGEXP, 0) -- Update when found if spos then local dline = editor:textrange(spos, epos) -- get the text found local curversion = dline:match(VersionPrefix .. '%s*([%d%.]*)') -- retrive portion containing the number local orgpos = editor.CurrentPos -- save current pos local firstvisible = editor.FirstVisibleLine -- save first visible line of script olen = epos - spos -- calculate length of found version string local newversion = VersionPrefix .. string.format(" %.3f", curversion + 0.001) nlen = newversion:len() -- calculate length of new version string editor:SetSel(spos, epos) -- Set text to replace editor:ReplaceSel(newversion) -- replace old version string with new if epos <= editor.CurrentPos then editor:GotoPos(orgpos) -- set caret back to saved pos when we were before the xhanged text else editor:GotoPos(orgpos + nlen - olen) -- set caret back to saved pos when we were after the changed text end editor.FirstVisibleLine = firstvisible -- reset first visible line of script end end end
  23. Yes. Now I have speficication and example I can work on. Anyway, I don't understand the specification fully (even if I translate it to my language). Lua syntax is also something new for me. Now I tried to fix one more issue with that code. Now my script version is increasing every save and cursor stays in the line I was working on but my code jump as the page is scrolled. I tried to fix it by finding some function which can read the current scroll position and then set that position. local curscrollpos = editor.XOffset editor:LineScroll(curscrollpos, 0) but it does not work
  24. This is not a feature, but rather an example for you to play with. So change the script so it does exactly what you want it to do. The documentation about the SciTE LUA functions are in the Helpfle. ... and as you can see by the last reply: Even somebody that never used LUA scripts before can do it when you put your mind to it and do a little bit of searching!
  25. https://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/Lua/SciTE%20Pane%20API.htm My first .lua commands -- Update version of line with this format: -- ;Version: 1.001 -- on each save function PersonalTools:OnBeforeSave(path) if editor.Lexer == SCLEX_AU3 and path ~= "" then local spos, epos = editor:findtext('^\\s*;Version:\\s*[\\d\\.]*', SCFIND_REGEXP, 0) if spos then local dline = editor:textrange(spos, epos) local curversion = dline:match('Version:%s*([%d%.]*)') local cpos = editor.CurrentPos -- Sets the position of the caret. newversion = curversion + 0.001 editor:SetSel(spos, epos) editor:ReplaceSel(";Version: " .. string.format("%.3f", newversion)) editor:GotoPos(cpos) -- Set caret to a position and ensure it is visible. end end end
  26. I have one issue with this feature. Now when I run script from SciTE then my cursor jump to the beginning of the code to change the Version number. Is it possible that cursor stay in the place or jump back?
  1. Load more activity
×
×
  • Create New...