Search found 369 matches

by iseahound
25 Dec 2018, 00:14
Forum: Offtopic
Topic: How do I learn to speak German?
Replies: 20
Views: 704

Re: How do I learn to speak German?

@scr1pter American. I speak, think, and write in English. Passing conversational Chinese as well. I listen to a fair amount of German music, and come across a few German phrases in literature, Kant, Schopenhauer, and Nietzsche. Raum und Zeit. One really interesting fact is that America and Germany a...
by iseahound
22 Dec 2018, 16:50
Forum: Ask For Help
Topic: Export a Bitmap Out of GDI Into Memory
Replies: 4
Views: 176

Re: Export a Bitmap Out of GDI Into Memory

Yeah me neither to be honest. base64 just increases the memory storage requirements by 33%. OP might be: - Close to the limit of ~65000 GDI handles/objects. - Running out of RAM. (Notably many of the functions in Gdip_All.ahk are prone to out-of-memory errors, and GDI+ itself.) Best idea is to just ...
by iseahound
22 Dec 2018, 13:47
Forum: Ask For Help
Topic: Export a Bitmap Out of GDI Into Memory
Replies: 4
Views: 176

Re: Export a Bitmap Out of GDI Into Memory

Because GDI is annoying. I use a function to convert pBitmaps -> base64 representation. This way base64 data is collected by the AHK garbage collector. Some work in progress here:
https://www.autohotkey.com/boards/viewt ... =6&t=59113
by iseahound
20 Dec 2018, 19:50
Forum: Ask For Help
Topic: IsClipboard() - How do I check if a variable is the clipboard?
Replies: 2
Views: 137

Re: IsClipboard() - How do I check if a variable is the clipboard?

coco's method which uses the address of a variable was considered by me already - the address of a special variable such as clipboard is always blank. Lexikos' method is wayy too hacky - he's using the Exception() object which saves the Line Number, and he's manually reading the script at that line ...
by iseahound
20 Dec 2018, 17:55
Forum: Ask For Help
Topic: With a file loop, any way to match multiple extensions?
Replies: 2
Views: 106

Re: With a file loop, any way to match multiple extensions?

Just do

Code: Select all

Loop, Files, some folder path
{
if (A_LoopFileExt ~= "TXT|EXE|DOC|PNG")
MsgBox % "Match Found: " A_LoopFileLongPath
}
by iseahound
20 Dec 2018, 17:43
Forum: Ask For Help
Topic: IsClipboard() - How do I check if a variable is the clipboard?
Replies: 2
Views: 137

IsClipboard() - How do I check if a variable is the clipboard?

Weird question, but how do I check if the user throws a clipboard variable at one of my functions? Like what is the opposite or dereferencing, if %% turns a variable's value into another value, and implicit dereferencing turns a variable into a value, how do I recover the variable name given the var...
by iseahound
19 Dec 2018, 23:20
Forum: Scripts and Functions
Topic: Facade Functional Programming Suite
Replies: 14
Views: 910

Re: Facade Functional Programming Suite

This is really good stuff. I'm too used to AutoHotkey's ways of doing things, but I'll be looking at your implementation details for ideas. By the way, having proper boundfuncs is really helpful.
by iseahound
19 Dec 2018, 23:15
Forum: Offtopic
Topic: How do I learn to speak German?
Replies: 20
Views: 704

Re: How do I learn to speak German?

haha I'll end up traveling to Germany sometime... can't speak though an app all the time.

Besides the level of English proficiency of people here is quite amazing.
by iseahound
19 Dec 2018, 19:38
Forum: Offtopic
Topic: How do I learn to speak German?
Replies: 20
Views: 704

How do I learn to speak German?

It just feels like everyone here is German
by iseahound
19 Dec 2018, 19:21
Forum: Ask For Help
Topic: Gdip_BitmapFromHWND returns blank window
Replies: 2
Views: 137

Re: Gdip_BitmapFromHWND returns blank window

