Search found 201 matches

by xMaxrayx
Today, 12:28
Forum: Ask for Help (v2)
Topic: how I can share information between methods? Topic is solved
Replies: 1
Views: 69

Re: how I can share information between methods? Topic is solved

ok I was stupid my mistake I didn't declare my class as object for my variable ,idk was stupid to spend 60 minutes for this lol test := musicPlayer() test.start() test := musicPlayer() test.start(str) Sleep(5000) test.close() class musicPlayer { musicPlayer__PID := unset start(path, enableLoop := fa...
by xMaxrayx
Today, 05:38
Forum: Ask for Help (v2)
Topic: how I can share information between methods? Topic is solved
Replies: 1
Views: 69

how I can share information between methods? Topic is solved

I tried to use set => this.musicPlayer__PID := musicPlayer__PID but it dosn't work I want to share musicPlayer__PID class musicPlayer { musicPlayer__PID := unset static Call(path, enableLoop := false, loopTime := 0 ) { musicPlayer__PID := "" if enableLoop == false enableLoop := 0 Run('"musicplayerV1...
by xMaxrayx
Yesterday, 13:08
Forum: Wish List
Topic: A_Downloads might be a nice thing to have at some point.
Replies: 6
Views: 476

Re: A_Downloads might be a nice thing to have at some point.

agree, wish other folders like A_picture A_video exited.
by xMaxrayx
Yesterday, 13:02
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 19
Views: 1933

Re: thqby's AutoHotkey_H v2.0 & v2.1

@xMaxrayx Yes, I also found that ToolTip cannot be closed this way. Can you try this code ? dll["Thread"]("Terminate", true) I saw the author on GitHub mentioned that it's possible to forcibly break the loop, but I tested it and it didn't work. MsgBox also couldn't break the loop. It might be a ver...
by xMaxrayx
Yesterday, 12:21
Forum: Wish List
Topic: add FileWrite function in alpha version
Replies: 9
Views: 978

Re: add FileWrite function in alpha version

ZhuangQu Hi OP if you want middle answer you can use this method and make your additional ahk libraries folder. https://www.autohotkey.com/docs/v2/Scripts.htm#lib https://www.youtube.com/watch?v=nFnMiVAjkv4&list=PLQBdjw2QsRzNTsSemXv-xqcIDx9-X3vMS&index=30 then if you are using the vscode you can ma...
by xMaxrayx
Yesterday, 11:55
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 19
Views: 1933

Re: thqby's AutoHotkey_H v2.0 & v2.1

