Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/02/2025 in all areas

  1. It was semi-manually, since i also needed to add parameter types and return types. 😅 semi, because i used my inline suggestions from my windsurf AI vscode extension to speed things up. That might be why the text is wrong at some places Edit: I've updated the summary for the two functions mentioned. It will be available with next version 😉
    2 points
  2. thanks argumentum, i found the problem. I should not use: $sUrl = StringRegExpReplace($sUrl, "^.*?:/+", "") before writing the ini file. Cheers mike
    1 point
  3. Ah ok, I will remember to post the error in future! Thank you for your solution and taking time to help out, much appreciated
    1 point
  4. I'm well aware of bias, even my own, hard to live without it, but there it is! Where's that "I'm not worthy" emoji? 😕 Ok I will do that, one last thing, I managed to get a message box to alert the user of a running instance, but would like to add a second line but it just gives errors with everything I try, yet I've adjusted other parts in a similar fashion, can't see what's wrong!!! Here's what I've done: SingleInstanceForce() ; place as the 1st function you call Func SingleInstanceForce() Local $instance = "[TITLE:" & @ScriptFullPath & ";CLASS:AutoIt v3;]" If WinExists($instance) Then MsgBox($MB_ICONERROR, "StartupMonitor64", "The application is already running" & @CRLF & @CRLF "Click OK to close...") Exit 4 EndIf AutoItWinSetTitle(@ScriptFullPath) EndFunc What am I missing? EDIT: I was missing the & before the second set of quotes! Works now...
    1 point
  5. Ok, reverse engineering time ! I took a browser link, dragged it to an editor and this is what I saw: [InternetShortcut] URL=https://www.youtube.com/watch?v=5aWWjNwpDDc in a file named "How to get a lot of money and pay my bills.url" Ok, so I guess: IniWrite("How to get a lot of money and pay my bills.url", "InternetShortcut", "URL", "https://www.youtube.com/watch?v=5aWWjNwpDDc") would recreate that link. I didn't read much but am guessing that this is all you need. Unless I got the question wrong.
    1 point
  6. Yeah, I've just realised it's a fake term! Sorry, I was searching the manual for it and found _Singleton But you aren't using that. I couldn't find any mention of "SingleInstance" in any help file, so I gotta ask, are you mocking me or is that code genuine? I wouldn't blame you if you were tbh! lol I was going to try this from the manual: If _Singleton("test", 1) = 0 Then MsgBox($MB_SYSTEMMODAL, "Warning", "An occurrence of test is already running") Exit EndIf MsgBox($MB_SYSTEMMODAL, "OK", "the first occurrence of test is running") But I'll test yours first, just in case you aren't taking the piddle! EDIT: It worked! Sorry for doubting you! 😨
    1 point
×
×
  • Create New...