tag:blogger.com,1999:blog-6827917.post114373567306540784..comments2024-03-06T14:36:52.719+01:00Comments on Fuxoft's Blog: Help: Remote control using hotkeysUnknownnoreply@blogger.comBlogger9125tag:blogger.com,1999:blog-6827917.post-1144265293390463252006-04-05T21:28:00.000+02:002006-04-05T21:28:00.000+02:00If it was me, I'd bind the key-combinations to act...If it was me, I'd bind the key-combinations to action in window manager (fluxbox does that really easily) or bind multimedia keys (using hotkeys).<BR/><BR/>Then it's just simple matter of using script of some sort.<BR/><BR/>You can even use ruby's "net/ssh" for that job and launch some small controlling daemon (also written in Ruby) on the second desktop.<BR/><BR/>Oh, and speaking of simple ... "drb" is good way to go about remote calls ;) and so is "webrick"-based interface ;)<BR/><BR/>Drop me a line should you need details and/or help.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6827917.post-1144226528351300602006-04-05T10:42:00.000+02:002006-04-05T10:42:00.000+02:00hans: That's what I've been doing until now! And ...hans: That's what I've been doing until now! And it pisses me off to switch the workspaces/windows every 2 seconds and be unable to rewind the movie while watching the translation.<BR/><BR/>jtk: Thanks, I'll have look at itFrantišek Fukahttps://www.blogger.com/profile/02816098670745133142noreply@blogger.comtag:blogger.com,1999:blog-6827917.post-1144225346490299102006-04-05T10:22:00.000+02:002006-04-05T10:22:00.000+02:00Seems my link was mysteriously broken. :(The proje...Seems my link was mysteriously broken. :(<BR/>The project mentioned above is called 'Synergy' and its homepage is at http://synergy2.sourceforge.net/Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6827917.post-1144225099768766662006-04-05T10:18:00.000+02:002006-04-05T10:18:00.000+02:00Maybe you could give a try.It allows you to contr...Maybe you could give <A HREF="http://synergy2.sourceforge.net" REL="nofollow"/> a try.<BR/>It allows you to control two or more computers using just one mouse & keyboard and there is also some hotkeys functionality built in.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6827917.post-1144139268788008872006-04-04T10:27:00.000+02:002006-04-04T10:27:00.000+02:00I must be missing something here - why don'tyou ju...I must be missing something here - why don't<BR/>you just play and write on the same machine,<BR/>switching workspaces in your windowmanager?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6827917.post-1143790291797851262006-03-31T09:31:00.000+02:002006-03-31T09:31:00.000+02:00There is more ways to do it, but one of them is to...There is more ways to do it, but one of them is to add a command to be run from the window manager. Most window manager support the "run a command when this key is pressed" functionality, and can handle the X11 key grabs for you.<BR/><BR/>-YenyaAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6827917.post-1143750154466396632006-03-30T22:22:00.000+02:002006-03-30T22:22:00.000+02:00I assume that you already have some script(s) with...I assume that you already have some script(s) with witch you can control MPlayer on your remote computer (pause_remote_mplayer_via _ssh.sh, stop_remote_mplayer_via_ssh.sh, etc.). (It's easy to write them, anyway) And you can run them from CLI on your local machine.<BR/>In this case use OO.org Basic macros just as a launcher for these scripts. You can assign a keyboard shortcut to them and there is a Shell() function in OO.org Basic for starting any application.<BR/>Or maybe you can write everything withinside OO.org Basic (but this is not my kind of language ;-))Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6827917.post-1143744363603140062006-03-30T20:46:00.000+02:002006-03-30T20:46:00.000+02:00Do you mean writing one OO Basic macro that does e...Do you mean writing one OO Basic macro that does equivalent of "echo forwad > /tmp/playercommand", another one that does "echo pause > /tmp/playercommand" etc... and then having the remote control script read from this file?František Fukahttps://www.blogger.com/profile/02816098670745133142noreply@blogger.comtag:blogger.com,1999:blog-6827917.post-1143742429828935492006-03-30T20:13:00.000+02:002006-03-30T20:13:00.000+02:00So you want control MPlayer when you are writing i...So you want control MPlayer when you are writing in OO.org, right? Easy solution is to write a macro in OO.org which will be launched by your keystroke. And the macro will be pretty simple, just starting your Ruby script.Anonymousnoreply@blogger.com