I found this error maybe interesting code : string1:=" ( SoundPlay("C:\Users\Max_Laptop\Documents\Audacity\waiting for a window.wav",1) )" dll1:= Worker(string1 ) Sleep(1) dll1.ExitApp() Sleep(500) dll1.Reload() dll1:=Worker(string1) error : Error: (0x80010012) The callee (server [not server applica...
by xMaxrayx
Yesterday, 11:14
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 19
Views: 1933

Re: thqby's AutoHotkey_H v2.0 & v2.1

can you tell me how did use ahkpause? according to this doc https://hotkeyit.github.io/v1/docs/commands/ahkPause.htm my code (i added 64dll) dllpath:=A_AhkDir "\AutoHotkey64.dll" DllCall("LoadLibrary","Str",dllpath) ; Load the AutoHotkey module. ThreadID:=DllCall(dllpath "\NewThread","Str"," ( Persi...
by xMaxrayx
Yesterday, 10:50
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 19
Views: 1933

Re: thqby's AutoHotkey_H v2.0 & v2.1

Ok i found it close the msgbox but not with loop and soundplay script:= (" ( MsgBox "lol" SoundPlay("C:\Users\Max_Laptop\Documents\Audacity\waiting for a window.wav" , 1) OnExit ExitFunc ExitFunc(*){ MsgBox 'good bey' } )") ; Worker(0,script,"sss") L := worker(script,,"pizaa" ) Sleep(500) L.ExitApp(...
by xMaxrayx
Yesterday, 10:31
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 19
Views: 1933

Re: thqby's AutoHotkey_H v2.0 & v2.1

Ok I found something weird if the thread closed it will close the Msgbox but not with tooltip. maybe it's a bug script:= (" ( MsgBox 'hello from another thread' i := 1 while i != 0 { ToolTip '<3' } )") ; Worker(0,script,"sss") L := worker(script,,"ss" ) Sleep(500) L.ExitApp() ; it close the 'hello f...
by xMaxrayx
Yesterday, 10:10
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 19
Views: 1933

Re: thqby's AutoHotkey_H v2.0 & v2.1

@xMaxrayx Sorry, I don't know how to reply to your private message. I can now use multithreading, but I'm having an issue with the terminate function. For now, I've used ahkPause as a substitute, and the script runs fine. I see many thanks, im not good with AHK-H but I found "ExitApp" method with c...
by xMaxrayx
Yesterday, 05:03
Forum: Ask for Help (v2)
Topic: best way to escape  := ('‎‎   ? Topic is solved
Replies: 3
Views: 153

Re: best way to escape  := ('‎‎   ? Topic is solved

@Seven0528

I see many thanks for your example <3
by xMaxrayx
Yesterday, 04:07
Forum: Ask for Help (v2)
Topic: best way to escape  := ('‎‎   ? Topic is solved
Replies: 3
Views: 153

best way to escape  := ('‎‎   ? Topic is solved

Hi what is best way to escape (' and what this combo called? (' ( )' ) why they looks wired and why the next one not accepted? (' ( ) ') Script := (' ( SoundPlay('" path "' ,1) Msgbox("Hi again") Msgbox("and again Hi") )') I want insert path as variable (in first line) what best way to approach?
by xMaxrayx
Yesterday, 03:41
Forum: Ask for Help (v2)
Topic: How I run another AHK script from another AHK script
Replies: 10
Views: 1992

Re: How I run another AHK script from another AHK script

That * asterik is not meant for a file name, it is meant to execute a given code as a new process without the need to create an ahk script. If you like to run a new ahk script, you just use Run (Path/To/Your/New/Script) in the case that AutoHotkey is installed on your system. I see thank you , I fo...
by xMaxrayx
Yesterday, 03:19
Forum: General Discussion
Topic: How many have Spinning HDs vs SSDs?
Replies: 13
Views: 640

Re: How many have Spinning HDs vs SSDs?

depends on my setup currently my laptop only 2 SSD because of its how is, *SSD 1TP for system and spammy-files app (like games and main software that need to be updated consistently *SSD 2TP for stuff that doesn't need to be changed. *HDD 1tp for spammy stuff *HDD 4tp for backup and some youtube cha...
by xMaxrayx
14 May 2024, 10:30
Forum: Ask for Help (v2)
Topic: Script wanted
Replies: 7
Views: 326

Re: Script wanted

man some topics are sus.
by xMaxrayx
14 May 2024, 03:17
Forum: AutoHotkey_H
Topic: NOOB guide on how to use H ? Topic is solved
Replies: 14
Views: 8697

Re: NOOB guide on how to use H ? Topic is solved

anyone have backup of v2 version?

edit : ok i found it
by xMaxrayx
14 May 2024, 03:08
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 19
Views: 1933

Re: thqby's AutoHotkey_H v2.0 & v2.1

idk if you can use normal newthread object but i found this

Code: Select all


myvar := 50

Script := "
(
	MsgBox Worker(A_MainThreadID)['myvar']
)"
Worker(Script)
MsgBox "end"

source := https://github.com/thqby/AutoHotkey_H/issues/74
by xMaxrayx
13 May 2024, 02:04
Forum: Ask for Help (v2)
Topic: String Manipulation between ^ and /
Replies: 22
Views: 1074

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: 139

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: 235

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 ...

Go to advanced search