Search found 2439 matches

by jNizM
24 Jan 2020, 09:40
Forum: Ask For Help
Topic: IStartMenuPinnedList Topic is solved
Replies: 18
Views: 427

Re: IStartMenuPinnedList Topic is solved

I'm not sure.. But you can (maybe) just pin to StartMenu, but not unpin Windows 8 (and higher): Items cannot be programmatically removed from Start; they can only be unpinned by the user or removed as part of a program's uninstallation. MS Support: The items that are pinned to the Start menu or task...
by jNizM
24 Jan 2020, 02:52
Forum: Ask For Help
Topic: Get filepath to file(s) used by a process, without handle.exe Topic is solved
Replies: 13
Views: 714

Re: Get filepath to file(s) used by a process, without handle.exe Topic is solved

Yes... use GPO! (e.g. AppLocker)
Because as soon the script is closed / terminated, the restriction does not work.
by jNizM
20 Jan 2020, 03:34
Forum: Scripts and Functions
Topic: [WinAPI] IP Helper functions
Replies: 7
Views: 486

Re: [WinAPI] IP Helper functions

You can check the "Best Interface" before

Code: Select all

MsgBox % GetBestInterface()

GetBestInterface()
{
	static NO_ERROR := 0

	if (DllCall("iphlpapi\GetBestInterface", "ptr", 0, "uint*", BestIfIndex) = NO_ERROR)
		return BestIfIndex
	return false
}
BestIfIndex (GetBestInterface) -> Index (GetAdaptersInfo)
by jNizM
17 Jan 2020, 02:33
Forum: Scripts and Functions
Topic: AHK - WMI - Snippets
Replies: 30
Views: 16403

Re: AHK - WMI - Snippets

Yes.. found my mistake.
Since I use AHK in U64 for years, I did not tested my functions for U32.


edit: should be fixed now for 32-bit
by jNizM
16 Jan 2020, 04:00
Forum: Scripts and Functions
Topic: AHK - WMI - Snippets
Replies: 30
Views: 16403

Re: AHK - WMI - Snippets

Code: Select all

AdaptersInfo := GetAdaptersInfo()
MsgBox % AdaptersInfo[1].DhcpEnabled
by jNizM
15 Jan 2020, 03:31
Forum: Wish List
Topic: built-in variable to obtain public ip
Replies: 1
Views: 155

Re: built-in variable to obtain public ip

You cant do it without 3rd party websites.
by jNizM
15 Jan 2020, 03:17
Forum: Scripts and Functions
Topic: [WinAPI] IP Helper functions
Replies: 7
Views: 486

Re: [WinAPI] IP Helper functions

*reserved
by jNizM
15 Jan 2020, 03:17
Forum: Scripts and Functions
Topic: [WinAPI] IP Helper functions
Replies: 7
Views: 486

Re: [WinAPI] IP Helper functions

*reserved
by jNizM
15 Jan 2020, 03:15
Forum: Scripts and Functions
Topic: [WinAPI] IP Helper functions
Replies: 7
Views: 486

Re: [WinAPI] IP Helper functions

GetNetworkParams function ( msdn ) ; =============================================================================================================================== ; The GetNetworkParams function retrieves network parameters for the local computer. ; https://docs.microsoft.com/en-us/windows/win32/...
by jNizM
15 Jan 2020, 03:11
Forum: Scripts and Functions
Topic: [WinAPI] IP Helper functions
Replies: 7
Views: 486

Re: [WinAPI] IP Helper functions

GetAdaptersInfo function ( msdn ) ; =============================================================================================================================== ; The GetAdaptersInfo function retrieves adapter information for the local computer. ; https://docs.microsoft.com/en-us/windows/win32/a...
by jNizM
15 Jan 2020, 03:10
Forum: Scripts and Functions
Topic: [WinAPI] IP Helper functions
Replies: 7
Views: 486

[WinAPI] IP Helper functions

