Search found 13 matches

by AladdinMhemed
03 Apr 2024, 07:23
Forum: Ask for Help (v2)
Topic: console.log last word Topic is solved
Replies: 3
Views: 170

Re: console.log last word Topic is solved

@Rohwedder
Thank you so much.
by AladdinMhemed
30 Mar 2024, 17:33
Forum: Ask for Help (v2)
Topic: console.log last word Topic is solved
Replies: 3
Views: 170

console.log last word Topic is solved

I am trying to create an ahk that does the following if I type Report.log it replaces it with console.log("Report" , Report); I thought it would be straightforward, but I ended up with a complicated code, that works but with issues, For example if I am writing a long Variable name like InitialReport...
by AladdinMhemed
25 Feb 2024, 00:48
Forum: Scripts and Functions (v2)
Topic: RegExHotstring - dynamic RegEx Hotstrings
Replies: 79
Views: 11085

Re: RegExHotstring - dynamic RegEx Hotstrings

is there an option to cancel the replacement on a condition in the callback? for example rand(match) { if (match[0] != 'aaa') { ; cancel and don't replace and return } static char := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" static char_len := StrLen(char) loop match[1] { r :=...
by AladdinMhemed
24 Feb 2024, 12:26
Forum: Ask for Help (v2)
Topic: dynamic hotstring Topic is solved
Replies: 6
Views: 204

Re: dynamic hotstring Topic is solved

thqby wrote:
24 Feb 2024, 10:23
Use v2.1-alpha.8 and then remove =>.
Or separating the anonymous fat arrow function as a nested function.
Thanks you, I tried "Use v2.1-alpha.8 and then remove =>"
but it still not working
it says unexpected "{"
by AladdinMhemed
24 Feb 2024, 03:15
Forum: Ask for Help (v2)
Topic: dynamic hotstring Topic is solved
Replies: 6
Views: 204

Re: dynamic hotstring Topic is solved

This might help... https://www.autohotkey.com/boards/viewtopic.php?f=83&t=104637 #Include RegExHotstring.ahk #SingleInstance Force RegExHotstring("r(\d+)", rand) rand(match) { static char := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" static char_len := StrLen(char) loop match[...
by AladdinMhemed
24 Feb 2024, 00:01
Forum: Ask for Help (v2)
Topic: dynamic hotstring Topic is solved
Replies: 6
Views: 204

dynamic hotstring Topic is solved

Hi,
I want to write a dynamic hotstring trigger
like if I type aaaaa[n] then I can run a function that has aaaaa[n] as input, where [n] is a number
is this possible in v2?

Thanks
by AladdinMhemed
24 May 2023, 09:09
Forum: Ask for Help (v1)
Topic: Assigning Arrow Key Functionality to Alt+[Key] in AutoHotkey Topic is solved
Replies: 5
Views: 572

Re: Assigning Arrow Key Functionality to Alt+[Key] in AutoHotkey Topic is solved

Thank you @Rohwedder

Code: Select all

<!j::send {Left} ;left Alt + J 
works as expected,

What does `<` do?
also `$`?

Thanks
by AladdinMhemed
22 May 2023, 17:16
Forum: Ask for Help (v1)
Topic: Assigning Arrow Key Functionality to Alt+[Key] in AutoHotkey Topic is solved
Replies: 5
Views: 572

Assigning Arrow Key Functionality to Alt+[Key] in AutoHotkey Topic is solved

I am trying to map the functionality of arrow keys to `Alt+J`, `Alt+I`, `Alt+;`, and `Alt+K` using AutoHotkey. The idea is to enable cursor navigation within text without moving my hand from its resting position on the keyboard. I am currently using the following script to achieve this: !j:: send {L...
by AladdinMhemed
20 Feb 2021, 20:16
Forum: Ask for Help (v1)
Topic: disable Ctrl and w and wheelup/down Topic is solved
Replies: 5
Views: 375

Re: disable Ctrl and w and wheelup/down Topic is solved

sorry,
when I press ctrl+w+wheelp up/down browser zooms in/out, I want to disable this, so when I press ctrl+w+wheel up/down I want nothing to happen
by AladdinMhemed
20 Feb 2021, 19:22
Forum: Ask for Help (v1)
Topic: disable Ctrl and w and wheelup/down Topic is solved
Replies: 5
Views: 375

Re: disable Ctrl and w and wheelup/down Topic is solved

Actually this disables ctrl+w and also disables wheel up/down
What I really need is that I disable the combination of them together, while keeping each one of them alone working.
by AladdinMhemed
15 Feb 2021, 18:41
Forum: Ask for Help (v1)
Topic: disable Ctrl and w and wheelup/down Topic is solved
Replies: 5
Views: 375

disable Ctrl and w and wheelup/down Topic is solved

Hi,
I've been trying to disable ctrl and w together with wheelu/down
please help,
thanks
by AladdinMhemed
09 Jan 2019, 17:01
Forum: Ask for Help (v1)
Topic: win shift ; to shift right with hold
Replies: 1
Views: 548

win shift ; to shift right with hold

I could do #;:: send {Right} to map (win ; ) to (right) Also I could get #+;:: send {LShift down}{Right down}{Right up}{LShift up} to map (win shift ; ) to (shift right) but when I do (win shift ; ) with hold it gives wrong behavior. The expected behavior is when holding win and shift and ; it start...

Go to advanced search