I want it to save a text on the clipboard as a text document directly to the location open in 'exploler.exe' when shift + v is done. I can get the name of the open file, but not the full address.
returnValue = getClipboardData()
activeWindow = getActiveWindowName()
openWindowIsFolder = False
if activeWindow == "explorer.exe":
openWindowIsFolder = True
openWindowsFolderName = getActiveWindowTitle()
if type(returnValue) == str:
if openWindowIsFolder:
# if open windows name == exploler.exe
# String to text file.
# ????????\{openWindowsFolderName}\saveHere.txt
# ^
# ||
#how can i get previous from this location
print('str to file')
else:
pressCtrlV()