Search found 1376 matches

by Masonjar13
13 Jan 2015, 15:39
Forum: Ask for Help (v1)
Topic: [solved] 7-zip dll in AHK
Replies: 23
Views: 10932

Re: [solved] 7-zip dll in AHK

Following the suggested methods in the help, I've loaded the library and then got the handle of the function to use directly. Besides that, how can I make it any faster? Current environment demonstration: SetBatchLines -1 Process,Priority,,H sevPrc:=dllCall("LoadLibrary","Str",tmp "\7-zip64.dll","Pt...
by Masonjar13
12 Jan 2015, 20:27
Forum: Ask for Help (v1)
Topic: [solved] 7-zip dll in AHK
Replies: 23
Views: 10932

Re: 7-zip dll in AHK

HotKeyIt wrote:Use -hide option.
That was painfully obvious.. It makes my mouse twitch a bit, but it will do.

Much appreciation to all replies.
by Masonjar13
12 Jan 2015, 20:17
Forum: Ask for Help (v1)
Topic: [solved] 7-zip dll in AHK
Replies: 23
Views: 10932

Re: 7-zip dll in AHK

Got it (stole a function from shajul's library) sevPrc:=dllCall("LoadLibrary","Str","7-zip32.dll","Ptr") file:="wast.7z",pass:=1 7Zip__SevenZip("e """ file """ -p" pass " -y") dllCall("FreeLibrary","Ptr",sevProc) exitapp 7Zip__SevenZip(sCommand) { nSize := 32768 VarSetCapacity(tOutBuffer,nSize) aRet...
by Masonjar13
12 Jan 2015, 19:45
Forum: Ask for Help (v1)
Topic: [solved] 7-zip dll in AHK
Replies: 23
Views: 10932

Re: 7-zip dll in AHK

I actually have 7-zip32.dll, but I couldn't find support for using a password. Is that what DWORD _dwMode is suppose to be for (presuming SevenZipOpenArchive is the function I should be looking at)?
by Masonjar13
12 Jan 2015, 13:57
Forum: Ask for Help (v1)
Topic: [solved] 7-zip dll in AHK
Replies: 23
Views: 10932

Re: 7-zip dll in AHK

Well, one thing at a time. First, I need to create the object of the class to be able to access either of those two functions. I don't know how to do that from a dll though.
by Masonjar13
12 Jan 2015, 04:53
Forum: Ask for Help (v1)
Topic: [solved] 7-zip dll in AHK
Replies: 23
Views: 10932

[solved] 7-zip dll in AHK

I'm less than decent with dlls, but I'm in need of a dll to replace 7za.exe (command-line 7-Zip). I'm currently trying to use SevenZipSharp.dll with the following test script, with both the test archive and dll in the same directory as the script. sevPrc:=dllCall("LoadLibrary","Str","SevenZipSharp.d...
by Masonjar13
06 Jan 2015, 13:48
Forum: Ask for Help (v1)
Topic: Get font handle from file (HFONT) [solved]
Replies: 4
Views: 2304

Re: Get font handle from file (HFONT)

tmplinshi wrote:Class_CustomFont - Load font from font file
http://ahkscript.org/boards/viewtopic.php?f=6&t=813
Exactly what I was looking for, thank you.
by Masonjar13
04 Jan 2015, 20:41
Forum: Ask for Help (v1)
Topic: Get font handle from file (HFONT) [solved]
Replies: 4
Views: 2304

Re: Get font handle from file (HFONT)

Thanks for the reply. The function you suggest isn't exact to what I said; I need to get hFont from a non-installed *.ttf file, based on it's file address. As far as I can tell, this function requires entries that should be handled completely by the file and also requires a typeface name, which impl...
by Masonjar13
03 Jan 2015, 23:22
Forum: Ask for Help (v1)
Topic: Get font handle from file (HFONT) [solved]
Replies: 4
Views: 2304

Get font handle from file (HFONT) [solved]

Quick question, I need to know how to get the wParam of WM_SETFONT (the font handle) of a TrueType font file (*.ttf) that is not installed. I'm using it for a PostMessage. It may be very obvious, but I don't have the time right now to figure it out.

Any help is appreciated.
by Masonjar13
29 Sep 2014, 16:01
Forum: Ask for Help (v1)
Topic: GUI media launch bar
Replies: 3
Views: 1760

Re: GUI media launch bar

Sounds do-able. I created something similar, but in a listview. To change the choice or add/remove entries from the list after the control has been created, use GuiControl . For dynamic width, you could parse the folder and grab the longest name, then set the width based off that. Afaik, if you spec...
by Masonjar13
29 Sep 2014, 15:52
Forum: Ask for Help (v1)
Topic: SOLVED: Error: #Include file "myfile.ahk" cannot be opened
Replies: 10
Views: 15203

Re: SOLVED: Error: #Include file "myfile.ahk" cannot be open

By "how", he means directly opening it vs. opening it with a shortcut/script/etc.. By default, the working directory is the script directory. There can be an exception in that when opening it with another script or shortcut. The working directory can be changed at (almost) any time with SetWorkingDi...
by Masonjar13
25 Aug 2014, 02:22
Forum: Scripts and Functions (v1)
Topic: Drawing Shapes in AHK (Proof-of-Concept)
Replies: 2
Views: 2964

Re: Drawing Shapes in AHK (Proof-of-Concept)

nnnik wrote:Hint GDI+ ;)
Search for gdip
xD of course I know about GDI+, I use it sometimes. As stated, just a proof-of-concept. Just a time-waster, something to play with.
by Masonjar13
24 Aug 2014, 22:44
Forum: Scripts and Functions (v1)
Topic: Drawing Shapes in AHK (Proof-of-Concept)
Replies: 2
Views: 2964

Drawing Shapes in AHK (Proof-of-Concept)

I wrote a function for someone on one of the AHK forums to get coords based off known coords, length, and angle. I then decided to play into it a bit and draw some shapes. Here's a pretty good demo I made, although, please note that for polygons, it will never have more inner-vectors compared to the...
by Masonjar13
06 Aug 2014, 01:22
Forum: Ask for Help (v1)
Topic: GDI+ ImageSearch - breaks after x-amount of uses
Replies: 2
Views: 3100

Re: GDI+ ImageSearch - breaks after x-amount of uses

That was exactly the problem, I didn't notice that. I edited it slightly, since I still need the return code. ImageSearchc(ByRef out1, ByRef out2, x1, y1, x2, y2, image, vari=0, trans="",direction=5){ ptok:=Gdip_Startup() imageB:=Gdip_CreateBitmapFromFile(image) Scrn:=Gdip_Bitmapfromscreen(x1 "|" y1...
by Masonjar13
03 Aug 2014, 04:00
Forum: Ask for Help (v1)
Topic: GDI+ ImageSearch - breaks after x-amount of uses
Replies: 2
Views: 3100

GDI+ ImageSearch - breaks after x-amount of uses

I wrote a function to ImageSearch a full-screen Flash window. It works, although after x-amount of uses, it breaks, specifically, the haystack can not be found. I've tried many, many different ways: static bitmap objects, starting GDI+ outside the function and not closing, not disposing, weird delay...
by Masonjar13
23 Jul 2014, 19:37
Forum: Other Utilities & Resources
Topic: Code Anywhere [ X-Browser/OS Online Editor ]
Replies: 4
Views: 4276

Re: Code Anywhere [ X-Browser/OS Online Editor ]

Relatively new to Code Anywhere, is there an option for custom syntax highlighting, specifically for ahk?

Go to advanced search