Search found 19 matches

by ciantic
22 Jun 2019, 11:23
Forum: Wish List
Topic: Prevent Win+Ctrl+Alt+Shift hotkeys from opening the Office dialog in Windows 1903
Replies: 10
Views: 3434

Re: Prevent Win+Ctrl+Alt+Shift hotkeys from opening the Office dialog in Windows 1903

Thanks! So everyone trying to disable the Office key, here is the snippet of yours that does it: #^!Shift:: #^+Alt:: #!+Ctrl:: ^!+LWin:: ^!+RWin:: Send {Blind}{vk07} return I think I get this now. However I wouldn't have figured the code above, since it was not intuitive to me, I only tried to disab...
by ciantic
21 Jun 2019, 05:52
Forum: Wish List
Topic: Prevent Win+Ctrl+Alt+Shift hotkeys from opening the Office dialog in Windows 1903
Replies: 10
Views: 3434

Re: Win+Ctrl+Alt+Shift hotkeys open the Office dialog in Windows 1903

Okay, can we just move this topic? To me AHK has always been this magic tool that can override any and all hotkeys, including Windows key, Alt+Tab etc. so when I couldn't override the Office key it seemed to me like a bug. And I thought it's similar problem as Alt+Tab, since when I bind Alt+Tab the ...
by ciantic
21 Jun 2019, 04:51
Forum: Wish List
Topic: Prevent Win+Ctrl+Alt+Shift hotkeys from opening the Office dialog in Windows 1903
Replies: 10
Views: 3434

Re: Win+Ctrl+Alt+Shift hotkeys open the Office dialog in Windows 1903

Actually I thought AHK has a set of hacks to override the other quirks of Windows, by adding a way to disable that would be just one more. I can imagine it's similar problem as overriding Alt+Tab, I don't think it's normally overridable without hacks. However I do accept this is not bug as such, but...
by ciantic
20 Jun 2019, 05:48
Forum: Wish List
Topic: Prevent Win+Ctrl+Alt+Shift hotkeys from opening the Office dialog in Windows 1903
Replies: 10
Views: 3434

Prevent Win+Ctrl+Alt+Shift hotkeys from opening the Office dialog in Windows 1903

Hello, I've discovered that with Windows 1903 update the Microsoft has added some global hotkey: Hold Win+Ctrl+Alt+Shift and then release it will open a Office dialog. This means that most of the special shortcuts done with Autohotkey are affected, which happen to use that combination. The combinati...
by ciantic
19 Jun 2019, 15:52
Forum: Ask For Help
Topic: Simple shortcut broken after Windows 10 upgrade
Replies: 8
Views: 1586

Re: Simple shortcut broken after Windows 10 upgrade

I'm also getting the pesky office dialog right after updating to Windows 1903. Instead of hacky Sleeps or KeyWaits we should find a way to disable the underlying Office hotkey, it will cause a lot of problems for others too. EDIT This happens without AHK too: Just Hold: Win+Ctrl+Alt+Shift Then Relea...
by ciantic
05 Aug 2016, 16:27
Forum: Ask For Help
Topic: IDesktopWallpaper and Com* functions?
Replies: 2
Views: 839

IDesktopWallpaper and Com* functions?

Hello, Does anyone know how to use these Com* functions? I have very clear example in C++: https://github.com/mvaneerde/blog/blob/master/desktopwallpaper/desktopwallpaper/main.cpp Reason I want to try IDesktopWallpaper functions is they are newer, and potentially faster, and have more features than ...
by ciantic
23 Feb 2016, 04:00
Forum: Ask For Help
Topic: Two or more KeyWaits waits only on the second one
Replies: 4
Views: 706

Re: Two or more KeyWaits waits only on the second one

How's this I modified your example a bit and removed the KeyWait's from it they caused still some issues when alternating between the keys while holding F13, I think this worked: Edit I added GetKeyState's there to prevent key repeat from sending multiple shift downs and control downs, not sure if ...
by ciantic
22 Feb 2016, 16:50
Forum: Ask For Help
Topic: Two or more KeyWaits waits only on the second one
Replies: 4
Views: 706

Re: Two or more KeyWaits waits only on the second one

Read the docs on threading. Once the first hotkey is at KeyWait , it's interrupted by the second hotkey. Only once the second hotkey finishes, the first hotkey starts where it left of. I actually suspected threading, but how can I make this to work? I tried creating two scripts, but the first scrip...
by ciantic
22 Feb 2016, 14:40
Forum: Ask For Help
Topic: Two or more KeyWaits waits only on the second one
Replies: 4
Views: 706

Two or more KeyWaits waits only on the second one

F13 & f:: ; Shift key Send, {Shift down} KeyWait, f Send, {Shift up} return F13 & Space:: ; Control key Send, {Control down} KeyWait, Space Send, {Control up} return If I hold F13 & f, then press right it selects text to the right as I want, if I then start holding space and then release f it still...
by ciantic
08 Nov 2015, 03:44
Forum: Ask For Help
Topic: Returning byte array gets corrupted without ByRef?
Replies: 13
Views: 2331

