Search found 468 matches

by qwerty12
10 Aug 2017, 12:26
Forum: Ask for Help (v1)
Topic: Windows 10 Tablet Input Panel Detection? (TabTip.exe)
Replies: 2
Views: 2105

Re: Windows 10 Tablet Input Panel Detection? (TabTip.exe)

Using a variation of the code from the first post, you can try this, even from a non-UIAccess, unelevated process: if (DllCall("IsWindowVisible", "Ptr", (hwndIpTip := DllCall("FindWindow", "Str", "IPTip_Main_Window", "Ptr", 0, "Ptr")))) { PostMessage,0x112,0xF060,,, ahk_id %hwndIpTip% } else { ; Not...
by qwerty12
10 Aug 2017, 12:05
Forum: Ask for Help (v1)
Topic: Most unusual bug ever - Run command
Replies: 3
Views: 1358

Re: Most unusual bug ever - Run command

Nothing unusual about this. It's 2017 and so I'll assume you're running a 64-bit version of Windows, like me. Here on 10, C:\Windows\system32 comes before C:\Windows in %PATH%. As a full path to Notepad.exe is not supplied, this means C:\Windows\system32\Notepad.exe is ran. hook.dll is a 32-bit DLL....
by qwerty12
27 Jul 2017, 19:39
Forum: Ask for Help (v1)
Topic: Programmatically add cursor resource to Exe/Dll with UpdateResource api?
Replies: 14
Views: 4336

Re: Programmatically add cursor resource to Exe/Dll with UpdateResource api?

thanks for the links and code example... it was successful on my end as well... No problem, and good to hear :-) I made a mistake in the function: f.RawRead(&curData+4, dwSize) should be f.RawRead(&curData+4, dwSize-4) :oops: It also made apparent a bug in ResHack, as inspecting the data after addi...
by qwerty12
27 Jul 2017, 17:21
Forum: Ask for Help (v1)
Topic: Programmatically add cursor resource to Exe/Dll with UpdateResource api?
Replies: 14
Views: 4336

Re: Programmatically add cursor resource to Exe/Dll with UpdateResource api?

It does successfully add the Cursor resource item(s) depending on how many are in the .cur file, and adds the Cursor Group resource item, but the data is wrong for the color depth/resolution After reading the useful Wikipedia page on the ico/cur file format and the code of this project, I wrote an ...
by qwerty12
20 Jul 2017, 10:02
Forum: Ask for Help (v1)
Topic: How to get to downloads folder?
Replies: 3
Views: 2786

Re: How to get to downloads folder?

EDIT: Even easier: Run shell:::{374DE290-123F-4565-9164-39C4925E467B} . Use the code below if you want to find the actual path of the "Downloads" folder instead of quickly opening it. #NoEnv if (!DllCall("shell32\SHGetKnownFolderPath", "Ptr", GuidFromStr("{374DE290-123F-4565-9164-39C4925E467B}", FOL...
by qwerty12
17 Jul 2017, 08:58
Forum: Ask for Help (v1)
Topic: DllCall: adjust memory priority of script Topic is solved
Replies: 9
Views: 3347

Re: DllCall: adjust memory priority of script Topic is solved

Sorry to be a pain but are you able to confirm that <Priority>4</Priority> on your machine does in fact result in page priority of 5 and not 4? For this task <?xml version="1.0" encoding="UTF-16"?> <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo>...
by qwerty12
17 Jul 2017, 07:59
Forum: Ask for Help (v1)
Topic: DllCall: adjust memory priority of script Topic is solved
Replies: 9
Views: 3347

Re: DllCall: adjust memory priority of script Topic is solved

Actually would you mind telling me what priorities you get on your Win10 machine with <Priority>2</Priority> in the XML and NOT calling SetPriorities()? With a simple task that's "configured for Windows 10": above normal process priority (10), normal I/O priority (both Process Hacker and Process Ex...
by qwerty12
16 Jul 2017, 17:21
Forum: Ask for Help (v1)
Topic: ACC.AHK - Get IAccessible for Context menu
Replies: 17
Views: 8146

Re: ACC.AHK - Get IAccessible for Context menu

I'm not sure this will work. One of the software applications I use uses a context menu as a 'popup menu' from a button within it's GUI. I need to click the button (which is easy with MSAA) and then click the 'Find' button on the context menu. Now WM_COMMAND has been suggested, and I would use this...
by qwerty12
16 Jul 2017, 12:45
Forum: Scripts and Functions (v1)
Topic: A subroutine to switch to the next background (Windows 10)
Replies: 11
Views: 5500

Re: A subroutine to switch to the next background (Windows 10)

For what it's worth, since Windows 8, you can advance to the next wallpaper without any window interaction at all: try if ((pDesktopWallpaper := ComObjCreate("{C2CF3110-460E-4fc1-B9D0-8A1C0C9CC4BD}", "{B92B56A9-8B55-4E14-9A89-0199BBB6F93B}"))) { DllCall(NumGet(NumGet(pDesktopWallpaper+0)+16*A_PtrSiz...
by qwerty12
16 Jul 2017, 12:43
Forum: Ask for Help (v1)
Topic: Look for GetTrueTypeFontInfo.ahk
Replies: 2
Views: 741

