Search found 21 matches

by LogicDaemon
07 Aug 2018, 00:49
Forum: Ask for Help (v1)
Topic: Replacing rundll32 with DllCall Topic is solved
Replies: 4
Views: 1524

Re: Replacing rundll32 with DllCall Topic is solved

DllCall("Shell32.dll\Control_RunDLLW", "Ptr", A_ScriptHwnd, "Ptr", 0, "Str", "srchadmin.dll", "UInt", 1) strange, but I'm trying it today, and it doesn't work. Script lines most recently executed (oldest first). Press [F5] to refresh. The seconds elapsed between a line and the one after it is in pa...
by LogicDaemon
27 Jul 2018, 09:08
Forum: Ask for Help (v1)
Topic: Replacing rundll32 with DllCall Topic is solved
Replies: 4
Views: 1524

Replacing rundll32 with DllCall Topic is solved

only found https://autohotkey.com/board/topic/58802-dllcall-command/page-2 on the topic, it was helpful but didn't contain the solution. I tried multiple things but I'm still not sure what am I doing wrong. Here is what I got this far: ;works: Run % "rundll32 shell32.dll,Control_RunDLL srchadmin.dll...
by LogicDaemon
19 Jun 2018, 10:45
Forum: Ask for Help (v1)
Topic: FhConfigMgr, COM without IDispatch
Replies: 0
Views: 710

FhConfigMgr, COM without IDispatch

Hi. What I want is to implement SprintDLL script written in https://superuser.com/a/1289407 with AutoHotkey. That script configures file history in Windows. And meanwhile, I'd like to learn about COM more. Currently, I have troubles with basic function calling. As I understand, FhConfigMgr("LoadConf...
by LogicDaemon
16 Feb 2018, 15:10
Forum: Scripts and Functions (v1)
Topic: Keyboard layout switcher (Left shift = first system layout, Right shift = second one)
Replies: 5
Views: 2315

Re: Keyboard layout switcher (Left shift = En, Right shift = Ru)

first post updated, now script gets layout list from system instead of using hardcoded EN-US (409) layout. Will work with UK layout now :)
by LogicDaemon
15 Jan 2018, 14:59
Forum: Scripts and Functions (v1)
Topic: Keyboard layout switcher (Left shift = first system layout, Right shift = second one)
Replies: 5
Views: 2315

Re: Keyboard layout switcher (Left shift = En, Right shift = Ru)

your class is cool, but I don't want to use it.
No idea what was wrong, but current code works fine. I updated first post.
by LogicDaemon
14 Jan 2018, 17:29
Forum: Scripts and Functions (v1)
Topic: Keyboard layout switcher (Left shift = first system layout, Right shift = second one)
Replies: 5
Views: 2315

Re: Keyboard layout switcher (Left shift = En, Right shift = Ru)

Very nice :clap:. Do you think about EULA to the next version? Just don't forget to make the checkbox for not visiting your site. In my country, absence of license means program is for running it only (including copying to RAM) without permission for copying to non-volatile medium copy (except for ...
by LogicDaemon
14 Jan 2018, 09:04
Forum: Scripts and Functions (v1)
Topic: Keyboard layout switcher (Left shift = first system layout, Right shift = second one)
Replies: 5
Views: 2315

Keyboard layout switcher (Left shift = first system layout, Right shift = second one)

this is follow up to https://autohotkey.com/board/topic/24666-keyboard-layout-switcher/page-2 My problem is that I wanted to set specific layouts to specific keys, as in Left shift = En, Right shift = Ru; but I didn't find API function to switch to specific layout. ;This work is licensed under a Cre...
by LogicDaemon
25 Nov 2017, 02:22
Forum: Ask for Help (v1)
Topic: 259-char path limit workarounds Topic is solved
Replies: 13
Views: 6403

Re: 259-char path limit workarounds Topic is solved

Thanks :) I would certainly prefer DllCall over COM because of performance. COM is really, really slow, it's noticeable with large directories. And AutoHotkey is fairly fast if used properly, I'd say it's on par with php and maybe even python; much faster than batch files and wscript at least. P.S. ...
by LogicDaemon
17 Jun 2017, 23:59
Forum: Ask for Help (v1)
Topic: 259-char path limit workarounds Topic is solved
Replies: 13
Views: 6403

Re: 259-char path limit workarounds Topic is solved

I know that's old topic, still I want to share what I've asked it for :) In file zpaq.ahk , look the function "LongPathsInDir". It can be easily adopted to return directory contents (with subdirectories). I've tweaked _WIN32_FIND_DATA struct size to be exact (not to waste any memory), and added comm...
by LogicDaemon
27 Dec 2016, 13:29
Forum: Ask for Help (v1)
Topic: 259-char path limit workarounds Topic is solved
Replies: 13
Views: 6403

Re: 259-char path limit workarounds Topic is solved