Re: Returning byte array gets corrupted without ByRef?

In short, just me is correct. Yes. I was wrong. Though my last script worked (miraculously) which made me to think SetCapacity works just like VarSetCapacity, that you can and should pass it uninitialized variable "without quotes". I have not looked at AHK 2, but I hope it throws more errors when u...
by ciantic
07 Nov 2015, 12:49
Forum: Ask For Help
Topic: Returning byte array gets corrupted without ByRef?
Replies: 13
Views: 2331

Re: Returning byte array gets corrupted without ByRef?

Did you read my last post? I read your last post, but it does not work at all. Only thing that works correctly is the one without quotes: Obj := {Buffer: 0} MsgBox, % Obj.SetCapacity(Buffer, 32) MsgBox, % Obj.GetAddress(Buffer) Obj := {Buffer: ""} MsgBox, % Obj.SetCapacity(Buffer, 32) MsgBox, % Obj...
by ciantic
07 Nov 2015, 12:20
Forum: Ask For Help
Topic: Returning byte array gets corrupted without ByRef?
Replies: 13
Views: 2331

Re: Returning byte array gets corrupted without ByRef?

Oh did you read my last post?

SetCapacity and GetAddress must be called without quotes.

obj.GetAddress(buffer) and obj.SetCapacity(buffer, 5)

It's one peculiarity of AHK.
by ciantic
07 Nov 2015, 12:19
Forum: Ask For Help
Topic: Returning byte array gets corrupted without ByRef?
Replies: 13
Views: 2331

Re: Returning byte array gets corrupted without ByRef?

just me wrote:Your last version is using the empty string ("") as a key.
My last version works, 100% confirmed. It makes no sense, but that's the way it is.
by ciantic
07 Nov 2015, 11:27
Forum: Ask For Help
Topic: Returning byte array gets corrupted without ByRef?
Replies: 13
Views: 2331

Re: Returning byte array gets corrupted without ByRef?

Okay I found out, this made absolutely no sense to me. Object.SetCapacity and Object.GetAddress must be called without quotes, meaning it looks just like passing a variable. If you do pass quotes, the GetAddress returns a pointer, but who knows where? SetCapacity returns zero (so I figured this one ...
by ciantic
07 Nov 2015, 10:51
Forum: Ask For Help
Topic: Returning byte array gets corrupted without ByRef?
Replies: 13
Views: 2331

Re: Returning byte array gets corrupted without ByRef?

You are directly referencing the buffers of b, b2 and b3 from the object, by storing &buffer . How exactly would you remove those variables? If you want the buffer itself (not just its address) to be stored inside the object, use Object.SetCapacity(key, n) and Object.GetAddress(key) . In your secon...
by ciantic
07 Nov 2015, 01:38
Forum: Ask For Help
Topic: Returning byte array gets corrupted without ByRef?
Replies: 13
Views: 2331

Re: Returning byte array gets corrupted without ByRef?

@lexikos, Thanks. The first example works that's why it includes &buffer as return variable. It seemed to be only way I got it working, when having buffer as a local variable, and returning address, this usually causes using dangling pointer in other languages, and I knew it wouldn't be a good thing...
by ciantic
06 Nov 2015, 16:35
Forum: Ask For Help
Topic: Returning byte array gets corrupted without ByRef?
Replies: 13
Views: 2331

Returning byte array gets corrupted without ByRef?

memcpy(ptrAddress, ptrFrom, size) { return DllCall("msvcrt\memcpy_s", "Ptr", ptrAddress, "Int", size, "Ptr", ptrFrom, "Int", size, "Int") } BaseToDec(n, Base) { static U := A_IsUnicode ? "wcstoui64_l" : "strtoui64" return, DllCall("msvcrt\_" U, "Str",n, "Uint",0, "Int",Base, "CDECL Int64") } DecToB...
by ciantic
02 Nov 2015, 03:31
Forum: Scripts and Functions
Topic: Memory Process reading/Writing & Pattern Scans (Array of bytes)
Replies: 18
Views: 13259

Re: Memory Process reading/Writing

I get total emptiness if I run: explorerExe := new memory("ahk_exe explorer.exe") msgbox % explorerExe.BaseAddress Should this also work for explorer.exe? Edit: I'm using Windows 10, 64 bit. I've made a in-memory patch for explorer.exe and tested it using x64dbg, and now I'm thinking best way to app...
by ciantic
24 Oct 2015, 15:43
Forum: Scripts and Functions
Topic: Windows 10, change virtual desktop, and background for each desktop
Replies: 4
Views: 2232

Windows 10, change virtual desktop, and background for each desktop

I've created a DLL that can be easily accessed to change virtual desktop (Windows 10 only!) and get notifications of desktop changes (so you can set e.g. own Background on each desktop). Download the DLL from Github: https://github.com/Ciantic/VirtualDesktopAccessor Some code to get started: DetectH...

Go to advanced search