Search found 1455 matches

by iseahound
Yesterday, 23:25
Forum: Wish List
Topic: A_Downloads might be a nice thing to have at some point.
Replies: 14
Views: 1046

Re: A_Downloads might be a nice thing to have at some point.

Actually just use this code if you need the actual path: viewtopic.php?p=286094#p286094

Make sure to rewrite this into 4 lines max
by iseahound
Yesterday, 23:09
Forum: Wish List
Topic: A_Downloads might be a nice thing to have at some point.
Replies: 14
Views: 1046

Re: A_Downloads might be a nice thing to have at some point.

Sometimes you can also do:

Code: Select all

Run "::{374DE290-123F-4565-9164-39C4925E467B}"
Someone needs to boot up an old version of Windows 7/10 to test which one is the best for compatibility
by iseahound
Yesterday, 23:06
Forum: Wish List
Topic: A_Downloads might be a nice thing to have at some point.
Replies: 14
Views: 1046

Re: A_Downloads might be a nice thing to have at some point.

https://www.elevenforum.com/t/list-of-windows-11-shell-commands-for-shell-folder-shortcuts.1080/

If you need these to work on an older version of windows,

Code: Select all

Run "shell:::{374DE290-123F-4565-9164-39C4925E467B}"
should work as well.
by iseahound
Yesterday, 17:13
Forum: Bug Reports
Topic: Possible bug when suppressing modifier hotkeys
Replies: 0
Views: 96

Possible bug when suppressing modifier hotkeys

1. Suppressing Right Control and Shift disables the RCtrl + Shift + a hotkey.

Code: Select all

>^+a:: msgbox
>^Shift::    Send '{Blind}{vk07}'   
2. Removing the right specifier for control works perfectly.

Code: Select all

>^+a:: msgbox
^Shift::    Send '{Blind}{vk07}'
by iseahound
Yesterday, 17:09
Forum: Wish List
Topic: A_Downloads might be a nice thing to have at some point.
Replies: 14
Views: 1046

Re: A_Downloads might be a nice thing to have at some point.

Also if you just need to open the Downloads folder, Run "shell:Downloads"
by iseahound
29 Apr 2024, 18:41
Forum: Scripts and Functions (v1)
Topic: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)
Replies: 52
Views: 17378

Re: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)

Thanks for the complement. Currently the pixelsearch module is 100% complete including SSE2 vectorization (makes it 3x faster by loading pixels 4 at a time). I'll work on releasing the ImageSearch without any vectorization to just get the transcolor working. I think I mentioned this earlier, but thi...
by iseahound
29 Apr 2024, 13:45
Forum: Scripts and Functions (v1)
Topic: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)
Replies: 52
Views: 17378

Re: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)

Some changes were made at the beginning of the year to add variation to image search, which removed the TransColor searching functionality. Wasn't sure if anyone actually used this, so I'll give it another pass in editing the C code.

https://github.com/iseahound/ImagePut/issues/48
by iseahound
27 Apr 2024, 11:38
Forum: Scripts and Functions (v1)
Topic: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)
Replies: 52
Views: 17378

Re: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)

Ah. Try using CoordMode, Mouse, Client . Window capture ignores the non-client area (title bar, captions, and shadows) because there are better ways to retrieve that information. As for your LoadPicture issue: It works on my end, and I am curious to see why it does not work on yours. If you'd like y...
by iseahound
27 Apr 2024, 03:24
Forum: Scripts and Functions (v1)
Topic: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)
Replies: 52
Views: 17378

Re: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)

I could not find any errors: #include ImagePut (for v1).ahk HT1_Test_Image := LoadPicture("a.bmp") buf := ImagePutBuffer(0) ; 0 means all screens if xy := buf.ImageSearch(HT1_Test_Image) { MouseMove xy[1], xy[2] } return ImagePutHBitmap is part of my collection of customized and optimized functions....
by iseahound
26 Apr 2024, 00:17
Forum: Scripts and Functions (v1)
Topic: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)
Replies: 52
Views: 17378

Re: ImagePut - A core library for images in AutoHotkey (Now supports HEIC & WEBP)

