Autohotkey: How to change a file name and save the file as Excel downloaded from a website? - autohotkey

I'm a novide starting to learn Autohotkey. I clicked Excel file download from a webpage and then the save as window will pop up to set a file name and location. However the autohotkey doesnt work to click the 'Save as'. Also, how to WinMaximize in the current URL?
WindowMaximize in the current URL
Click download from a webpage and save as an Excel in a local directory

Related

SFTP upload vs save issue

is there any option to set case sensitive file saving?
My issue is when I press Ctrl+S, it saves and uploads to server but lower-case only, but when I upload it by right click -> Upload, it uploads correctly.
Image about file explorer
Any Idea?

How to log file data onclick on vscode workspace using onDidChangeSelection event

I want to get file data on file click on workspace.
For example I have todo-list project folder and a file named app.js. I want to log app.jss' vscode metadata in debug console on file click in tree-view workspace.
todo-list > app.js
Upon searching in docs, I saw onDidChangeSelection event. I want to use the event and see if I can log any data on file selection in tree-view.
onDidChangeSelection: Event<TreeViewSelectionChangeEvent<T>>
Can anyone please help me on how to use onDidChangeSelection event? I already tried scanning vscode.window and vscode.TreeItem and still can't find the event.
And if anyone had already tried logging file data on file click in tree view, what vscode event/api did you use?

Opening OneDrive file in desktop Word

I'm trying to open a file for edit from Office365's OneDrive in desktop version of Word(I'm logged in with my Office 365 account) using ms-word protocol and I have noticed that there are several possibilities:
Sometimes file opens in edit mode, I can edit file and by pressing Ctrl + S save it directly to OneDrive without being prompted for any additional actions.
Sometimes file opens in Read Only mode, I can switch to Editor mode, but then when I try to save file I'm prompted to specify save location(default location is my OneDrive directory with this file).
Sometimes Word asks me to login to my Office365 account(even though I'm logged in with this account in Word), then opens file in Read Only mode and after it looks like 2nd case.
I would like to open it as described in 1st case so user doesn't have to make any additional actions.
My current scenario is:
User calls an API to create file.
API creates file in user's OneDrive using Microsoft Graph.
API returns direct URL to file and I open this file in Word using ms-word protocol.
By direct URL to file I mean: https://domain-my.sharepoint.com/personal/account/Documents/Apps/Microsoft Graph/appname/directoryname/filename.docx
URL to open file looks like:
ms-word:ofe|u|<file path specified above>
And as I described at the beginning there are 3 cases how file is opened and it looks randomly for me.
I have also noticed that when I open my file in Word Online(using web url to file) and then I press Edit in Word it uses exactly the same file URL I have created and returned to user but from here the file always open with 1st scenario.
Do you have any ideas why this behaves differently when I manually open file using ms-word protocol compared to Word Online using ms-word protocol with exactly the same url?
I would like to always open file from user's OneDrive in desktop Word in scenario when user doesn't have to make any additional steps to edit and save file back to OneDrive.
(I don't have reputation so I can't comment. I will try again with a partial answer.)
There is always a chance that the credentials will have to be refreshed, so there is no way to completely prevent Office apps from prompting for credentials but it should be relatively uncommon.
As to the issue of opening in edit mode vs protected mode: There are a variety of reasons why some files will open into protected view: https://support.office.com/en-us/article/What-is-Protected-View-d6f09ac7-e6b9-4495-8e43-2bbcdbcb6653
If you have a file that seemingly opens in edit mode vs some version of readonly or protected view, please use answers.microsoft.com where the conversation doesn't have to fit into the stackoverflow model.
when I open my file in Word Online(using web url to file) and then I press Edit in Word it uses exactly the same file URL
You suggest that the URLs are identical, but my first thought was that the difference may have been that the Word Online link uses the driveItem's webDavUrl property rather than baseItem's webUrl
https://learn.microsoft.com/en-us/onedrive/developer/rest-api/resources/driveitem#json-representation

Using standard file dialogs within Access

I am trying to make a browse / export button in Access 2003. What I need is a command button that will allow me to browse for any file located on the computer using the standard file open dialog. Once the file has been located, I need a button to export that file to a specific location on a drive (S:\eDNA\admin\eDNA\Engine Data).
What you really want to do is copy a file from your local drive to a network drive, not export it. In order to do that, add this to your code:
Dim fso As Object
Set fso = VBA.CreateObject("Scripting.FileSystemObject")
Then you could use
fso.CopyFile(source, destination[, overwrite] )
You should be able to capture both the source and the destination from the Standard Dialogue forms.

JavaScript to browse for folder and save full path into field

In PDF form I would like to click a button, browse for folder and save the selected folder path into a text field (preferably with link if possible). Is it possible or not (probably for security reasons...)?
Browser based javascript has only sandboxed access to the filesystem for security reasons.
Don't waste your time; you'll not be able to get the selected folder.