Search found 468 matches

by qwerty12
23 Mar 2018, 20:04
Forum: Scripts and Functions
Topic: Set laptop brightness & show Win 10's native OSD
Replies: 10
Views: 2604

Re: Set laptop brightness & show Win 10's native OSD

Hello, I am newbie here, but I have been using AutoHotkey since some years ago. I was looking for a way to control my laptop's brightness, and your script seems to be the solution. I am getting an error (Call to nonexistent function), and I have read that powrprof.dll is not loaded, but I don't kno...
by qwerty12
29 Jan 2018, 19:10
Forum: Ask For Help
Topic: Get StdOut From Process Thread
Replies: 3
Views: 203

Re: Get StdOut From Process Thread

Do you mean this MinHook ? I've never heard of it before, but that's absolutely worth my time to look into. Is there an AHK library available? I didn't see any come up with my search. That's the one. The CodeProject page by the author describes it well. A pure AHK hooking library can be found here ...
by qwerty12
29 Jan 2018, 15:41
Forum: Ask For Help
Topic: Get StdOut From Process Thread
Replies: 3
Views: 203

Re: Get StdOut From Process Thread

I think the problem is that KFServer.exe allocates a new console and then uses WriteConsole to write directly to it, bypassing any stdout redirection. It seems the usual way to get the output in such a case appears to be "screenscraping" the console buffer (I think), see: Why can't I redir...
by qwerty12
29 Jan 2018, 07:28
Forum: Ask For Help
Topic: How to check if active window runs as admin? Topic is solved
Replies: 4
Views: 217

Re: How to check if active window runs as admin? Topic is solved

You could try https://github.com/jNizM/AHK_Scripts/blob/master/src/process_thread_handle_module/IsProcessElevated.ahk, just with "OpenProcess", "uint", 0x0400 changed to "OpenProcess", "uint", 0x1000 . Use WinGet , PID, PID, A to get the PID of the active wind...
by qwerty12
28 Jan 2018, 11:03
Forum: Ask For Help
Topic: How to implement progress bar Topic is solved
Replies: 2
Views: 216

Re: How to implement progress bar Topic is solved

EDIT: I'm glad the modified PS script worked for you. Thanks for letting me know about the results of the WMI one For the PowerShell variant, this might work (keep/remove/change the GuiClose label which I copied from your post if desired): #NoEnv ; Recommended for performance and compatibility with ...
by qwerty12
25 Jan 2018, 10:52
Forum: Ask For Help
Topic: Remapping hotkeys on a Lenovo W540 laptop
Replies: 2
Views: 171

Re: Remapping hotkeys on a Lenovo W540 laptop

Hi, If you use Process Monitor with the following filters: ⋅ Process Name is shtctky.exe then Include ⋅ Path contains SOFTWARE\Lenovo\ShortcutKey\AppLaunch then Include do you get hits in procmon.exe when pressing your dedicated Explorer / Lock Computer key? If you do, you can ha...
by qwerty12
23 Jan 2018, 16:47
Forum: Ask For Help
Topic: Hide or block the script form Task Manager Topic is solved
Replies: 7
Views: 351

Re: Hide or block the script form Task Manager Topic is solved

EDIT: You're welcome :-) Hi, it's ok if they see are able to see the script in task manager but not able to close it only user with admin access can close the script. Paste the following functions in somewhere and call SetRestrictedDacl() on startup of your script. It's not foolproof: an adm...
by qwerty12
27 Dec 2017, 11:12
Forum: Scripts and Functions
Topic: Pre-built ImageLists - credits to SKAN
Replies: 16
Views: 711

Re: Pre-built ImageLists - credits to SKAN

I couldn't find any useful info about the IL header. Not that I know anything about this myself, but there's this from ReactOS. EDIT: (Sorry, I'll just edit this post - I feel this would just clutter up your thread as a new post :-)) :wave: Hey, just me. No problem. Good luck (though I'm sure you w...
by qwerty12
26 Dec 2017, 09:07
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1031

Re: how to know if windows media player is playing or not? Topic is solved

No problem, partof :-) @Qwerty: my mind exploded while trying to follow your code... Sorry, while I'm usually rather lazy when it comes to commenting, that script took me a while to write so I wasn't particularly enthused about the idea of going back to it in this case... The stuff after the ; --- i...
by qwerty12
25 Dec 2017, 15:24
Forum: Ask For Help
Topic: OneDrive On-demand sync
Replies: 14
Views: 641

Re: OneDrive On-demand sync

