Search found 25 matches

by Rafaews
28 Nov 2023, 13:30
Forum: Ask for Help (v1)
Topic: Scrpit admin run as a user Topic is solved
Replies: 31
Views: 2792

Re: Scrpit admin run as a user Topic is solved

TrebleTA wrote:
02 Apr 2022, 04:58
How do I run a powershell command via ahk?
A bit late but.. for future reference:

Code: Select all

RunWait, %ComSpec% /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "%PowershellScriptFullPath%", "%PowerShellScriptFolder%", ;Hide
by Rafaews
29 Apr 2023, 11:44
Forum: Ask for Help (v1)
Topic: convert common date formats (Excel / FileTime / Unix)
Replies: 3
Views: 2734

Re: convert common date formats (Excel / FileTime / Unix)

If you're getting your time a bit off: - Note: The functions handle UTC, so you may need to add/subtract some hours to adjust for your time zone. My little function that does that: CorrectTimeZone(DateTime) { vTime := A_Now EnvSub, vTime, A_NowUTC, Hours EnvAdd, DateTime, vTime, Hours return DateTim...
by Rafaews
18 Apr 2023, 10:41
Forum: Scripts and Functions (v1)
Topic: Record a WAV file with BASS.dll
Replies: 15
Views: 5214

Re: Record a WAV file with BASS.dll

The reason why this method is unreliable, at least on my system, is that Windows keeps changing the device number of the audio devices. So each time I start a new recording I check what's the device number for my target devices using a string comparison. This is the added code: TargetDevice := "Micr...
by Rafaews
23 Mar 2023, 00:21
Forum: 脚本函数
Topic: AHK源代码加密器 v3.3
Replies: 148
Views: 134135

Re: AHK源代码加密器 v3.3

How does this method compares to compiling using Autohotkey H?

Better or worse?

Image
by Rafaews
07 Mar 2023, 12:48
Forum: AHK Studio
Topic: Error with ahk.xml using AhkStudio
Replies: 1
Views: 1993

Re: Error with ahk.xml using AhkStudio

Anyone has the answer to this❔ I was lucky I have the old version which doesn't have this issue.
by Rafaews
14 Oct 2022, 17:47
Forum: Ask for Help (v1)
Topic: Bass.dll getDeviceInfo structure
Replies: 10
Views: 1657

Re: Bass.dll getDeviceInfo structure

malcev wrote:
14 Oct 2022, 17:36

Code: Select all

loop...
Thank you! I think I found the issue.. I think I misinterpreted the usage of the function.. I was using the call that retrieves info about the 'current recording device'.. But I was trying to get that information before starting the recording. My bad
by Rafaews
14 Oct 2022, 17:03
Forum: Ask for Help (v1)
Topic: Bass.dll getDeviceInfo structure
Replies: 10
Views: 1657

Re: Bass.dll getDeviceInfo structure

malcev wrote:
14 Oct 2022, 16:29
Also pointer to structures should be send as "ptr".
Could you elaborate?
(I tried some brute force variations with "ptr" in every place, btw, no success)
by Rafaews
14 Oct 2022, 15:59
Forum: Ask for Help (v1)
Topic: Bass.dll getDeviceInfo structure
Replies: 10
Views: 1657

Re: Bass.dll getDeviceInfo structure

