Search found 468 matches
- 17 Sep 2017, 13:04
- Forum: Ask for Help (v1)
- Topic: Creating COM Object Event Handler
- Replies: 10
- Views: 4809
Re: Creating COM Object Event Handler
The IUIAutomationEventHandler interface inherits from the IUnknown interface. No mention of IDispatch there. ;) You need to implement the interface yourself. Here's my (definitely was buggy) attempt: #NoEnv #Include %A_ScriptDir%\UIA.ahk #Persistent IUIAutomationEventHandler_new() { vtbl := IUIAuto...
- 17 Sep 2017, 10:36
- Forum: Ask for Help (v1)
- Topic: DllCall, DrawTextW Topic is solved
- Replies: 8
- Views: 2089
Re: DllCall, DrawTextW Topic is solved
This will never work because: SetWindowsHookEx isn't designed for hooking arbitrary functions; there's a reason why libraries like EasyHook (mentioned in the SO link in your first post) exist A WH_CALLWNDPROC hook procedure is meant to be located in the process itself. If it's in a DLL, Windows load...
- 15 Sep 2017, 13:23
- Forum: Ask for Help (v1)
- Topic: Windows 10 UAC username/password passing
- Replies: 11
- Views: 10102
Re: Windows 10 UAC username/password passing
BitLocker only stops somebody from reading the password from memory when the computer is off. There's absolutely nothing stopping a medium integrity process running in the same session from reading the memory of your AutoHotKey process by default, even if said AutoHotkey process is elevated. And pa...
- 14 Sep 2017, 12:37
- Forum: Ask for Help (v1)
- Topic: Windows 10 UAC username/password passing
- Replies: 11
- Views: 10102
Re: Windows 10 UAC username/password passing
Now it works so far. I didn't want to have my password written in plain text in a file on my desktop. So my idea was to only store it into ram. As long as my PC is bitlocked, it shouldn't be readable then without cracking memory access restrictions. BitLocker only stops somebody from reading the pa...
- 13 Sep 2017, 16:52
- Forum: Ask for Help (v1)
- Topic: Windows 10 UAC username/password passing
- Replies: 11
- Views: 10102
Re: Windows 10 UAC username/password passing
Dear qwerty12, at first Thanks a lot for your masterpiece of work. :) If I said I fully understood your code, I'd be lying (tbh I might understand 2% of it). But I was trying around with it* and it looks to me that you've modified LogonDesktop.ahk without modifying the code in this post, so that th...
- 13 Sep 2017, 09:52
- Forum: Ask for Help (v1)
- Topic: Help me suspend winlogon on Win10 without external tools (run as SYSTEM?) Topic is solved
- Replies: 5
- Views: 2824
Re: Help me suspend winlogon on Win10 without external tools (run as SYSTEM?) Topic is solved
On to my next quest of finding a working way to check if a process has been suspended or not... I had the C equivalent of this, taken from the Process Hacker source code, lying around when fixing a bug in clink. There's something off with my conversion, because this works only with 64-bit AutoHotke...
- 12 Sep 2017, 17:09
- Forum: Ask for Help (v1)
- Topic: Help me suspend winlogon on Win10 without external tools (run as SYSTEM?) Topic is solved
- Replies: 5
- Views: 2824
Re: Help me suspend winlogon on Win10 without external tools (run as SYSTEM?) Topic is solved
Using AHK I can suspend most of the processes, but winlogon.exe in particular seems to ignore everything coming from my scripts. These are the various suspension methods that have failed me thus far[...] Suspending winlogon.exe succeeded with all the other programs I used: Resource Monitor, Process...
- 22 Aug 2017, 17:50
- Forum: Ask for Help (v1)
- Topic: Reading display brightness with BrightnessSetter script or anything else that actually works Topic is solved
- Replies: 2
- Views: 1714
Re: Reading display brightness with BrightnessSetter script or anything else that actually works Topic is solved
Hello, Remember: BrightnessSetter is for laptops only. While some monitors do allow for their brightness to be changed through DDC, to the best of my knowledge that's not integrated into the usual power management subsystem of Windows. Also, remember Windows allows for different brightness values de...
- 22 Aug 2017, 17:35
- Forum: Ask for Help (v1)
- Topic: Change Text-To-Speech-Voice (in Windows) Topic is solved
- Replies: 7
- Views: 2637
Re: Change Text-To-Speech-Voice (in Windows) Topic is solved
I'm sorry, I haven't a clue. I don't use MS's (or anybody else's) text-to-speech. The only thing I could find on pitch suggests that it's up to your application to adjust it for itself only (if my quick reading of MSDN proved correct). Your question interested me because the only answers I could fin...
- 21 Aug 2017, 16:49
- Forum: Ask for Help (v1)
- Topic: Change Text-To-Speech-Voice (in Windows) Topic is solved
- Replies: 7
- Views: 2637
Re: Change Text-To-Speech-Voice (in Windows) Topic is solved
Hey, wow! Your script worked perfectly qwerty! It would be nice if I could fully understand your code some day, but as long as it works I will use it for ATC voices in Xplane 11. Thanks! Hey, Glad to hear it works :-) A lot of that relies around the official speech interface, which is provided over...
- 21 Aug 2017, 13:43
- Forum: Ask for Help (v1)
- Topic: Change Text-To-Speech-Voice (in Windows) Topic is solved
- Replies: 7
- Views: 2637
Re: Change Text-To-Speech-Voice (in Windows) Topic is solved
You can try the following to change it without needing to manipulate the Speech control panel window itself: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. if (SUCCEEDED(SpGetCategoryFromId(SPCAT_VOICES := "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices"...
- 21 Aug 2017, 09:23
- Forum: Ask for Help (v1)
- Topic: RegRead: what am I missing here? Topic is solved
- Replies: 6
- Views: 2173
Re: RegRead: what am I missing here? Topic is solved
Hi, I don't have VirtualBox installed to test, but if your AutoHotkey is 32-bit and you're working with a 64-bit VirtualBox, you probably need to add SetRegView 64 before doing the RegRead . EDIT: (Or maybe SetRegView 32 if you're using a 64-bit AutoHotkey and VirtualBox is 32-bit) - err, not going ...
- 19 Aug 2017, 10:11
- Forum: Scripts and Functions (v1)
- Topic: TypeLib2AHK - Convert COM Type libraries to AHK code
- Replies: 33
- Views: 9854
Re: TypeLib2AHK - Convert COM Type libraries to AHK code
Thank you!
(I've had problems with the IDispatch interface of one of the network interfaces in the past. FreePascal was the only language I tried that did what I wanted properly, and I noticed that used the TypeLib to do so.)
(I've had problems with the IDispatch interface of one of the network interfaces in the past. FreePascal was the only language I tried that did what I wanted properly, and I noticed that used the TypeLib to do so.)
- 16 Aug 2017, 18:10
- Forum: Ask for Help (v1)
- Topic: Hide IE COM StatusBar
- Replies: 20
- Views: 3182
Re: Hide IE COM StatusBar
And, no, I don't think BHOs load with CWebView. Well, that was easy. Gui, webHost: New cwv := new CWebView("webHost", "w640 h480") try if ((BhoAbp := ComObjCreate("{FFCB3198-32F3-4E8B-9539-4324694ED664}", "{FC4801A3-2BA9-11CF-A229-00AA003D7352}"))) { DllCall(NumGet(NumGet(BhoAbp+0)+3*A_PtrSize), "P...
- 16 Aug 2017, 17:23
- Forum: Ask for Help (v1)
- Topic: Hide IE COM StatusBar
- Replies: 20
- Views: 3182
Re: Hide IE COM StatusBar
I was too lazy to type out "Shell.Explorer" again.
And as for how to use it:
And, no, I don't think BHOs load with CWebView.
And as for how to use it:
Best I got is:qwerty12 wrote:I know absolutely nothing about IE
Code: Select all
Gui, webHost: New
cwv := new CWebView("webHost", "w640 h480")
cwv.SetURL("www.google.com")
Gui, webHost: Show
- 16 Aug 2017, 16:35
- Forum: Ask for Help (v1)
- Topic: Hide IE COM StatusBar
- Replies: 20
- Views: 3182
Re: Hide IE COM StatusBar
@qwerty12, well I'll be.. The closure of the class windows didn't work Sorry, I didn't actually test doing that from AutoHotkey; rather, I just used Process Hacker's window thingy to do it. (Also, come to think of it, I think DetectHiddenWindows needs to be on.) But, are add-ons loaded? Or, can the...
- 16 Aug 2017, 15:38
- Forum: Ask for Help (v1)
- Topic: Hide IE COM StatusBar
- Replies: 20
- Views: 3182
Re: Hide IE COM StatusBar
That is true, it doesn't. But it also doesn't have a complete webkit, so many features (not sure which exactly) don't work. In this specific case, it doesn't work. Not sure which feature is being relied upon that isn't there, however, I don't believe it matters; I don't believe you can inject the m...
- 16 Aug 2017, 15:13
- Forum: Ask for Help (v1)
- Topic: Hide IE COM StatusBar
- Replies: 20
- Views: 3182
Re: Hide IE COM StatusBar
I know absolutely nothing about IE and the myriad of COM-accessible interfaces it has, but apparently, if you show a webpage through Shell.Explorer, it doesn't do what you're talking about:
Code: Select all
Gui Add, ActiveX, w640 h480 vwb, Shell.Explorer
wb.Navigate("www.google.com")
Gui Show, w640 h480
- 16 Aug 2017, 13:00
- Forum: Ask for Help (v1)
- Topic: Several AHK commands not working in Windows 10
- Replies: 2
- Views: 1058
- 13 Aug 2017, 05:33
- Forum: Ask for Help (v1)
- Topic: Hotkey to Change Laptop Brightness Topic is solved
- Replies: 5
- Views: 8919
Re: Hotkey to Change Laptop Brightness Topic is solved
But for some reason that script doesn’t work for me. I followed the instructions for that script at https://www.reddit.com/r/AutoHotkey/comments/5u2lvi/brightness_script/ and it just doesn’t work. Replace the copied class with this one (or just save it as BrightnessSetter.ahk and do the usual libra...