Im looking to send a key press to a background application using AppleScript modules within a keyboard maestro macro. I would like one module to send key down to app and another module to release the key to background application.
I have tried keyboard maestro built in functionality to do this, I have read elsewhere about AppleScript features which seem to allow this functionality but im not very advanced with AppleScript so some help would be appreciated!
Related
I am trying add a custom tab in office 365 Word in the ribbon. There are countless examples of how to do this in VSTO that I can find, but no code example of this in Office 365 AddIn web project.
Closest thing I found is this documentation below. This is also lacking any proper coding sample. Also, this was writting in July 2022.
https://learn.microsoft.com/en-us/javascript/api/manifest/customtab?view=powerpoint-js-preview
From this link below, I can tell that adding a tab is allowed in Office 365, but the coding samples are from 6 to 7 years ago.
https://github.com/OfficeDev/Office-Add-in-Commands
There is also this video tutorial and similar ones like this - but this doesn't show adding new tab.
https://www.youtube.com/watch?v=ZWw-fJ7eldU
There are samples that show how to make Task Pane project. But not for add a custom tab in the ribbon and then add a menu inside it.
Am I missing something? Does office 365 web project allow for adding custom tab? If so, can someone point me to a sample coding project or a video tutorial that shows this?
The ribbon UI extensibility features in web add-ins are still limited comparing to Office COM add-ins, but with a time MS adds features such as contextual tabs support, position on the ribbon (preview), enabled/disabled state, integration of built-in controls. Read more about all that features in the Add-in commands for Excel, PowerPoint, and Word article.
There are two types of add-in commands, based on the kind of action that the command triggers.
Task pane commands: The button or menu item opens the add-in's task pane. You add this kind of add-in command with markup in the manifest. The "code behind" the command is provided by Office.
Function commands: The button or menu item runs any arbitrary JavaScript. The code almost always calls APIs in the Office JavaScript Library, but it doesn't have to. This type of add-in typically displays no UI other than the button or menu item itself. Note the following about function commands:
The function that is triggered can call the displayDialogAsync method to show a dialog, which is a good way to display an error, show progress, or prompt for input from the user. If the add-in is configured to use a shared runtime, the function can also call the showAsTaskpane method.
The runtime in which the function command runs is a full browser-based runtime. It can render HTML and call out to the Internet to send or get data.
Use VersionOverrides in your manifest to define add-in commands for Excel, PowerPoint, and Word. Add-in commands provide an easy way to customize the default Office user interface (UI) with specified UI elements that perform actions. See Create add-in commands in your manifest for Excel, PowerPoint, and Word.
So, I'm working on a pretty simple project right now where I need to use speech recognition to access the functions of a website.
I made a simple website with just 6 buttons(menu, options, settings, etc.) and I trained a model to recognize these 6 words. Now I need to link the Pycharm script to the website and because I'm very limited in JavaScript I'm stuck at this step.
I created a button that works exactly like an audio recorder, after I press the button it records what I say and then I can download the output manually. But I want it to download automatically and then send the recording as an input to my script.
If anyone has any ideas on how to do it or if you think that I approached it the wrong way please tell me.
Thank you!
I'm creating an iOS app and I want to show the user their installed apps. When user clicks on an app in the list, if it's a messaging/social media app, then I want to show the latest messages.
So far I've found how to get other data from iCloud but not the data I'm looking for.
I've found this pyicloud Python module, and this JS project.
I'm wondering if there's an open-source project, or library on this matter.
Any thoughts on the matter would be much appreciated.
I'm open to ideas and solutions in any language it's available in, but would prefer Python or Javascript.
I need a way to allow a user to open an application on their machine (example: Photoshop) via a button on my website.
More specifically... something to the effect of running via the command line.. c:\Photoshop\run.exe some args OR open /Applications/Photoshop.app some args
Understanding the risks, security issues this raises and seeing how javascript is unable to access the users local file system. To add this
Im starting to explore a way to perhaps have a DLL or browser extension dynamically add this trigger/button that will in turn open/execute this application. Where the user can install something locally to do this.
Im looking for a general idea of how I can achieve this... what combination of programming language.. protocol.. any hints...
Currently I am trying to develop a little Firefox extension.
In detail: i want to display users from the site dota2lounge.com the current prize of their steam items on the steam community market. My idea was to do this via a Firefox extension which reads the item names from the HTML code on dota2lounge.com . Via JS i would like to search the steam community market for the item names and parse the current prize. This should happen without any further action from the user and without opening extra tabs/windows.
In java i would just load the site into a variable and work with it. How could i do this with JS (or Jquery)? Or maybe there is an even better way in the addon-sdk from firefox which could solve this issue.
Any thoughts and hints are welcome.
This should be pretty simple to do using the Add-on SDK. Here is a list of modules you should look at:
the request module will allow you to make requests to other sites: https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/request
while the request module is fine, what you may want to do instead to get info from the steam site is use the page-worker module to load the site and easily extract info from it using jQuery. This is much nicer than using regex. The code would look something like this gist:
https://gist.github.com/canuckistani/6c299c812bbe582d9efb