Search found 5 matches

by tuangd
14 Oct 2022, 11:27
Forum: Scripts and Functions (v1)
Topic: Get current keyboard layout
Replies: 12
Views: 6494

Re: Get current keyboard layout

XShayanX wrote:
14 Oct 2022, 09:32
Hello! @tuangd

Here you go:
https://github.com/Saya47/GetKeyboardLayout
Thank you so much!!!
by tuangd
13 Oct 2022, 00:23
Forum: Scripts and Functions (v1)
Topic: Get current keyboard layout
Replies: 12
Views: 6494

Re: Get current keyboard layout

Hello @tuangd My main laptop which runs Windows died a week ago, I'm currently on a Linux machine and can't check this for you but you can check it yourself, if you check Spy++ which comes with Visual Studio, if I remember correctly the ahk_class WorkerW is the parent window of all windows, so it's...
by tuangd
10 Oct 2022, 09:59
Forum: Scripts and Functions (v1)
Topic: Get current keyboard layout
Replies: 12
Views: 6494

Re: Get current keyboard layout

SMH! I spent so much time on this and I was wrong, my script shows the previous layout ID and only on the second try of the hotkey it will show the current layout id. One important thing I learnt: DllCalls are Case Sensitive, for example I was trying to get ThreadID for explorer.exe and it would al...
by tuangd
23 Sep 2022, 03:51
Forum: Ask for Help (v1)
Topic: Variable is not set somehow Topic is solved
Replies: 2
Views: 322

Re: Variable is not set somehow Topic is solved

lexikos wrote:
23 Sep 2022, 03:30
My educated guess is that this code is part of a larger script, and NewWheelSpeed := 10 is not in the auto-execute section.
Yes! Thank you so much. You are correct. I moved the variable assign lines on top of everything and it's now working.
Cheers!!! :dance:
by tuangd
23 Sep 2022, 02:46
Forum: Ask for Help (v1)
Topic: Variable is not set somehow Topic is solved
Replies: 2
Views: 322

Variable is not set somehow Topic is solved

I have this script to toggle the mouse wheel speed between the normal speed and the new speed. (I am testing the script with only the WheelUp for now.) NewWheelSpeed := 10 toggle := False F18::toggle:=!toggle WheelUp:: If (toggle) SendInput, {WheelUp, %NewWheelSpeed%} Else SendInput, {WheelUp} Retur...

Go to advanced search