Search found 39 matches

by XShayanX
13 May 2020, 10:28
Forum: Ask For Help
Topic: AHK GUI EDIT - Contextmenu edit
Replies: 3
Views: 197

Re: AHK GUI EDIT - Contextmenu edit

I can't see that the above code snippet is the code that creates the context menu you want to edit?! There must be more than this single line? That single line will make a GUI and will add a Edit box in the GUI, All you have to do is: GUI, 1: Show, W200 H100 Now on the GUI that is popped up on your...
by XShayanX
12 May 2020, 14:23
Forum: Ask For Help
Topic: AHK GUI EDIT - Contextmenu edit
Replies: 3
Views: 197

AHK GUI EDIT - Contextmenu edit

Image

Hello!
Is there any way to edit this contextmenu?
Is there any way to disable it?

Code: Select all

Gui, 1: Add, Edit,, text
by XShayanX
01 Nov 2019, 15:30
Forum: Ask For Help
Topic: How are binary numbers actually stored in memory? - NumPut Topic is solved
Replies: 7
Views: 1643

Re: How are binary numbers actually stored in memory? - NumPut Topic is solved

I thought about this a lot, at the end I came up with this diagram (I hoped it'd be correct but it's wrong): Mouse.png I just try to make sense of the amount of zero's. Here's what I don't understand in one of your examples: ;q:: ;display bytes VarSetCapacity(vData, 8) NumPut(0x123456789ABCDEF0, &vD...
by XShayanX
31 Oct 2019, 07:56
Forum: Ask For Help
Topic: How are binary numbers actually stored in memory? - NumPut Topic is solved
Replies: 7
Views: 1643

Re: How are binary numbers actually stored in memory? - NumPut Topic is solved

Thank you very much! I finally understand now ^-^

I understand that for little endiannes I should flip the bytes + read from right to left:
1234 = 4321 (read right to left)
by XShayanX
30 Oct 2019, 15:46
Forum: Ask For Help
Topic: How are binary numbers actually stored in memory? - NumPut Topic is solved
Replies: 7
Views: 1643

How are binary numbers actually stored in memory? - NumPut Topic is solved

~+x:: VarSetCapacity(mRect, 16) NumPut(1, mRect, 0, "Int") NumPut(2, mRect, 4, "Int") z0 := NumGet(mRect, 0, "Int") z1 := NumGet(mRect, 1, "Int") z2 := NumGet(mRect, 2, "Int") z3 := NumGet(mRect, 3, "Int") return ; Results: z0 = 1 z1 = 33554432 = 10000000000000000000000000 (25 zero's) (26 digits) ;...
by XShayanX
29 Oct 2019, 03:45
Forum: Ask For Help
Topic: AHK not able to detect physical state of RAlt and RCtrl keys together Topic is solved
Replies: 1
Views: 349

AHK not able to detect physical state of RAlt and RCtrl keys together Topic is solved

>!RCtrl:: >^RAlt:: x:=GetKeyState("RAlt",P) y:=GetKeyState("RCtrl",P) MsgBox, % x " " y return If I press and hold RAlt key, and while holding it, press and hold RCtrl, MsgBox will say: 1 0 If I press and hold RCtrl key, and while holding it, press and hold RAlt, MsgBox will say: 0 1 Expected behav...
by XShayanX
14 Sep 2019, 04:30
Forum: Ask For Help
Topic: Bug in Regwrite in HKEY_LOCAL_MACHINE
Replies: 12
Views: 1698

Re: Bug in Regwrite in HKEY_LOCAL_MACHINE

@just me Nice I just saw your post here, so it means we're on the same boat, I understand that I'm getting Access denied (Error 5) but I am running my script as Administrator, I don't know what I'm missing?
by XShayanX
13 Sep 2019, 10:51
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1112

Re: Registry Key Contains Comma - How To Escape It?

I have already tried that, I can modify and rename the values and keys without an issue with RegEdit, and I can export and apply *.reg files no problem. BTW, I have a couple of other hotkeys in my script which use RegWrite to write to HKCU and HKU, and they work without an issue :) Just right now I ...
by XShayanX
13 Sep 2019, 10:34
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1112

Re: Registry Key Contains Comma - How To Escape It?

