Code: Select all
NumpadUp::
Run, D:\Batch Fles\File Explorer Restart.bat
Return
Code: Select all
NumpadUp::
Run, D:\Batch Fles\File Explorer Restart.bat
Return
Code: Select all
NumpadUp::
Send, {Click 2},"D:\Batch Fles\File Explorer Restart.bat"
Return
Code: Select all
NumpadUp::
Run %comspec% /c "D:\Batch Fles\File Explorer Restart.bat"
Return
What is suppose to happen? IOW... what happens when you double-click the file manually? Can we look at the batch file? It sounds like it ran, just not giving you the expected results?
Code: Select all
NumpadUp::
Run *RunAs %comspec% /c "D:\Batch Fles\File Explorer Restart.bat"
Return
There is, but it would have to know the position of the batch file on screen to move the mouse to it and double-clickIf there was just awy to make ahk click twice to open bat file
Code: Select all
taskkill /f /im explorer.exe
start explorer.exe
exit
Code: Select all
Run, taskkill /f /im explorer.exe
Sleep 5000
Run, explorer.exe
exit
Code: Select all
NumpadUp:: ;Numpad8
Run, "C:\Users\Jr\Desktop\File Explorer Restart.exe"
Return
Code: Select all
run, %ComSpec% /c "taskkill /f /im explorer.exe"
sleep, 500
run, %ComSpec% /c "start explorer.exe"
Users browsing this forum: Chunjee, mstrauss2021 and 270 guests