Re: Look for GetTrueTypeFontInfo.ahk

I don't have that specific script, but this thread has functions on getting a font's name from a given TTF file: https://autohotkey.com/boards/viewtopic.php?t=17452
by qwerty12
16 Jul 2017, 12:40
Forum: Ask for Help (v1)
Topic: ACC.AHK - Get IAccessible for Context menu
Replies: 17
Views: 8146

Re: ACC.AHK - Get IAccessible for Context menu

Hi, While I don't know what your end goal here is, the first thought that comes to mind is why bother with MSAA here? Use ShellContextMenu if you want the context menu for a file or the desktop (pass "Desktop" as sPath if you want the desktop's context menu). There are two caveats though: ShellConte...
by qwerty12
16 Jul 2017, 12:28
Forum: Ask for Help (v1)
Topic: DllCall: adjust memory priority of script Topic is solved
Replies: 9
Views: 3347

Re: DllCall: adjust memory priority of script Topic is solved

Using <Priority>4</Priority> in the XMLs for the two AutoHotkey scheduled tasks I have here on my Windows 10 system has always worked fine for me (they start with normal process priority, normal I/O priority and normal page priority). Still, if you want to have a go at setting them yourself for the ...
by qwerty12
02 Jul 2017, 17:29
Forum: Scripts and Functions (v1)
Topic: [Windows 10] Switch to different virtual desktop on Win+{1,9}
Replies: 26
Views: 25165

Re: [Windows 10] Switch to different virtual desktop on Win+{1,9}

The script shoud activate last window after switching. I fix it by adding "Send !{Tab}" to the end of "switchToDesktop" function, but i think there is a better way to fix the issue. No, it shouldn't. It does its job of asking Explorer to switch desktops. What Explorer does after that isn't my conce...
by qwerty12
24 Jun 2017, 06:26
Forum: Ask for Help (v1)
Topic: How can I open Windows Linux Subsystem in file location? Topic is solved
Replies: 2
Views: 1142

Re: How can I open Windows Linux Subsystem in file location? Topic is solved

Does anyone know how I can make this code work or have a better way of doing this? Here's something that works without using the clipboard: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input #If ((expWnd := WinExist("ahk_class CabinetWClass ahk_id...
by qwerty12
23 Jun 2017, 06:59
Forum: Scripts and Functions (v1)
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 201
Views: 135623

Re: .NET Framework Interop (CLR, C#, VB)

By the way... How did you get/find the IID for ICollection and IList? I took your idea of using ComObjType , but with CLSID as Param2 instead and got given a GUID for Object. When Googling it, the results indicated I could find what I was looking for in mscorlib.tlb, so I used oleview.exe on said f...
by qwerty12
23 Jun 2017, 06:33
Forum: Scripts and Functions (v1)
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 201
Views: 135623

Re: .NET Framework Interop (CLR, C#, VB)

How do you parse a List object from CLR to AHK? #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Include %A_ScriptDir%\CLR.ahk code = ( Imports System Imports System.Collections.Generic Class MainClass Function TestList() as List(Of String) return New List(Of...
by qwerty12
20 Jun 2017, 07:01
Forum: Ask for Help (v1)
Topic: get full paths of selected files on Desktop and Common File Dialogs
Replies: 21
Views: 11696

Re: get full paths of selected files on Desktop and Common File Dialogs

That Lexikos script looks great, I will try and adapt it for listing files on Desktop. I had wondered if there was a more direct way to get access to the interface, I don't really know much about what starting point object to use, and then the quickest route to get the desired interface, i.e. 'hopp...
by qwerty12
20 Jun 2017, 05:51
Forum: Ask for Help (v1)
Topic: get full paths of selected files on Desktop and Common File Dialogs
Replies: 21
Views: 11696

Re: get full paths of selected files on Desktop and Common File Dialogs

@qwerty12: I've made a few small edits and wrapped up your code for getting the paths of files on Desktop as a function: Very useful edits, thank you, but while writing this , I came across this post of Lexikos'. I found out then that you could get the selected names on the desktop through an IDisp...
by qwerty12
19 Jun 2017, 12:41
Forum: Ask for Help (v1)
Topic: PowerShell script n/w in Administrator level
Replies: 3
Views: 3224

Re: PowerShell script n/w in Administrator level

EDIT: You're welcome, ahkLily16 :-) Hi, What have I missed? :?: When you right-click PowerShell from the start menu and choose to run it as Administrator, the window's title becomes Administrator: Windows PowerShell . You can use #IfWinActive ahk_exe powershell.exe instead or look at SetTitleMatchMo...
by qwerty12
18 Jun 2017, 12:07
Forum: Ask for Help (v1)
Topic: Set Audio Playback Device for Process Topic is solved
Replies: 14
Views: 3807

Re: Set Audio Playback Device for Process Topic is solved

No problem, Masonjar13! For device names, using Lexikos' VA library might work (the only additional output device I get on this basic laptop of mine is for the headphones, so I can't verify if the order will match on proper desktop systems with all sorts of audio jacks): audioDeviceNames := ["Defaul...

Go to advanced search