Search found 6 matches
- 19 Dec 2022, 21:56
- Forum: Ask for Help (v1)
- Topic: Get currently connected network name
- Replies: 22
- Views: 6805
Re: Get currently connected network name
Sorry teadrinker , I just found a better solution on your codebase: CLSID_NetworkListManager := "{DCB00C01-570F-4A9B-8D69-199FDBA5723B}" NLM_ENUM_NETWORK_CONNECTED := 1 connected := "" NetworkListManager := ComObjCreate(CLSID_NetworkListManager) for NetWork in NetworkListManager.GetNetworks(NLM_ENUM...
- 19 Dec 2022, 21:04
- Forum: Ask for Help (v1)
- Topic: Get currently connected network name
- Replies: 22
- Views: 6805
Re: Get currently connected network name
teadrinker That seems not to be the right one because in my case I wan't to disconnect and reconnect to the SSID without disabling and reenabling the whole WiFi-Adapter. And for connecting to a WiFi-Network, the SSID is not enough, you (only) need the profile name: My solution before "0x8002802B" (...
- 08 Nov 2020, 17:50
- Forum: Tips and Tricks (v1)
- Topic: Why you shouldn't use FileAppend to continuously write to the disk
- Replies: 34
- Views: 39623
Re: Why you shouldn't use FileAppend to continuously write to the disk
If you delete the file and do FileAppend afterwards, you are also deleting the files permissions, for example. Here is a better solution: FILEPATH=%A_AppData%\vlc\vlcrc if(!FileExist(FILEPATH)) { MsgBox Couldn't find file. return } file:=FileOpen(FILEPATH,"rw") if(!IsObject(file)) { MsgBox Can't ope...
- 17 Aug 2020, 18:37
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 139078
Re: Get the URL of the current (active) browser tab
I have read all the code in this thread and here is my solution (caution - thank you tdalon : from system to system the Acc-path can vary!): #Include AccV2.ahk ; https://github.com/sancarn/ACC.AHK F7::MsgBox % GetURL() GetUwpAppName() { ; https://www.autohotkey.com/boards/viewtopic.php?p=73137#p7313...
- 17 Aug 2020, 18:31
- Forum: Ask for Help (v1)
- Topic: Get url of browser
- Replies: 3
- Views: 7134
Re: Get url of browser
Here is my solution (caution - thank you tdalon : from system to system the Acc-path can vary!): #Include AccV2.ahk ; https://github.com/sancarn/ACC.AHK F7::MsgBox % GetURL() GetUwpAppName() { ; https://www.autohotkey.com/boards/viewtopic.php?p=73137#p73137 WinGet name,ProcessName,A if(name="Applica...
- 26 Jul 2020, 13:53
- Forum: Ask for Help (v1)
- Topic: How to update value from XML? Topic is solved
- Replies: 1
- Views: 1240
Re: How to update value from XML? Topic is solved
configfile= ( <?xml version="1.0" encoding="Windows-1252" ?> <NotepadPlus> <GUIConfigs> <GUIConfig name="noUpdate" intervalDays="15" nextUpdateDate="20200808">no</GUIConfig> <GUIConfig name="Backup" action="0" useCustumDir="no" dir="" isSnapshotMode="yes" snapshotBackupTiming="7000" /> </GUIConfigs...