Does your image include transparency? If so HBitmap does not support transparency, Try this script which searches an HBitmap: #include ImagePut (for v1).ahk #singleinstance force ; Get a random image. pic := ImagePutBuffer("https://picsum.photos/720") ; Get random coordinates. Random, x, 0, % pic.wi...
by iseahound
20 Apr 2024, 08:55
Forum: AutoHotkey Development
Topic: What to do when "A" getting the current active window misses?
Replies: 11
Views: 1771

Re: What to do when "A" getting the current active window misses?

I generally agree with eugenesv 's proposal. It's a question about classes (or sets or categories). It's clear what ahk_id 4568 means as it targets one window. On the other hand, ahk_exe Notepad refers to a class of windows. Catching a TargetError in the above 2 cases allows the user to write additi...
by iseahound
12 Apr 2024, 07:05
Forum: Scripts and Functions (v2)
Topic: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)
Replies: 13
Views: 1378

Re: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)

Thanks! I think the strange part is that the return value seemed to always be constant which is weird for a void return value.
by iseahound
11 Apr 2024, 15:16
Forum: Scripts and Functions (v2)
Topic: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)
Replies: 13
Views: 1378

Re: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)

Changing the following line to use the nullptr @ the 3rd parameter DllCall("d2d1\D2D1CreateFactory","Int",0,"Ptr",IID_ID2D1Factory,"ptr",0,"Ptr*",&ID2D1Factory:=0, "hresult") ;0=D2D1_FACTORY_TYPE_SINGLE_THREADED, 3=D2D1_DEBUG_LEVEL_INFORMATION Consistently brings up this error. image.png A quick hre...
by iseahound
11 Apr 2024, 14:56
Forum: Scripts and Functions (v2)
Topic: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)
Replies: 13
Views: 1378

Re: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)

MrDoge This code seems to be a little unstable as of the latest version 11. I kept getting errors on the BeginDraw line and after I installed the Windows SDK it seemed to go away. I'm well aware Microsoft changes the ordinals occasionally but It seems that BeginDraw is still at Ordinal 48 so that's...
by iseahound
07 Apr 2024, 18:31
Forum: Ask for Help (v1)
Topic: Get the monitor number that the mouse is in? Topic is solved
Replies: 4
Views: 228

Re: Get the monitor number that the mouse is in? Topic is solved

Replace MinitorFromWindow with the following 2 functions:

Code: Select all

   ; Get the current monitor the mouse cursor is in.
   DllCall("GetCursorPos", "uint64*", point:=0)
   hMonitor := DllCall("MonitorFromPoint", "uint64", point, "uint", 0x2, "ptr")
by iseahound
04 Apr 2024, 12:41
Forum: Scripts and Functions (v1)
Topic: "outer" keyword - get a reference to the outer class (parent, super, root, inner)
Replies: 27
Views: 5627

Re: "outer" keyword - get a reference to the outer class (parent, super, root, inner)

Something like this: #Requires AutoHotkey v2.0 a := bird.owl() a.outer.layEgg() msgbox bird.owl.outer.owl.prototype.hoot() bird.owl.outer.owl.outer.sparrow.outer.owl.outer.sparrow.outer.layEgg() class bird { static layEgg() { MsgBox "hi :)" } class owl extends default { hoot(){ return "hoot!" } } cl...
by iseahound
01 Apr 2024, 18:09
Forum: Suggestions on Documentation Improvements
Topic: RawRead()
Replies: 3
Views: 412

Re: RawRead()

It should be added to RawRead however, as one would expect "raw" to mean unmodified.
by iseahound
29 Mar 2024, 23:13
Forum: Ask for Help (v2)
Topic: How to obtain the memory address of a variable in AutoHotkey v2?
Replies: 28
Views: 1579

Re: How to obtain the memory address of a variable in AutoHotkey v2?

Well how can you determine the position of the sign bit? Many readers of this forum did not know that AHK uses 64-bit integers on both 32- and 64-bit versions (including myself). Since you have to know the position of the sign bit (or know the size of the integer data type) to fully realize bitwise ...

Go to advanced search