Search found 633 matches

by iseahound
Yesterday, 00:35
Forum: Ask For Help
Topic: GDI+ DPI Issue
Replies: 14
Views: 354

Re: GDI+ DPI Issue

I can't really see the issue you're describing. Are you talking about the heights being 1 px off? That's probably a rounding error. In my opinion, you should be rounding the values yourself by using GdipFillRectangleI. Your math is also kinda messed up, width and height are not "real" values. It's h...
by iseahound
07 Feb 2021, 12:29
Forum: Scripts and Functions
Topic: Set laptop brightness & show Win 10's native OSD
Replies: 14
Views: 9088

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

As crumbl3d says, this doesn't work when using AutoHotkey 32-bit on a 64-bit OS. The OSD displays, but the brightness refuses to move up or down. Thanks for making this script!
by iseahound
05 Feb 2021, 19:47
Forum: Scripts and Functions
Topic: Console() - Customize your command prompt
Replies: 14
Views: 2788

Re: Console() - Customize your command prompt

Update. PowerShell(subroutine, parameters*) { return Console("powershell -NoProfile -command " Chr(34) "& {" subroutine "}" Chr(34), parameters*) } ; Return values: ; positive integer | Process ID of the launched process if successful. ; "" | Error. ; stdout | Standard output if "stdout" is a parame...
by iseahound
05 Feb 2021, 16:11
Forum: Scripts and Functions
Topic: Environment.ahk - Change User and System Environment Variables Permanently
Replies: 11
Views: 4402

Re: Environment.ahk - Change User and System Environment Variables Permanently

I changed the code a bit to execute SendMessage asynchronously. This provides a 10x speedup as the function no longer has to wait for explorer.exe + other applications to reset their environment variables. This will not affect your autohotkey scripts, as the autohotkey environment variables are relo...
by iseahound
04 Feb 2021, 09:01
Forum: Scripts and Functions
Topic: UnicodeData() - Lookup Unicode Character Description
Replies: 0
Views: 147

UnicodeData() - Lookup Unicode Character Description

🍵☕🍯 https://i.imgur.com/NCa4l0W.png UnicodeData(s, unicodedata := "UnicodeData.txt") { if (s == "") return if !(database := FileOpen(unicodedata, "r`n", "UTF-8")) { ; Backup website http://www.unicode.org/Public/UNIDATA/UnicodeData.txt UrlDownloadToFile https://www.unicode.org/Public/UCD/latest/ucd/...
by iseahound
03 Feb 2021, 18:59
Forum: Ask For Help
Topic: Combine fragments of images with GDI+
Replies: 4
Views: 532

Re: Combine fragments of images with GDI+

30000 x 30000 should be possible since it is only 3.6 GB. You're loading all the images at once here. for col, rows in arr for row, path in rows { pBitmap := Gdip_CreateBitmapFromFile(path) Gdip_GetImageDimensions(pBitmap, w, h) If (row = 1) aw := off.X[col + 1] := aw + w + offset If (col = 1) ah :=...
by iseahound
03 Feb 2021, 18:33
Forum: Ask For Help
Topic: Dynamic global variable creation?
Replies: 6
Views: 1110

Re: Dynamic global variable creation?

You have to use a helper function. #persistent fn() fn() { Loop, 10 { DeclareGlobal("Slot" A_Index "Windows") Slot%A_Index%Windows := Object() } } DeclareGlobal(angelic) { global ; Makes the entire function global (%angelic%) ; Dereference. Parethesis make this a valid statement. return ; A referenc...
by iseahound
03 Feb 2021, 17:52
Forum: Scripts and Functions
Topic: RefreshExplorer() : Refresh all open Windows explorer + Desktop
Replies: 3
Views: 935

Re: RefreshExplorer() : Refresh all open Windows explorer + Desktop

SKAN wrote:
14 May 2020, 01:07
RefreshExplorer() is slower but more effective, IMO.
I finally did some testing and RefreshExplorer() is faster and more effective!
by iseahound
03 Feb 2021, 17:37
Forum: Scripts and Functions
Topic: Toggle Magnifier Smoothing
Replies: 0
Views: 415

Toggle Magnifier Smoothing

https://i.imgur.com/7gnCJHb.png Pressing Win + Shift + m will toggle the magnifier's pixelation from pixelated to smooth. #+m:: ToggleRegistry("HKCU\Software\Microsoft\ScreenMagnifier", "UseBitmapSmoothing") ToggleRegistry(key, value, a:=0, b:=1, type := "dword") { RegRead OutputVar, % key, % value...
by iseahound
03 Feb 2021, 15:20
Forum: Scripts and Functions
Topic: Convert unicode to RegEx escape string
Replies: 0
Views: 290

