Search found 295 matches

by gwarble
Yesterday, 14:52
Forum: Bug Reports
Topic: FileCreateShortcut bug
Replies: 0
Views: 30

FileCreateShortcut bug

noticed what I think is a bug: FileCreateShortcut, "S:\IT - Software\Tools\AppName.exe", %A_ProgramsCommon%\AppName\Update now.lnk S:\ is a mapped network drive. Non-admin user needs elevation to create the shortcut, which means S:\ mapped drive no longer exists. Created shortcut path is: S:\IT_-_So...
by gwarble
16 Dec 2018, 04:12
Forum: Ask For Help
Topic: ListView property for "Rows of Height"?
Replies: 2
Views: 42

Re: ListView property for "Rows of Height"?

Try a creative use of:
https://autohotkey.com/boards/viewtopic.php?f=7&t=42570
Something like:
Get height of listview for an estimate, start with that estimate, get approximate rect, and compare

Increase or decrease that estimate and try again as needed
by gwarble
15 Dec 2018, 12:37
Forum: Ask For Help
Topic: How to RegWrite a "current user" registry setting for unelevated user
Replies: 7
Views: 216

Re: How to RegWrite a "current user" registry setting for unelevated user

Something like this? works on windows 7, fails on XP (getting SID misses the last "-1004" for example) If not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } dlw1 := RegReadUser(GetStandardUser(), "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableLockWorkst...
by gwarble
14 Dec 2018, 19:04
Forum: Ask For Help
Topic: Automating Excel from a scheduled task when NOT logged into Windows?
Replies: 3
Views: 120

Re: Automating Excel from a scheduled task when NOT logged into Windows?

The problem is likely with excel and not ahk:

https://stackoverflow.com/questions/423 ... r-logs-off

For what its worth, a service is possible with ahk, but not needed with task scheduler tasks
by gwarble
13 Dec 2018, 19:25
Forum: Ask For Help
Topic: How to RegWrite a "current user" registry setting for unelevated user
Replies: 7
Views: 216

Re: How to RegWrite a "current user" registry setting for unelevated user

So I added a break to the loop after first Username is found, tested on two systems they both seem to return the "standard user" i want from the elevated process first, before a secondary logon name, so maybe this works. I can't find any documentation or posts about the order in which sessions are e...
by gwarble
13 Dec 2018, 00:47
Forum: Scripts and Functions
Topic: EitherMouse 0.75 - Multiple mice, individual settings...
Replies: 257
Views: 66994

Re: EitherMouse 0.75 - Multiple mice, individual settings...

Many thanks for sharing that solution, I will look into incorporating that into EitherMouse or the installer
by gwarble
13 Dec 2018, 00:27
Forum: Ask For Help
Topic: How to RegWrite a "current user" registry setting for unelevated user
Replies: 7
Views: 216

Re: How to RegWrite a "current user" registry setting for unelevated user

I will once i'm sure I can get the actual logged in current standard user

the getting of Sid seems pretty solid, not sure what else its useful for

If this is really the only way it might be useful to wrap it into RegWriteStandardUser()
by gwarble
12 Dec 2018, 20:24
Forum: Ask For Help
Topic: Coding with Ansi & Unicode compatibility question
Replies: 4
Views: 73

Re: Coding with Ansi & Unicode compatibility question

Thanks for the explanation. That all makes sense, I guess lstrcpy and lstrlen fall into this category: - Other times the situation is slightly different. One possibility is that you have Func (ANSI) and FuncW (Unicode). And specifying Func when using AHK Unicode will give you the wrong answer, altho...
by gwarble
12 Dec 2018, 19:33
Forum: Ask For Help
Topic: Coding with Ansi & Unicode compatibility question
Replies: 4
Views: 73

Coding with Ansi & Unicode compatibility question

Hey all, After getting the libHaru library to work with unicode, i'm finally able to switch one of my programs to U32, and merge it with another that already required unicode. So i've been tackling a couple other functions to get them to work with all versions, A|U32|64 Started with it working in an...
by gwarble
12 Dec 2018, 08:36
Forum: Ask For Help
Topic: How to RegWrite a "current user" registry setting for unelevated user
Replies: 7
Views: 216

Re: How to RegWrite a "current user" registry setting for unelevated user

True, it does seem to work, but i want to find the proper way and i've not seen it done like this elsewhere

Edit: actually it fails when another user is logged in, don't know how to differentiate the user sessions
by gwarble
11 Dec 2018, 16:47
Forum: Ask For Help
Topic: How to RegWrite a "current user" registry setting for unelevated user
Replies: 7
Views: 216

How to RegWrite a "current user" registry setting for unelevated user

Hey all... In learning the ins and outs of needing administrator privileges and using uac, I've run into a problem that I assume has an easy solution but I have only been able to kludge a workaround: How to write a registry setting for a standard user, not the elevated/admin user, when admin privile...
by gwarble
09 Dec 2018, 10:27
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 32
Views: 1150

Re: Install and use LibHaru with AHK

Thanks, its working in my program fine so far, i'm not too worried about finding the examples Thanks for testing, I'm glad its working for you, i'll post a new thread in S&F today to increase visibility, this was the only thing left keeping me on Ansi ahk i think Edit: thanks for the links too, both...
by gwarble
08 Dec 2018, 19:05
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 32
Views: 1150

Re: Install and use LibHaru with AHK

the original thread has about a dozen example scripts (with broken links) but no biggie

thanks for the links to alternate binaries, I will check them out and see what I can make of it, thanks!
Also trying a TDM-GCC path to compiling myself, still learning
by gwarble
08 Dec 2018, 14:08
Forum: Ask For Help
Topic: Install and use LibHaru with AHK
Replies: 32
Views: 1150

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: 32
Views: 1150

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: 67

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: 32
Views: 1150

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: 32
Views: 1150

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: 103

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/

Go to advanced search