Hi, EDIT 22/12/2017 : Once again many thanks, I am using it with a loop so no need for file array, I will do some further testing and post if there is any issue. For now it works for most files and folders regardless of the size. Also, would I be able to extend this logic to access any right click m...
by qwerty12
25 Dec 2017, 09:22
Forum: Ask For Help
Topic: Run application elevated Topic is solved
Replies: 18
Views: 846

Re: Run application elevated Topic is solved

Does winwait also work with multiple variables ? ex : Windows in french will have " Windows Management Instrumentation Tester" window called differently so I wouldn't want the script to freze on other languages. Many thanks I think you might be able to use a window group , but I'm not sur...
by qwerty12
24 Dec 2017, 15:34
Forum: Ask For Help
Topic: Run application elevated Topic is solved
Replies: 18
Views: 846

Re: Run application elevated Topic is solved

My bad. The first should actually be Run, %A_WinDir%\SysNative\wbem\wbemtest.exe With the second, that's just a typo on my part, try oldRedirectionValue := 0 (I'm still of the opinion that running wbemtest and automating it by keystrokes is weird when you can query WMI with AHK. Admittedly, I don't ...
by qwerty12
24 Dec 2017, 10:40
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1031

Re: how to know if windows media player is playing or not? Topic is solved

This works here (Windows 10 1703 / WMP 12 / AutoHotkey x64 1.1.26.01), but given the complexity of performing such a simple task and my inexperience, I can't say it'll work for you. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #SingleInstance Off Process, E...
by qwerty12
24 Dec 2017, 08:34
Forum: Ask For Help
Topic: Run application elevated Topic is solved
Replies: 18
Views: 846

Re: Run application elevated Topic is solved

it can't find wbemtest when I run it on x64 architecture (didn't have to ocasion to test it on 32bit also) File System Redirector Try something like if (A_Is64bitOS && A_PtrSize == 4) Run, %A_WinDir%\SysNative\wbemtest.exe else Run, wbemtest or if (A_Is64bitOS && A_PtrSize == 4) ; f...
by qwerty12
22 Dec 2017, 16:37
Forum: Ask For Help
Topic: Jumping to file explorer drives in win10
Replies: 6
Views: 276

Re: Jumping to file explorer drives in win10

divanebaba and BoBo's way is the easiest, and quicker than this: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliab...
by qwerty12
21 Dec 2017, 05:08
Forum: Ask For Help
Topic: Display a grayed or ghosted icon for hidden files or folders in a menu Topic is solved
Replies: 15
Views: 642

Re: Display a grayed or ghosted icon for hidden files or folders in a menu Topic is solved

Hi iPhilip,

That is indeed far simpler and nicer looking! The only thing I can suggest is that hbmMask must also be destroyed if it exists following a successful GetIconInfo call.

Best regards

EDIT: Happy holidays to you too!
by qwerty12
20 Dec 2017, 17:55
Forum: Ask For Help
Topic: Display a grayed or ghosted icon for hidden files or folders in a menu Topic is solved
Replies: 15
Views: 642

Re: Display a grayed or ghosted icon for hidden files or folders in a menu Topic is solved

Hi jeeswg & iPhilip, - @qwerty12: Did my links help you at all? Btw someone might have wanted it lighter than usual, and that script was easily better than nothing at all. I had already searched for "SHGetFileInfo hidden" and found a useful post on a newsgroup mentioning LVIS_CUT. I to...
by qwerty12
20 Dec 2017, 17:12
Forum: Other Programming Languages
Topic: [SOLVED] How do AHK's A_ScreenWidth/Height work?
Replies: 7
Views: 698

Re: How do AHK's A_ScreenWidth/Height work?

Windows 8+ is known to lie about certain things when things are missing from the manifest for compatibility reaons. AutoHotkey's manifest sets <dpiAware>true</dpiAware>. I can't test anything, but I think that might help.

EDIT: No problem, and happy holidays to you too!
by qwerty12
20 Dec 2017, 17:09
Forum: Ask For Help
Topic: Display a grayed or ghosted icon for hidden files or folders in a menu Topic is solved
Replies: 15
Views: 642

Re: Display a grayed or ghosted icon for hidden files or folders in a menu Topic is solved

Thank you, jeeswg and qwerty12 (though he deleted his very useful post). Sorry, I deleted it because I had a chance to compare a listview with the LVIS_CUT state set on the same icon I had the menu display and I found my code made the icon too light in comparison (it also didn't help that I was tes...
by qwerty12
13 Dec 2017, 19:53
Forum: Ask For Help
Topic: Run Programs w/o Administrative Privileges
Replies: 1
Views: 129

Re: Run Programs w/o Administrative Privileges

Use Lexikos' ShellRun to have Explorer (which should be running unelevated, if not Google WdcRunTaskAsInteractiveUser for an undocumented alternative) start the program instead.

Go to advanced search