Developers Jos Posted February 27, 2023 Developers Share Posted February 27, 2023 (edited) @mike1950rPlease stick to one topic! ** Merged ** Edited February 27, 2023 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Solution mike1950r Posted February 27, 2023 Author Solution Share Posted February 27, 2023 (edited) Sorry to everybody for my confusion. Infact the methode creating an internet shortcut i used was completely wrong. Nevertheless it worked for most urls. Anyway it must be another procedure like this: Func FileCreateInternetShortcut($sUrl, $sFileName, $sWorkingDir, $sIcon) Local $bSuccess, $iSec, $sIni $bSuccess = False $sWorkingDir = StringRegExpReplace($sWorkingDir, "\\+\z", "") & "\" If FileExists($sWorkingDir) Then $sFileName = StringReplace($sFileName, ".url", "") & ".url" $sIni = $sWorkingDir & $sFileName $iSec = "InternetShortcut" $sUrl = StringRegExpReplace($sUrl, "^.*?:/+", "") IniWrite($sIni, $iSec, "URL", $sURL) IniWrite($sIni, $iSec, "IDList", "") IniWrite($sIni, $iSec, "IconFile", $sIcon) IniWrite($sIni, $iSec, "IconIndex", "") $bSuccess = True EndIf Return $bSuccess EndFunc ;==>FileCreateInternetShortcut This is not created by me, I just modified it for my use. It creates another type of file not the same like FileCreateShortcut does. It accepts all Urls and creates the internet shortcuts like Internet Explorer does. The icon part is for those, who download the icon first from the internet sites, like me. Anyway, I want to thank everybody for assisting me and leaving me stealing their time. Thanks again. Cheers mike ☺️ Edited February 27, 2023 by mike1950r Link to comment Share on other sites More sharing options...
mike1950r Posted February 27, 2023 Author Share Posted February 27, 2023 (edited) Have to set: IniWrite($sIni, $iSec, "IconIndex", "0") Cheers mike Edited February 28, 2023 by mike1950r Link to comment Share on other sites More sharing options...
mike1950r Posted February 27, 2023 Author Share Posted February 27, 2023 (edited) Working fine now. Edited February 28, 2023 by mike1950r Link to comment Share on other sites More sharing options...
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