Search found 184 matches

by xMaxrayx
Yesterday, 02:04
Forum: Ask for Help (v2)
Topic: String Manipulation between ^ and /
Replies: 19
Views: 815

Re: String Manipulation between ^ and /

if you want learn regex which is used a lot with other programming languages for text you can use regex101.

https://regex101.com
https://regexlearn.com
by xMaxrayx
11 May 2024, 10:02
Forum: Ask for Help (v2)
Topic: how to store screenshot in a variable, then paste it later?
Replies: 4
Views: 118

Re: how to store screenshot in a variable, then paste it later?

idk if autohotkey support binary data as variable like python, as I know it's just straight string type variables if you want use python you can do this (if the screenshot saved in clipboard) clipboard_image = ImageGrab.grabclipboard() you need to import PIL, then you can have some libraries if you ...
by xMaxrayx
11 May 2024, 08:19
Forum: Ask for Help (v2)
Topic: How to send website URL to clipboard besides showing a Msgbox
Replies: 3
Views: 225

Re: How to send website URL to clipboard besides showing a Msgbox

ok I have test the script it works in chrome but idk why it failed with vavilda? it's reporting this with all website chrome url get test.ahk --------------------------- chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html --------------------------- OK --------------------------- anyway ...
by xMaxrayx
11 May 2024, 08:14
Forum: Ask for Help (v2)
Topic: How to send website URL to clipboard besides showing a Msgbox
Replies: 3
Views: 225

Re: How to send website URL to clipboard besides showing a Msgbox

are using chrome? no way you can get the url title with default settings , in my case I use "URL to title addo" then I do regex clean operation to get the url from title. I use this addon work well in chrome and Vivaldi https://chromewebstore.google.com/detail/add-url-to-window-title/ndiaggkadcioihm...
by xMaxrayx
09 May 2024, 10:29
Forum: Ask for Help (v1)
Topic: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2
Replies: 21
Views: 4823

Re: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2

Rohwedder wrote:
09 May 2024, 09:07
Hallo,
no! There is no such thing as q & w & e:: in any Autohotkey.
Hi, thanks for answer <3,oh I see sad, hope AHKv3 will support it.
by xMaxrayx
09 May 2024, 07:38
Forum: AutoHotkey_H
Topic: How I can use AHK_H?
Replies: 1
Views: 124

Re: How I can use AHK_H?

Ok I found this it has auotohotkey.dll

https://github.com/thqby/AutoHotkey_H
by xMaxrayx
09 May 2024, 05:47
Forum: AutoHotkey_H
Topic: How I can use AHK_H?
Replies: 1
Views: 124

How I can use AHK_H?

I downloaded it but I didn't find any install.exe, I didn't find the autohotkey.dll thing only theses files d----- 5/9/2024 12:25 PM docs -a---- 5/9/2024 12:25 PM 35 .gitignore -a---- 5/9/2024 12:25 PM 0 .nojekyll -a---- 5/9/2024 12:25 PM 98 CodeBox Template.txt -a---- 5/9/2024 12:25 PM 1078 compile...
by xMaxrayx
09 May 2024, 05:15
Forum: Ask for Help (v1)
Topic: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2
Replies: 21
Views: 4823

Re: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2

does any of them support 3-4 multi-key combinations? I know it can be done with vanilla AHK but the code file will look messy.
by xMaxrayx
08 May 2024, 02:40
Forum: Ask for Help (v2)
Topic: run command line as admin
Replies: 15
Views: 934

Re: run command line as admin

Powershell may not treated nice unless you allow it in windows. my suggestion is make a bat/powershell script file and the AHK hotkey just normal command to run that script, it's slower and look not nice but it always work. and you can add Admin-right checker to that bat/ps1 script. make sure that "...
by xMaxrayx
07 May 2024, 04:01
Forum: Ask for Help (v2)
Topic: Can't Hide "Microsoft To do" APP (ahk_exe ApplicationFrameHost.exe)
Replies: 1
Views: 152

Re: Can't Hide "Microsoft To do" APP (ahk_exe ApplicationFrameHost.exe)

OK i found that process Explorer can detect it as .EXE
image.png
image.png (252.64 KiB) Viewed 130 times
\

Code: Select all

Todo.exe	113,660 K	133,056 K	25648	Microsoft To Do	Microsoft	"C:\Program Files\WindowsApps\Microsoft.Todos_2.114.7122.0_x64__8wekyb3d8bbwe\Todo.exe" -ServerName:App.AppXfda2ecmmv7vpeq0mkwrj7mkgkg8efffm.mca				AppContainer
by xMaxrayx
07 May 2024, 03:40
Forum: Ask for Help (v2)
Topic: Manipulate PDF
Replies: 9
Views: 795

Re: Manipulate PDF

I did it with .ahk and using Sumatrapdf to print and pdftk to merge the PDFs. Thank you for your help. But I don't understand Python very well. The good thing about ahk is that it is possible to compile to .exe, I don't know if it is possible in Python. The only thing missing was a good option to j...
by xMaxrayx
07 May 2024, 03:28
Forum: Ask for Help (v2)
Topic: Can't Hide "Microsoft To do" APP (ahk_exe ApplicationFrameHost.exe)
Replies: 1
Views: 152

Can't Hide "Microsoft To do" APP (ahk_exe ApplicationFrameHost.exe)

Hi, I wonder why I can't hide " Microsoft To do" APP properly? will it actually hide the window but some the Icon still displayed on taskbar? I though it's Win11 thing but I test it again with the default notepad app and it's hidden normally I noticed with windowspy tool that "To do APP" not fully d...
by xMaxrayx
30 Apr 2024, 10:33
Forum: Ask for Help (v2)
Topic: How to perfom native action when condition is false in v2. "ctrl + a" for example.
Replies: 4
Views: 319

Re: How to perfom native action when condition is false in v2. "ctrl + a" for example.

Code: Select all

#Requires AutoHotkey v2.0
#SingleInstance Force


$^a:: {

    if WinActive("ahk_exe chrome.exe") {
        Msgbox("hello")
    } 
    else {
        ; ; MsgBox "n0"
        ; SendInput("{" A_MenuMaskKey "}" )
        SendInput("{Ctrl Down}a{Ctrl up}")

    } 
}


by xMaxrayx
30 Apr 2024, 10:32
Forum: Ask for Help (v2)
Topic: How to perfom native action when condition is false in v2. "ctrl + a" for example.
Replies: 4
Views: 319

Re: How to perfom native action when condition is false in v2. "ctrl + a" for example.

@alawsareps

Code: Select all


LCtrl & a:: {

    if WinActive("ahk_exe chrome.exe") {
        Msgbox("hello")
    } 
    else {
        SendInput("{Ctrl Down}a{Ctrl up}")

    } 
}

by xMaxrayx
30 Apr 2024, 10:15
Forum: Ask for Help (v2)
Topic: Manipulate PDF
Replies: 9
Views: 795

Re: Manipulate PDF

if you have heavy work and not merge you better use Python if you want an easier approach because of its library,

in AHK you just need to use an external app or libraries, so you can use RUN ,COM ,DLL command.
by xMaxrayx
30 Apr 2024, 10:11
Forum: Ask for Help (v2)
Topic: Send vs SendText vs SendInput for text input?
Replies: 2
Views: 339

Re: Send vs SendText vs SendInput for text input?

@slishnevsky
if you have a huge text wall you better use A_clipboard method because its faster and has no erorr, sendinput is good for mimicking the keyboard, especially triggering the program's functions by keyboard shortcuts.
by xMaxrayx
28 Apr 2024, 11:41
Forum: Ask for Help (v2)
Topic: combine more than one switch case? Topic is solved
Replies: 5
Views: 454

Re: combine more than one switch case? Topic is solved

#Requires AutoHotkey v2.0 #SingleInstance Force var := "0x0003" ; A. switch (var) { default: case 1: case 2: case 3,4: msgbox var } ; B. switch { default: case (var==1): case (var==2): case (var==3||var==4): msgbox var } ; C. switch (var) { case 1: case 2: default: switch { case (format("{:d}",var)...
by xMaxrayx
28 Apr 2024, 11:38
Forum: Ask for Help (v2)
Topic: combine more than one switch case? Topic is solved
Replies: 5
Views: 454

Re: combine more than one switch case? Topic is solved

Each case may list up to 20 values. Each value must be an expression , but can be a simple one such as a literal number, quoted string or variable. Source: Switch - Syntax & Usage | AutoHotkey v2 Any expression is fine. I'm puzzled about why you want to ask this question instead of testing your ide...
by xMaxrayx
27 Apr 2024, 14:15
Forum: Ask for Help (v2)
Topic: combine more than one switch case? Topic is solved
Replies: 5
Views: 454

combine more than one switch case? Topic is solved

Hi, in if statment you can add logical || and && is a possible to do something similar with switch statement? I don't want re-write the same code or write outside function case 1 && 2 : msgbox and if not can I make case 3 do the same thing with case 4 without copy-paste codde or writing a function? ...
by xMaxrayx
27 Apr 2024, 03:51
Forum: Ask for Help (v2)
Topic: Disable left windows key on Windows 11 with AHK 2 beta 3
Replies: 15
Views: 4384

Re: Disable left windows key on Windows 11 with AHK 2 beta 3

Ok I did this it uses inputhock to deny AHK default behavior for {"Lwin -release"} change the default shortcut with "switch" cases you can see the switch with "r", you need to same with every shortcut you want, and if you don't it will return the key. switch winKeyCombo { case "r": SendInput "{Lwin ...

Go to advanced search