Search found 321 matches

by gwarble
08 Dec 2018, 14:08
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 33
Views: 1516

Re: Install and use LibHaru with AHK

Does anyone have the example scripts from the original thread by thrawn? The archives only have three
by gwarble
06 Dec 2018, 15:46
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 33
Views: 1516

Re: Install and use LibHaru with AHK

Ok, this seems to work with U32 and A32 (and U64!), feedback appreciated: ;---------------------------------------------------- ;-- HPDF - libHaru Wrapper - Thrawn 2009 -- ;-- + Unicode 32&64bit support - gwarble 2018 -- ;---------------------------------------------------- HPDF_LoadDLL(dll) { retur...
by gwarble
06 Dec 2018, 13:30
Forum: Ask For Help
Topic: Double period like Mac/iPhone Topic is solved
Replies: 2
Views: 90

Re: Double period like Mac/iPhone Topic is solved

Maybe with a hotstring?

Try this to replace "space space" with "period space space"

Code: Select all

:*?:  ::.  `
by gwarble
06 Dec 2018, 11:57
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 33
Views: 1516

Re: Install and use LibHaru with AHK

Thanks I see now that a 64-bit process can not run a 32-bit dll, its a restriction of Windows... So compiling the .dll as 64-bit seems like the only solution for AHK U64. Personally I'm ok with just getting the ANSI dll to work with the ahk U32 Unless: https://blog.mattmags.com/2007/06/30/accessing-...
by gwarble
05 Dec 2018, 23:13
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 33
Views: 1516

Re: Install and use LibHaru with AHK

Small success, i stripped down a test script to the bare minimum, creating a blank pdf without the library, just direct dllcalls, and was able to create a pdf from U32 and A32 using v2.1.0 dll So i know the dll at least works from U32. Now i will selectively start adding back in the HPDF library and...
by gwarble
05 Dec 2018, 18:23
Forum: Ask For Help
Topic: Eliminate delay after first keystroke
Replies: 5
Views: 158

Re: Eliminate delay after first keystroke

Do you mean with AHK? or just in general on your computer?
See:
https://www.dummies.com/computers/pcs/s ... peat-rate/
by gwarble
05 Dec 2018, 14:12
Forum: Ask For Help
Topic: Datetime before 1601 Topic is solved
Replies: 4
Views: 136

Re: Datetime before 1601 Topic is solved

Do you want to be accurate to real history? Then you need to figure manually based on the country and when the calendar used changed from Julian to Gregorian (or whatever was before Julian) If you want to assume Gregorian calendar was already in place, maybe you can manually add 1000 years to both v...
by gwarble
04 Dec 2018, 20:01
Forum: Ask For Help
Topic: Autohotkey not working in Photoshop Topic is solved
Replies: 13
Views: 291

Re: Autohotkey not working in Photoshop Topic is solved

The #SingleInstance, Force is more general and other use-cases for your script will be better reasons to use that (or "off, or not at all) But its contributing to your confusion, because its doing the job of "ExitApp" in the other example. Also the reason the braces you asked about matter The logic ...
by gwarble
04 Dec 2018, 19:21
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 33
Views: 1516

Re: Install and use LibHaru with AHK

or do i have to use StrPut/WideCharToMultiByte to convert the strings from ahk to be ansi even though its running the unicode version?

Edit: at this point, no... i got it functioning without doing so
by gwarble
04 Dec 2018, 18:20
Forum: Scripts and Functions
Topic: avoid 'Could not close the previous instance of this script' warnings
Replies: 6
Views: 420

Re: avoid 'Could not close the previous instance of this script' warnings

I usually do it like this from within the script: pDHW := A_DetectHiddenWindows DetectHiddenWindows On WinGet, List, List, ahk_exe %Exe% Loop %List% SendMessage,0x111,65405,0,, % "ahk_id " List%A_Index% DetectHiddenWindows %pDHW% or use malcev's version above, but use SendMessage,0x111,65405,0... to...
by gwarble
04 Dec 2018, 18:11
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 33
Views: 1516

Re: Install and use LibHaru with AHK

I couldn't figure out how to compile the .dll, and decided to focus my attention on getting the existing working library to work from AutoHotkeyU32 using the ANSI dll.

... AStr vs. Str, UPtr vs UInt ...
by gwarble
04 Dec 2018, 15:23
Forum: Ask For Help
Topic: Press the button - impossible... Topic is solved
Replies: 6
Views: 132

Re: Press the button - impossible... Topic is solved

Try running your script as admin
by gwarble
04 Dec 2018, 13:58
Forum: Ask For Help
Topic: Press the button - impossible... Topic is solved
Replies: 6
Views: 132

Re: Press the button - impossible... Topic is solved

Albireo wrote:Text: e&Xit
Maybe try ControlSend Alt-X to the button?
by gwarble
04 Dec 2018, 13:43
Forum: Ask For Help
Topic: How to print from Autohotkey?
Replies: 27
Views: 859

Re: How to print from Autohotkey?

Nice thanks :) Here's a simple script/program I use all the time for printing an png/jpg/bmp full page quickly: ;PrintNow #NoEnv #SingleInstance, Off #NoTrayIcon Compile() File = %1% If File = ExitApp pToken := SGDIPrint_GDIPStartup() pPrinterName := SGDIPrint_GetDefaultPrinter() pBitmap := Gdip_Cr...
by gwarble
03 Dec 2018, 19:10
Forum: Ask For Help
Topic: AHK 32bit or 64bit? Topic is solved
Replies: 4
Views: 160

Re: AHK 32bit or 64bit? Topic is solved

The default version changes based on the currect installation... If you installed Unicode 64-bit, AuthoHotkey.exe will be a copy of AutoHotkeyU64.exe Most scripts won't matter, but if you're getting started, avoid ANSI unless you need it for backwards compatibility, use 64-bit if you're on windows 6...
by gwarble
03 Dec 2018, 19:05
Forum: Ask For Help
Topic: How to print from Autohotkey?
Replies: 27
Views: 859

Re: How to print from Autohotkey?

Good idea using rtf/wordpad, I hadn't thought of that

I like the elegance of printing directly using GDI(+) with SGDIPrint(), i will post a simple script that shows how simple it can be in case you want to play with it
by gwarble
03 Dec 2018, 10:21
Forum: Ask For Help
Topic: How to print from Autohotkey?
Replies: 27
Views: 859

Re: How to print from Autohotkey?

Two alternatives to a HTML/CSS solution that I've used would be: 1) generate a PDF using the libHaru dll, but you are dependent on the end user's pdf reader to print: https://autohotkey.com/board/topic/40659-wrapper-for-libharu-creates-pdfs-stdlib-r1-2009-05-11/page-2 2) print directly from ahk usin...
by gwarble
30 Nov 2018, 16:10
Forum: Ask For Help
Topic: DefaultValue in a function Topic is solved
Replies: 3
Views: 124

Re: DefaultValue in a function Topic is solved

This type of call TestFunc(12,,14) will work if you have the second and all after parameters as optional, like:

TestFunc(a, b="", c="")
by gwarble
28 Nov 2018, 19:48
Forum: Ask For Help
Topic: Window ignores AHK Topic is solved
Replies: 2
Views: 113

Re: Window ignores AHK Topic is solved

Try running your script as administrator

A_IsAdmin
by gwarble
28 Nov 2018, 18:32
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 33
Views: 1516

Re: Install and use LibHaru with AHK

I did get past the zlib errors by duplicating files, now i'm stuck on similar libpng errors... Not sure how to install these into the bcc stdlib Ideally i'd like to compile a v2.3.0 DLL with libpng and zlib libraries already linked in, without dependency on mscvrt10.dll, and compile both 32-bit and ...

Go to advanced search