image := 0x187410 ; Some sort of hwnd. image := WinExist(image) ? WinExist(image) : image if DllCall("IsIconic", "ptr",image) DllCall("ShowWindow", "ptr",image, "int",4) ; Restore if minimized! VarSetCapacity(rc, 16) DllCall("GetClientRect", "ptr",image, "ptr",&rc) hbm := CreateDIBSection(NumGet(rc...
by iseahound
19 Dec 2018, 19:13
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 582

Re: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved

@just me
That's pretty clever to store the image data as a string. AHK arrays are just too slow.
by iseahound
17 Dec 2018, 22:05
Forum: Scripts and Functions
Topic: RunDependent()
Replies: 2
Views: 269

Re: RunDependent()

Powershell auxiliary code: static q := Chr(0x22) ; Escape double quote character. ; Get name of current process. VarSetCapacity(_process, 2048) DllCall("GetModuleFileName", "int", 0, "str", _process) SplitPath, _process,,,, _process _exit := "powershell -NoProfile -command " q "& {Do {if (Get-Proces...
by iseahound
11 Dec 2018, 00:51
Forum: Ask For Help
Topic: Gdip image filesize is too big Topic is solved
Replies: 13
Views: 411

Re: Gdip image filesize is too big Topic is solved

No, a 4 MB image filesize for PNG is normal. Try taking a screenshot of your desktop wallpaper using gdi+, and take another screenshot of this forum page using gdi+. a:: pToken := Gdip_Startup() ; Gdip-Instanz starten pBitmap := Gdip_BitmapFromScreen() Gdip_SaveBitmapToFile(pBitmap, "ziel.png") Gdip...
by iseahound
06 Dec 2018, 11:20
Forum: Ask For Help
Topic: Safe Pointer / Smart Pointer to pBitmap. Topic is solved
Replies: 2
Views: 177

Re: Safe Pointer / Smart Pointer to pBitmap. Topic is solved

So our choices are bmp[] and bmp.ptr? By overriding the __Get() meta-function, I think both will work. I suppose bmp[] reminds me of a C pointer to an array of bytes. I've tried setting the base object of a number but that doesn't work. I'll be going with your idea. Thanks!
by iseahound
06 Dec 2018, 11:12
Forum: Scripts and Functions
Topic: Windows Data Types for AHK
Replies: 17
Views: 5797

Re: Windows Data Types for AHK

Thanks! If possible, can this list be included in the help file for DllCall? It would make translation of Windows API calls much easier for everyone.
by iseahound
04 Dec 2018, 13:36
Forum: Ask For Help
Topic: Safe Pointer / Smart Pointer to pBitmap. Topic is solved
Replies: 2
Views: 177

Safe Pointer / Smart Pointer to pBitmap. Topic is solved

I was getting angry at resource management and realize I could just use the __Delete() meta-method to hold by Gdip_DisposeImage(pBitmap) call. #include <Gdip_All> ; Pass pointer to a smart pointer immediately. bitmap := GetSmartPointer() ; Get the raw pointer from the smart pointer. ; NEVER STORE TH...
by iseahound
03 Dec 2018, 23:38
Forum: Scripts and Functions
Topic: [Function] GetHICONDimensions()
Replies: 7
Views: 468

Re: [Function] GetHICONDimensions()

Is Ptr := A_PtrSize ? "Ptr" : "UInt" even necessary or just tradition at this point? I think passing "ptr" is just fine :D
by iseahound
02 Dec 2018, 20:50
Forum: Ask For Help
Topic: Best Place to Learn Fundamentals
Replies: 6
Views: 251

Re: Best Place to Learn Fundamentals

I didn't know we had a tutorial and it looks hard. Honestly, the best advice is to do what everyone on this forum does. Make a AHK script, and let it run every startup. Start collecting cool functions and stuff. It should be said that AutoHotkey itself is very limited. To use it fully, AutoHotkey is...

Go to advanced search