Thanks so much for the code. I remember after I ran the hotkey, I double clicked on script icon on the status bar and from "Variables and their contents" I checked ErrorLevel, it was 0 but after I tried your code, I found out that ErrorCode is 5 (something must have interfered that my ErrorLevel was...
by XShayanX
13 Sep 2019, 08:13
Forum: Ask For Help
Topic: Bug in Regwrite in HKEY_LOCAL_MACHINE
Replies: 12
Views: 1698

Re: Bug in Regwrite in HKEY_LOCAL_MACHINE

I'm on v1.1.30.01 currently, any news on when this is going to get fixed? I have the same issue, I can't write to HKLM.
This is my thread: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=67974&p=292326#p292326
by XShayanX
13 Sep 2019, 07:24
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1112

Re: Registry Key Contains Comma - How To Escape It?

Sounds like there's bug with RegWrite in writing to HKLM:
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=62582
I don't know what to do now...
I have tried running the script with UAC access, as admin, converted it to exe and ran it as admin but all to no avail.
by XShayanX
13 Sep 2019, 06:39
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1112

Re: Registry Key Contains Comma - How To Escape It?

Good thinking!
I tried what you said, it didn't write it to registry...
I wonder what's wrong..
by XShayanX
12 Sep 2019, 17:26
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1112

Re: Registry Key Contains Comma - How To Escape It?

All values are correct :)

Code: Select all

Listen1[24 of 63]: 0B0000000100000000000000
Listen1Change[24 of 63]: 0B00000001000000ffff0000
Listen1ChangeLength[2 of 3]: 24
Listen1First[16 of 63]: 0B00000001000000
Listen1Last[4 of 7]: 0000
Listen1Length[2 of 3]: 24
Listen1State[4 of 7]: 0000
by XShayanX
12 Sep 2019, 17:05
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1112

Re: Registry Key Contains Comma - How To Escape It?

I was using the old syntax: RegWrite, ValueType, RootKey, SubKey , ValueName, Value
Regardless, I used the new syntax as you suggested but to no avail.
I check the registry value, and it still does not change after I press my hotkey.
At this point I'm really doubting regwrite supports %variables%
by XShayanX
12 Sep 2019, 16:35
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1112

Re: Registry Key Contains Comma - How To Escape It?

Wait is it possible to write a variable to a registry value?

Code: Select all

RegWrite,REG_BINARY,HKLM,SOFTWARE\...\Properties,{24dbb0fc-9311-4b3d-9cf0-18ff155639d4}`,1,%Listen1Change%
by XShayanX
12 Sep 2019, 16:12
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1112

Re: Registry Key Contains Comma - How To Escape It?

But RegWrite isn't working.. although I'm running AHK with UAC access: 072: RegWrite,REG_BINARY,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capture\{d0649ed1-77fc-4bd5-a5f6-cf5600c5136f}\Properties,{24dbb0fc-9311-4b3d-9cf0-18ff155639d4},1,%Listen1Ch 073: } 077: Return (60.08) Here...
by XShayanX
12 Sep 2019, 14:05
Forum: Ask For Help
Topic: Registry Key Contains Comma - How To Escape It?
Replies: 14
Views: 1112

Registry Key Contains Comma - How To Escape It?

As you can see in the following picture, all these Registry keys contain comma, How can I escape them? I'm using RegRead and RegWrite. https://i.imgur.com/oeetJ2L.png I have searched and found this: https://autohotkey.com/board/topic/96759-run-a-filename-that-contains-a-comma/ But I'm scared to try ...
by XShayanX
26 Aug 2019, 14:47
Forum: Scripts and Functions
Topic: Move active window to second monitor and back
Replies: 3
Views: 1888

Re: Move active window to second monitor and back

Version 1.1 + bug fixed #SingleInstance Force #SC029:: MMPrimDPI := 1.0 ;DPI Scale of the primary monitor (divided by 100). MMSecDPI := 1.0 ;DPI Scale of the secondary monitor (divided by 100). SysGet, MMCount, MonitorCount SysGet, MMPrimary, MonitorPrimary SysGet, MMPrimLRTB, Monitor, MMPrimary Win...
by XShayanX
20 Jul 2019, 09:54
Forum: Ask For Help
Topic: How to Select (Click) a Row in a ListBox or ComboBox? Topic is solved
Replies: 2
Views: 610

How to Select (Click) a Row in a ListBox or ComboBox? Topic is solved

For Example I am using this code taken from here: https://www.autohotkey.com/docs/commands/ControlGet.htm Which lets me see all items in a ComboBox: ControlGet, Items, List,, ComboBox1, WinTitle Loop, Parse, Items, `n MsgBox Item number %A_Index% is %A_LoopField%. But I want to be able to select or ...
by XShayanX
09 Jul 2019, 13:32
Forum: Scripts and Functions
Topic: Move active window to second monitor and back
Replies: 3
Views: 1888

Re: Move active window to second monitor and back

Version 1.1 This version has a bug! use the next post! Changelog: +Changed 80 to 82 for taskbar so to be more fail safe. +Instead of top-left corner of the window, now the top-center is considered into calculations for a better experience. #SingleInstance Force #SC029:: MMPrimDPI := 1.0 ;DPI Scale ...

Go to advanced search