OK it appears shift+right click, Copy Path, on a long filename, returns blank. Windows 10 release has same problem for me, but on "slow" Insider Preview (build 14986), it returns double-quoted \\?\ -prefixed path. But I use Total Commander most of the time anyway. And Edit, Copy, and retrieve %Clip...
by LogicDaemon
27 Dec 2016, 12:32
Forum: Ask for Help (v1)
Topic: 259-char path limit workarounds Topic is solved
Replies: 13
Views: 6403

259-char path limit workarounds Topic is solved

Hi all. I need to work with long paths, and I hoped AutoHotkey is appropriate tool for almost anything. Unfortunately, Loop operator betrayed me, since it intentionally ignores files with paths longer than 259 char, even if I prefix the path with \\?\ Seriously, most programs nowadays don't stick to...
by LogicDaemon
08 Oct 2015, 04:04
Forum: Bug Reports
Topic: chm help: URL to 404 in #Include / #IncludeAgain
Replies: 5
Views: 2803

chm help: URL to 404 in #Include / #IncludeAgain

A script behaves as though the included file's contents are physically present at the exact position of the #Include directive (as though a copy-and-paste were done from the included file). Consequently, it generally cannot merge two isolated scripts together into one functioning script (to achieve...
by LogicDaemon
27 Jul 2015, 09:53
Forum: Ask for Help (v1)
Topic: NumGet - I can't manage to read bytes from integer
Replies: 7
Views: 2423

Re: NumGet - I can't manage to read bytes from integer

@jNizM 1. Ty for RtlGetVersion tip. 2. Did you see the c++ code? My last one is the 1 to 1 translation from the c++ code from the msdn function page... Except in C++, each HIBYTE, LOBYTE, HIWORD, LOWORD will translate to 2 opcodes, and can be further optimised, but in AutoHotkey you're invoking expr...
by LogicDaemon
27 Jul 2015, 08:41
Forum: Ask for Help (v1)
Topic: NumGet - I can't manage to read bytes from integer
Replies: 7
Views: 2423

Re: NumGet - I can't manage to read bytes from integer

Your second variant is bitwise arithmetic again :(

So what, if I get some data structure inside integer, I basically can't read it with NumGet and I better DllCall("memcpy") instead?
by LogicDaemon
27 Jul 2015, 08:27
Forum: Ask for Help (v1)
Topic: NumGet - I can't manage to read bytes from integer
Replies: 7
Views: 2423

Re: NumGet - I can't manage to read bytes from integer

ty for fast-reply, but I want to learn how to use NumGet (there are tons of examples and code working with GetVersion and arithmetics). Read PS plz :)
by LogicDaemon
27 Jul 2015, 08:19
Forum: Ask for Help (v1)
Topic: NumGet - I can't manage to read bytes from integer
Replies: 7
Views: 2423

NumGet - I can't manage to read bytes from integer

Basically, I want fast way to get windows version – major, minor and build no. to different vars. I hope this is self-explanatory: SetFormat IntegerFast, H winver := DllCall("GetVersion", "UInt") majorVerNo:=NumGet(winver,0,"UChar") minorVerNo:=NumGet(winver,1,"UChar") buildNo:=NumGet(winver,2,"USho...
by LogicDaemon
25 Feb 2014, 08:20
Forum: About This Community
Topic: Let's move to Discourse, before it's too late! :)
Replies: 18
Views: 11310

Re: Let's move to Discourse, before it's too late! :)

but IMHO, the AutoHotkey.com forum is a disaster It is indeed, but IPB isn't much different from phpBB from UX point of view. Here and there, phpBB is worse, though maybe this can be changed (by configuring). First things I noticed when I opened http://ahkscript.org/boards/ is lack of subject of th...
by LogicDaemon
25 Feb 2014, 07:49
Forum: About This Community
Topic: Let's move to Discourse, before it's too late! :)
Replies: 18
Views: 11310

Re: Let's move to Discourse, before it's too late! :)

@just me, there is [theming system](https://meta.discourse.org/t/has-anybody-created-themes-for-discourse/7534). Otherwise, any forum differs by UX. And this is exactly what make you like or hate a forum, if admins are adequate. If UX is terrible, admins won't even be testified, because bad UX on fo...
by LogicDaemon
23 Feb 2014, 04:13
Forum: About This Community
Topic: Let's move to Discourse, before it's too late! :)
Replies: 18
Views: 11310

Re: Let's move to Discourse, before it's too late! :)

They have http://try.discourse.org. Can anyone test it in IE8?

--
meanwhile I've found IE8 to test. Nope, it does not work in it.
Image

--

btw, IE9 is supported indeed, except for some visuals.
by LogicDaemon
23 Feb 2014, 02:51
Forum: About This Community
Topic: Let's move to Discourse, before it's too late! :)
Replies: 18
Views: 11310

Re: Let's move to Discourse, before it's too late! :)

Not to mention Vista, which is stuck at IE9. (And yes, I am one of those people who prefers IE over the likes of Firefox or Chrome.) It will work in IE9, though with some limits. Yet those limits are nothing relatively to phpbb limits when compared to Discourse. See, stack exchange does not support...

Go to advanced search