Page 1 of 1
I need help opening a script using another script with a GUI.
Posted: 05 Oct 2022, 13:52
by LAPIII
Here is what I have:
Code: Select all
#SingleInstance, Force
Path = C:\Users\LPIII\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Gui, Add, Text, gLink1, Link #1
Link1:
Run, Upload Image.ahk, %vPath%
return
Re: I need help opening a script using another script with a GUI.
Posted: 11 Oct 2022, 18:13
by LAPIII
BUMP
Re: I need help opening a script using another script with a GUI.
Posted: 12 Oct 2022, 01:56
by Rohwedder
Hallo,
try:
Code: Select all
#SingleInstance, Force
Path = C:\Users\LPIII\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Gui, Add, Text, gLink1, Link #1
Gui, Show
Return
Link1:
Run, Upload Image.ahk, %Path%
return
Re: I need help opening a script using another script with a GUI.
Posted: 12 Oct 2022, 14:02
by LAPIII
Thank you, the path didn't work so I taped it to the path to my folder with shortcuts and it worked. Do you know why?
I also can't explain why if, in line 3, I change Link1 to PostImages like so:
Code: Select all
#SingleInstance, Force
Path = C:\Users\LPIII\Desktop\In Startup Folder
Gui, Add, Text, gLink1, PostImages
Gui, Show
Return
Link1:
Run, Upload Image.ahk, %vPath%
Return
I get:
- TEST.ahk 13-10-2022 12⦂01⦂27⦂519 AM.jpg (31.67 KiB) Viewed 303 times
Re: I need help opening a script using another script with a GUI.
Posted: 13 Oct 2022, 00:52
by Rohwedder
Which path is right, you have to know! But why don't you try my correction?:
Re: I need help opening a script using another script with a GUI. Topic is solved
Posted: 13 Oct 2022, 09:21
by LAPIII
Thank you very much @Rohwedder. I completely missed that correction.