Using this topic I was able to write a loop to find a specific device number (thank you): Loop { VarSetCapacity(info,16,0) DllCall(BASSDLLPath "\BASS_RecordGetDeviceInfo", UInt, A_Index, UInt, &info) Name := NumGet(info, 0, "ptr") Name := StrGet(Name, "cp0") if (Name = "Microphone (2- Realtek High D...
by Rafaews
16 Apr 2022, 15:24
Forum: Scripts and Functions (v1)
Topic: Record a WAV file with BASS.dll
Replies: 15
Views: 5214

Re: Record a WAV file with BASS.dll

I'm also having problems recording routinely. Unfortunately unreliable.
by Rafaews
28 Jul 2021, 17:15
Forum: Ask for Help (v1)
Topic: XMLHttpRequest() - How to convert/decode ResponseText with latin characters/uncommon encoding?
Replies: 2
Views: 399

Re: XMLHttpRequest() - How to convert/decode ResponseText with latin characters/uncommon encoding?

Solved using:

Code: Select all

out := ""
		responseBody := XHR.ResponseBody
		loop % responseBody.MaxIndex() + 1
			out .= Chr(responseBody[A_Index - 1])
by Rafaews
27 Jul 2021, 20:35
Forum: Ask for Help (v1)
Topic: XMLHttpRequest() - How to convert/decode ResponseText with latin characters/uncommon encoding?
Replies: 2
Views: 399

XMLHttpRequest() - How to convert/decode ResponseText with latin characters/uncommon encoding?

I'm using this code from Joe Glines 's website to connect to an open page on Internet Explorer in order to use its cookies and then get some data: oWindow:=ComObject(9,ComObjQuery(WBGet(),"{332C4427-26CB-11D0-B483-00C04FD90119}","{332C4427-26CB-11D0-B483-00C04FD90119}"),1) xhr := oWindow.XMLHttpRequ...
by Rafaews
09 Dec 2020, 05:22
Forum: Ask for Help (v1)
Topic: Error message compiling AHK 1.1.33.00 Topic is solved
Replies: 11
Views: 3682

Re: Error message compiling AHK 1.1.33.00 Topic is solved

You guys can also download mpress and extract the exe to the ahk compiler folder.
image.png
image.png (12.85 KiB) Viewed 1425 times
by Rafaews
07 Dec 2020, 18:49
Forum: AHK Studio
Topic: AHK Studio
Replies: 1179
Views: 612190

Re: AHK Studio

It will go to download ahk.xml for 10 sec, and then open up the AHK Studio.
I had to go back and use an earlier version. This download every time I would open the program was driving me crazy.
by Rafaews
16 Nov 2020, 10:07
Forum: AHK Studio
Topic: AHK Studio
Replies: 1179
Views: 612190

Re: AHK Studio

I have a little suggestion: Add a tag [Admin] or [User] to AHK Studios' title. I've been using this modification for a while but I just now realized that it might be helpful to other people :'D Because of those problems related to user rights. - If the script is already running with adm, and you try...
by Rafaews
23 Jul 2020, 09:20
Forum: Scripts and Functions (v1)
Topic: [Class] Monitor (Brightness, Contrast, Gamma Ramp)
Replies: 74
Views: 51713

Re: [Class] Monitor (Brightness, Contrast, Gamma Ramp)

@jNizM

Working!

And now I can set the blue to -128 (threshold) increase red and mimic Windows10's native Night Mode ♥

I wonder if that was possible already with your old class.. set up a negative value.
by Rafaews
23 Jul 2020, 07:50
Forum: Scripts and Functions (v1)
Topic: [Class] Monitor (Brightness, Contrast, Gamma Ramp)
Replies: 74
Views: 51713

Re: [Class] Monitor (Brightness, Contrast, Gamma Ramp)

@jNizM

Unfortunately GammaRamp isn't also..

This loop:

Code: Select all

for k, v in this.EnumDisplayMonitors()
returns nothing for %v% when I'm not using the external monitor.
by Rafaews
22 Jul 2020, 16:06
Forum: Scripts and Functions (v1)
Topic: [Class] Monitor (Brightness, Contrast, Gamma Ramp)
Replies: 74
Views: 51713

Re: Class Monitor (Brightness, Contrast, Gamma Ramp)

@jNizM

It's not working on my notebook's native display... But it is working on an Acer external VGA monitor though.
by Rafaews
07 Jul 2020, 05:09
Forum: Ask for Help (v1)
Topic: Any way of changing the Context Menu to a dark theme (Windows 10)
Replies: 0
Views: 594

Any way of changing the Context Menu to a dark theme (Windows 10)

I tried using SetWindowTheme, just in case, on the Context Menu and Main Window's ID, but with no success.

Code: Select all

DllCall("UxTheme.dll\SetWindowTheme", "Ptr", RightClickId, "Str", "Explorer", "Ptr", 0)
I would have to code a Gui from scratch to use something like the native Windows 10's context menu?
by Rafaews
06 Jul 2020, 16:02
Forum: Scripts and Functions (v1)
Topic: [CLASS] MouseTracker - Track mouse on GUIs/Controls
Replies: 11
Views: 3865

Re: [CLASS] MouseTracker - Track mouse on GUIs/Controls

Super cool! But, it doesn't seem to work with Text controls, right? Or am I doing something wrong?

Go to advanced search