Convert unicode to RegEx escape string

RegExByte() - Convert unicode string to regex byte escape sequences. Input: Hey Alexa, my name is "没有人😂". Output: \x48\x65\x79\x20\x41\x6c\x65\x78\x61\x2c\x20\x6d\x79\x20\x6e\x61\x6d\x65\x20\x69\x73\x20\x22\x{6ca1}\x{6709}\x{4eba}\x{1f602}\x22\x2e\x20 RegExUnicode() - Convert unicode string to rege...
by iseahound
30 Jan 2021, 20:55
Forum: Forum Issues
Topic: Forums Slow to load
Replies: 33
Views: 1549

Re: Forums Slow to load

Still bad with 522 errors from cloudflare.
by iseahound
30 Jan 2021, 20:33
Forum: AutoHotkey v2 Development
Topic: Preview of changes: scope, function and variable references
Replies: 10
Views: 631

Re: Experimenting with scope, function and variable references

Thanks, Lexikos. I think the merging of function and variable names spaces was probably inevitable. &x syntax is similar to an out parameter. However, I don't think that functions should be required to declare if they accept byref parameters or not. Wouldn't it be simpler to use &x as a form of writ...
by iseahound
28 Jan 2021, 12:16
Forum: General Discussion
Topic: A Github organisation for ahkscript
Replies: 226
Views: 132111

Re: A Github organisation for ahkscript

Yes, it is.
by iseahound
26 Jan 2021, 01:05
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 385
Views: 145084

Re: GDI+ standard library 1.45 by tic

Set your pixel offset mode to true. The default is None. ; Set some general Graphics settings. DllCall("gdiplus\GdipSetPixelOffsetMode", "ptr",pGraphics, "int",2) ; Half pixel offset. (⬅️🔚🔙↩️you need this one) DllCall("gdiplus\GdipSetCompositingMode", "ptr",pGraphics, "int",1) ; Overwrite/SourceCopy...
by iseahound
25 Jan 2021, 23:41
Forum: General Discussion
Topic: A Github organisation for ahkscript
Replies: 226
Views: 132111

Re: A Github organisation for ahkscript

Do I get to join? :D
by iseahound
25 Jan 2021, 18:14
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 385
Views: 145084

Re: GDI+ standard library 1.45 by tic

tuzi This implementation is bad. Gdip_FillRoundedRectangle(pGraphics, pBrush, x, y, w, h, r) { Region := Gdip_GetClipRegion(pGraphics) Gdip_SetClipRect(pGraphics, x-r, y-r, 2*r, 2*r, 4) Gdip_SetClipRect(pGraphics, x+w-r, y-r, 2*r, 2*r, 4) Gdip_SetClipRect(pGraphics, x-r, y+h-r, 2*r, 2*r, 4) Gdip_Se...
by iseahound
25 Jan 2021, 17:56
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 385
Views: 145084

Re: GDI+ standard library 1.45 by tic

@ewerybody

malcev has some good screengrabbing code using DirectX that is much faster than both existing methods.
by iseahound
14 Jan 2021, 12:04
Forum: Scripts and Functions
Topic: ImagePut - Library for moving image data on Windows
Replies: 10
Views: 2170

Re: ImagePut - Windows Image Transformation Library

Added a small demonstration file to help first time users with getting used to the library.

Releases: https://github.com/iseahound/ImagePut/releases
Direct Download: https://github.com/iseahound/ImagePut/releases/download/r2021.01.14/ImagePut.v1.zip

Unzip and run demo.ahk
by iseahound
14 Jan 2021, 11:01
Forum: AutoHotkey v2 Scripts and Functions
Topic: [a122] ImagePut - Library for moving image data on Windows
Replies: 16
Views: 4158

Re: [a122] ImagePut - Windows Image Transformation Library

There are two versions of the library, one for AutoHotkey version 1 and another for AutoHotkey version 2. The error is because you are trying to run v2 code on AutoHotkey v1. To fix this error, use the v1 library. v1 releases: https://github.com/iseahound/ImagePut/releases v1 forum : https://www.aut...
by iseahound
07 Dec 2020, 11:24
Forum: Scripts and Functions
Topic: [GDI+ Object] Subtitle.Render() - Beautiful Text on Screen
Replies: 62
Views: 16316

Re: [GDI+ Object] Subtitle.Render() - Beautiful Text on Screen

Your object might be getting destroyed by AutoHotkey.

Code: Select all

; not good, your object is local. 
fun() {
a := Subtitle.Render("hi")
}

Code: Select all

#Persistent
a := Subtitile.Render("hi")

fun(a) {
a.Render("what's up?")
}

Go to advanced search