Today I tried to make a script that runs a vbs file and then moves it to a position, but it does not move the file, and does nothing about it. When I run my file, the vbs file just stays where it was and the script just quits.
Thanks for any help you could include.
Code: Select all
FileAppend,
(
X=Msgbox("Hello"), 0x16, ("Hello")
), vbsFile.vbs
run, vbsFile.vbs
random, x, 1, 1000
random, y, 1, 1000
WinMove, ahk_exe wscript.exe, %x%, %y% ; I checked and it is wscript.exe.
Code: Select all
WinMove, ahk_exe wscript.exe, %x%, %y%
Any help would be appreciated.