IP Helper (WinAPI) Internet Protocol Helper (IP Helper) assists network administration of the local computer by enabling applications to retrieve information about the network configuration of the local computer, and to modify that configuration. Functions: > GetAdaptersInfo > GetNetworkParams more...
by jNizM
15 Jan 2020, 03:03
Forum: Scripts and Functions
Topic: AHK - WMI - Snippets
Replies: 30
Views: 16403

Re: AHK - WMI - Snippets

I would prefer a winapi function.
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=71627 -> see GetAdaptersInfo()
by jNizM
14 Jan 2020, 03:41
Forum: Scripts and Functions
Topic: GetBinaryType() ANSI/Unicode
Replies: 3
Views: 234

Re: GetBinaryType() ANSI/Unicode

Alternate function (without DllCalls) MsgBox % GetFilePEHeader("C:\Program Files\AutoHotkey\AutoHotkeyA32.exe") MsgBox % GetFilePEHeader("C:\Program Files\AutoHotkey\AutoHotkeyU32.exe") MsgBox % GetFilePEHeader("C:\Program Files\AutoHotkey\AutoHotkeyU64.exe") GetFilePEHeader(FilePath) { static IMAGE...
by jNizM
14 Jan 2020, 02:55
Forum: Scripts and Functions
Topic: GetBinaryType() ANSI/Unicode
Replies: 3
Views: 234

Re: GetBinaryType() ANSI/Unicode

It's already done here in forum MsgBox % GetBinaryType("C:\Program Files\AutoHotkey\AutoHotkeyA32.exe") MsgBox % GetBinaryType("C:\Program Files\AutoHotkey\AutoHotkeyU32.exe") MsgBox % GetBinaryType("C:\Program Files\AutoHotkey\AutoHotkeyU64.exe") GetBinaryType(Application) { static GetBinaryType :=...
by jNizM
13 Jan 2020, 10:01
Forum: Ask For Help
Topic: Is there a simple and reliable way to process JSON data? Topic is solved
Replies: 61
Views: 5266

Re: Is there a simple and reliable way to process JSON data? Topic is solved

(Just) if the json is short (and a one-line) you can do this also like this json := {"data": [{"Name": "John", "phone": [{"type": "home", "number": "212 555-1234"}, {"type": "mobile", "number": "123 456-7890"}]}, {"Name": "Mike", "phone": [{"type": "home", "number": "212 555-5678"}, {"type": "mobile...
by jNizM
07 Jan 2020, 09:30
Forum: Skripte und Funktionen
Topic: RoboGui - Eine GUI für Robocopy
Replies: 15
Views: 1029

Re: RoboGui - Eine GUI für Robocopy

Man benutzt den MT-Schalter eigentlich bei vielen kleinen Dateien. Da er sehr oft in lesen und schreiben wechselt.
Dadurch fängt er an mehrere Dateien vorzulesen und schreibt sie dann direkt hintereinander weg.
by jNizM
07 Jan 2020, 08:49
Forum: Skripte und Funktionen
Topic: RoboGui - Eine GUI für Robocopy
Replies: 15
Views: 1029

Re: RoboGui - Eine GUI für Robocopy

MT Parameter würde ich durch die GUI veränderbar machen Wenn du den PC in der Zeit des Jobs nicht benötigst, würde ich den Flag hochsetzen und wenn der PC doch benutzt wird, den Parameter runter setzen. /MT [: N] Erstellt multithreadkopien mit N Threads. N muss eine ganze Zahl zwischen 1 und 128 se...
by jNizM
07 Jan 2020, 03:17
Forum: Ask For Help
Topic: Windows: how to detect if other users logged in
Replies: 10
Views: 914

Re: Windows: how to detect if other users logged in

PROBLEM : when JUST one user is logged in, I get 2 popups. The same popup comes up twice. When 2 users logged in - 2 popups. When 3 users logged in - 3 popups. I'm completely confused about the code to get the user information in the first place! It also shows your local computername as logged in. ...

Go to advanced search