Accessing applications using python - keyboard

So I want to write a code that can change my keyboard's backlit color according to the time of the day
I have an asus rog strix laptop and want python to use ROG aura core(application which can configure the keyboard's backlit color) to change my keyboard's color. The problem I have run into is that I don't know where the application is located and how to allow my code to make changes in it

I don't think that it is possible for you to change the backlight settings of your keyboard using code... ASUS ROG Aura Core application is a propriety solution and hence, you can't access its code base to make desired changes...
The only way that this might be possible is if the devs at ASUS have released an API that allows you to modify the settings...
After searching the Internet, I did find that ASUS has recently released an Aura SDK that might do the trick... But, after reading the documentation and looking at some repositories at GitHub, I believe that this SDK is built for PC custom builders... And, I believe that you will need to use either C++/C# to code in it...
So, Python is of no use here...
Click the link to visit the Asus Aura SDK Official Site
Tip: You have used the wrong tag in this question... The ideal tag to be used here should have been 'Asus', 'aura-core'...

Related

starting from a cics program, is it possible to give an instruction (with a specific url) to open a web browser page?

My problem is that I have been asked to insert an instruction into a cics program that it can open a web page using a specific url.
Is it possible to give this kind of instruction ?
If yes, can you show me example code ?
Please notice that the program runs on a cics simulator called 'Unikix', which is installed on linux server with an old RedHat distribution still 32bit.
The cics program, in which I have to insert this instruction, is written in Cobol language and it is compiled using Microfocus compiler.
Is it possible? Yes. Some 3270 emulators can already scan panels and, if they recognize something that looks like a URL, make it a clickable link. Given that the 3270 protocol allows for hidden fields and the like, you certainly could imagine a 3270 emulator looking for a specifically named and formatted hidden field, and taking an action on that field. However, doing this would require building the capability into a 3270 emulator, along with adding the field to the 3270 panel.
It might be better to explain what you’re trying to do, because I don’t think this is a good solution to whatever your problem is. It would be incredibly fragile.
I found a solution:
the Quick3270 emulator solves the problem,
I verified that clicking (left button) on a field showing a web link the browser is started and the link page is shown
thank you all for the suggestions that directed me to the solution

multi monitor public information display (4 monitor / each with one chrome/firefox window)

I've 4 monitors connected to a pc running CentOS 7. Each physical monitor/display should show a website in full screen and auto refresh it every x seconds.
I've tried:
opening from bash and moving with xdotool -> how can I distinguish between the 4 chrome or firefox windows? If I don't do it and apply to the last active this might become unreliable with other programs open.
researched devilspie, seems it has the same problem (can't distinguish between multiple chrome/firefox windows)
using DISPLAY variable -> does only find one display 0.0
https://addons.mozilla.org/de/firefox/addon/monitor-master/ -> does not work with extended workspace, contacted developer
I've only a xrandr bash script to rearrange the displays when they become connected (three of four may be switched off to save power).
I would use a firefox/chrome add on for the auto refresh functionality.
Maybe someone can give me a hint how to reliably do this?
In addition to the "easy auto refresh" chrome plugin. I have another idea for you, why not use a chrome extension for handling the positioning.
It is of course, only for chrome(maybe thats fine for you).
Background: We had related difficulties. Internal webapp that opens multiple documents in windows, and need to be placed in other monitors.
The javascript does not support this, for security reasons and only a native extension can properly work with the tabs/windows objects.
Therefore, we have created an open source chrome extension for doing exactly that: flexible windows position across multi-monitor setups.
In your case you can define for each monitor a website-rule that the window would appear there.
The chrome extension is called "MultiWindow Positioner" and its complete free. You can get it at the chrome store here
The actual source code you find in github in the project chrome-multiwindow-positioner
Disclaimer: I am the maintainer of the open source (MIT) github project. If there any interesting idea, or comments feel free to share them here.

Is this running malicious software from a System.Shell.execute?

I have downloaded a Window Gadget and found this function from the javascript.
What this function does? Is it malicious?
Before I run the Widget, I commented out first the function call and it seems this function is not necessary to run the widget.
function LaunchPowerApplet()
{
System.Shell.execute(System.Environment.getEnvironmentVariable("SystemRoot") + "\\system32\\mblctr.exe");
}
System.Shell.execute is a method from the Windows Sidebar API that is used to launch an application.
%WINDIR%\system32\mblctr.exe is the executable for the Windows Mobility Center, a tool that «puts commonly used laptop settings in one spot so you can access them easily on the go».
Whether it's necessary or not is hard to say without knowing what the gadget needs to accomplish. The function is called LaunchPowerApplet and Windows Mobility Center allows to configure the battery usage settings. It makes sense if the gadget is a battery level meter, it doesn't if it's a solitaire.
BTW, a gadget is «a collection of XML, HTML, Microsoft JScript, and Cascading Style Sheets (CSS) files» so it's technically not JavaScript but JScript (Microsoft's ECMAScript implementation)
Thia is just a windows mobility center exe it will help your gadget to run correctly. it will not harm your computer.
I wouldn't say it was malicious since the application it is trying to launch is a standard windows component.
Why it wants to launch the Mobility Center is a bit of a mystery, but without further context about what this widget is supposed to be able to do we can't comment.

How does App.js/node-webkit Display Window/Graphics?

I am a bit green on Linux in general. I have a BeagleBone that has Angstrom installed. I'd like to strip away as much as I can to get boot times down to a minimum. All I want it to do, is boot up - straight to an App.js or node-webkit (I believe there are pretty much the same?) application, displaying a Twitter Bootstrap HTML/CSS GUI.
A node.js application will be tied to this; and will be serving the very same page up via express.js.
So what does App.js/node-webkit 'need' to display itself? How does it work?
I am from a Microsoft background, so to display anything, in my mind, is you load the OS which has all the API's for display, and then you load the graphical application. Does the Linux kernel itself have this built in? Or do you need other 'packages'?
Would love a detailed answer to this; I've been running around the Internet for days.
If you are going to be running on embedded linux then chromium or other browser plus nodejs is going to be quite heavy -- I would guess around 64 Meg or so. On top of that you will then need to run an x environment / display server so you get the graphical GUI up and running.
If you want to take the easy way out find a ubuntu linux distribution for the board you are developing for. There are many other distributions and you are welcome to try them, but I do find that there are lots of blog posts and help for ubuntu linux. Once you have that working on your device you can then install nodejs and a browser to view it.
If you don't need to have a display connected to the device then you can just run nodejs and surf to the machine which can then run your application on port 80.
If you want to create an "embedded" application and go the more visual studio route then you can look at QT. There is BootToQT which should boot an android like device but then take over the screen and run your application: http://qt.digia.com/Product/Boot-to-Qt/. They also have chromium so it is possible embed an html view in your application http://qt-project.org/. The Qt apps can be built in C++ but I think they also have an xml like structure for defining interfaces. QT Designer gives you an IDE to develop in.

Google earth plugin alternatives for Linux

I want to show a Google Earth like globe on my website, where people can rotate it and zoom it like normal Google Earth. I want to show signed up users on my website on this glob but the problem I am facing is that Google Earth plug in is not available for Linux , what other options do I have? thanks in advance for all your help.
I'm not sure what you mean by "other options". As you correctly state the plug-in doesn't work on Linux so there isn't any other option as far as that goes.
At Google I/O back in May 2008 it was announced that the plug-in would be available for both Mac and Linux by August that year - however only the Mac version ever surfaced.
The last I heard on this was in 2011 on the feature request page for the plug-in.
"...please note that we do believe that we can support Linux in the
future, and furthermore, we intend to support it. However currently we
do not have any timeline to announce for such a release."
See: https://code.google.com/p/earth-api-samples/issues/detail?id=117
If you 'star' the request you should be notified of any updates, but as you can see it doesn't look to be something that is going to happen in any kind of hurry...
EDIT:
As for other, non-Google, alternatives you should take a look at WebGL Earth - it is still BETA but works on linux and is open source

Resources