LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-13-2008, 03:34 AM   #1
lin2winwin
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Rep: Reputation: 15
standard language for system interaction


Hi,
I might be dumb in asking this. But, didnt want to waste my effort in recreating an already existing one.

Is there any kind of language/syntax framework for interacting with a system?

Like system level commands such as

system shutdown
mail check/compose/open
open firefox
screen brighten/dim/activate/switchoff
window minimize/maximize/etc..
desktop next/previous/one/two/...

and application level (context sensitive) commands like

page close/reload/back/forward (firefox)
save now
save as
etc.

I want to create an interaction layer to the system that can be used in all platforms. This can then be used in conjunction with gesture recognition, voice activation and certain shortcut sequences.
 
Old 10-13-2008, 04:53 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by lin2winwin View Post
Hi,
I want to create an interaction layer to the system that can be used in all platforms. This can then be used in conjunction with gesture recognition, voice activation and certain shortcut sequences.
What do you mean with all platforms ?
All the existing OS that is quit a lot.
In some OS a works with in the past you can create as we call it a alias
It is a system command that means something to me or all other users .
It just how you make it .
As a example now = shutdown now and so on
 
Old 10-13-2008, 05:13 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by lin2winwin View Post
Hi,
I might be dumb in asking this. But, didnt want to waste my effort in recreating an already existing one.

Is there any kind of language/syntax framework for interacting with a system?
Not at the level you are talking about. What you ask for is basically an IA controlled device (aka, robot, like in star wars ) that can deal with all the imaginable machines, oses, application frameworks and programming/scripting languages.

Quote:
system shutdown
mail check/compose/open
open firefox
screen brighten/dim/activate/switchoff
window minimize/maximize/etc..
desktop next/previous/one/two/...

and application level (context sensitive) commands like

page close/reload/back/forward (firefox)
save now
save as
etc.
There's no such thing at all. Some of the stuff you talk about is very OS dependent, like acpi stuff (shutdown, etc). Some other stuff is very tied to the concrete GUI, like the max/min stuff. At most, you could do some kind of desktop-level daemon to achieve this on a reasonable number of desktops/wms (those respecting the EWMH standard). But this will only work on those wms supporting that (I know nothing about windows and mac stuff, in linux most of them do to a certain degree at least).

In which regards app-level interaction, it's only possible when there's a common infrastructure in the form of a inter-app communication system (corba, dcop, dbus...). Nothing standard that will work on all the OSes.

Being that said, you might have a reasonable degree of success if you concentrate yourself in a given desktop. I'd suggest using kde4, and developing your solution on top of it. The good part about it is that it runs on linux, bsd, mac and windows. All the kde applications can communicate with each other, and you can have a very high degree of control via dbus. It's the only solution (viable one, I mean) that comes to my mind.

Completely OS/arch agnostic solutions are not viable nowadays for your purpose. So, I suggest looking for the most portable framework, which, right now, is kde4. It's not going to be an easy walk, in any case.
 
Old 10-13-2008, 05:23 AM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by lin2winwin View Post
Hi,
Is there any kind of language/syntax framework for interacting with a system?

Like system level commands such as

system shutdown
mail check/compose/open
open firefox
screen brighten/dim/activate/switchoff
window minimize/maximize/etc..
desktop next/previous/one/two/...

and application level (context sensitive) commands like

page close/reload/back/forward (firefox)
save now
save as
etc.
Some functions are available through shell (shutdown, mail, open firefox).
Application-dependant commands might be available if application supports scripting.
I do not know about layer that allows WM-independant manipulation of windows/controls (maybe there is one, of course). To me it looks like this thing will need to be implemented by hacking any major desktop.
I recommend you to ask kde or gnome developers about this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Function for getting the language code in standard library jaepi Programming 1 12-10-2007 01:33 PM
standard system startup files , heh? entz Programming 2 11-15-2007 05:40 PM
Where are the Standard C Libraries in my file system? nunya_biniss Linux - Newbie 4 10-13-2007 06:18 PM
standard output/system mail? gmon72 Linux - Newbie 2 10-13-2004 03:54 PM
standard output/system mail? gmon72 Linux - Newbie 1 10-13-2004 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration