Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 14 Dec 2017, 04:23
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Needed: Program to store key typing into text boxes[Found]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [47 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
april


Joined: 14 Sep 2013
Posts: 1010
Location: Off Lizard Island for a bit

PostPosted: Tue 25 Oct 2016, 17:06    Post subject:  Needed: Program to store key typing into text boxes[Found]  

Often I make a comment on a page and it might run to 4 or 5 lines .
I realise I need to add a reference or URL to it and whip over to get the reference only to come back and loose all my typing and have to do it again.

Just something like GLipper in the tray that retains your typing automatically for however many characters you like would be handy.

Surely there is a clever young programmer out there who can knock one up in minutes?

Result : See near the end of thread Geoffrey's ".pet" and get the "Yad" a little earlier.

Last edited by april on Tue 08 Nov 2016, 18:09; edited 3 times in total
Back to top
View user's profile Send private message Yahoo Messenger 
trapster


Joined: 28 Nov 2005
Posts: 2098
Location: Maine, USA

PostPosted: Tue 25 Oct 2016, 17:36    Post subject:  

Maybe type everything into geany and then copy/paste into text box.
_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog
Back to top
View user's profile Send private message Visit poster's website 
smokey01


Joined: 30 Dec 2006
Posts: 2659
Location: South Australia

PostPosted: Tue 25 Oct 2016, 22:20    Post subject:  

Try notecase. It comes in all pups.
_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Geoffrey


Joined: 30 May 2010
Posts: 2313
Location: Queensland

PostPosted: Sat 29 Oct 2016, 01:33    Post subject:  

you can use xsel to create a file with the selected text in any application, thus avoiding the clipboard.

Just create a script containing something like this and place it in /usr/bin
Code:
!#/bin/bash
xsel >> /root/.mynotes


I tested it by creating a hotkey to run the script, select the text and press the key, text is sent to the file.

A gtkdialog monitored edit dialog could be used to see the result in real time.

Here's a xsel I compiled in x-slacko
xsel.tar.gz
Description 
gz

 Download 
Filename  xsel.tar.gz 
Filesize  12.37 KB 
Downloaded  46 Time(s) 

_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4741
Location: Republic of Novo Zelande

PostPosted: Sat 29 Oct 2016, 02:41    Post subject:  

If you highlight the text and hit ctrl+c it will be saved into parcellite (that is attached to the icon in system tray). At least that is the case in Slacko. Just click on the icon and it gives you choices of what you have previously saved to clipboard.
Parcellite.jpg
 Description   
 Filesize   9.37 KB
 Viewed   273 Time(s)

Parcellite.jpg

Back to top
View user's profile Send private message 
april


Joined: 14 Sep 2013
Posts: 1010
Location: Off Lizard Island for a bit

PostPosted: Sun 30 Oct 2016, 06:51    Post subject:  

Mmm OK . Thanks .
I intended to impart the fact that I don't want to highlight and /or copy and store anything .That's what you always forget to do and you get caught out.

What I am suggesting is a service that always runs in the background and it records keystrokes ,say up to 5000 and does so in a round robin style file so when you do get caught out you can go to that file and copy out the last ,say, 100 keystrokes .

Any ideas on that?
Back to top
View user's profile Send private message Yahoo Messenger 
amigo

Joined: 02 Apr 2007
Posts: 2632

PostPosted: Sun 30 Oct 2016, 13:37    Post subject:  

In that case you'd need not only a process which runs all the time waiting, but also need to modify every input method so that it conforms to where your special program is listening. Have fun coding that up just the way you like it -one custom kernel module could possibly cover all bases...
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4741
Location: Republic of Novo Zelande

PostPosted: Sun 30 Oct 2016, 14:01    Post subject:  

april wrote:
What I am suggesting is a service that always runs in the background and it records keystrokes ,say up to 5000 and does so in a round robin style file so when you do get caught out you can go to that file and copy out the last ,say, 100 keystrokes .
Oh right - you mean a basic keylogger. I haven't used a Linux one but used to have one running in Windows.

The following looks a possibility:
https://github.com/kernc/logkeys

Some other links:
http://www.tecmint.com/how-to-monitor-keyboard-keystrokes-using-logkeys-in-linux/
http://tipstrickshack.blogspot.co.nz/2013/05/list-of-linux-key-loggers.html
http://www.techinfected.net/2015/10/how-to-make-simple-basic-keylogger-in-python-for-linux.html
http://unix.stackexchange.com/questions/129159/record-every-keystroke-and-store-in-a-file

EDIT : Here are some links worth reading from within this forum:
http://www.murga-linux.com/puppy/viewtopic.php?t=36827
http://www.murga-linux.com/puppy/viewtopic.php?t=64048

Last edited by greengeek on Sun 30 Oct 2016, 15:01; edited 1 time in total
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1434
Location: The other Mr. 305

PostPosted: Sun 30 Oct 2016, 14:16    Post subject:  

I recall our old friend, Jemima having something posted on this board; quite a while back. I'll see if I can find it but if I recall, it wasn't a full logger but just to grab the first 5 keys or so..... Just would need a touch up from there....
Back to top
View user's profile Send private message 
april


Joined: 14 Sep 2013
Posts: 1010
Location: Off Lizard Island for a bit

PostPosted: Sun 30 Oct 2016, 17:18    Post subject:  

amigo wrote:
In that case you'd need not only a process which runs all the time waiting, but also need to modify every input method so that it conforms to where your special program is listening. Have fun coding that up just the way you like it -one custom kernel module could possibly cover all bases...


I don't think that is right. Keyloggers are commonly attached to all keyboard input and no modifications are needed to differentiate between say browser and geany etc.

Would you mind explaining this just a bit more? I am sure you have a particular reasoning behind this
Back to top
View user's profile Send private message Yahoo Messenger 
Geoffrey


Joined: 30 May 2010
Posts: 2313
Location: Queensland

PostPosted: Sun 30 Oct 2016, 17:54    Post subject:  

Here's a script for a editable clip board in the tray, needs a hotkey setup to run it, once you have selected some text you want to keep, press the key.
It's probably not what your wanting, but may be useful as a place to keep stuff.
Uses yad, gtkdialog edit box and xsel.
Code:
#! /bin/bash

SELECT=`xsel`
[ ! "$SELECT" = "" ] && echo -e "$SELECT\n" >> "${XDG_CACHE_HOME:-$HOME/.cache}"/myclips

xsel -c

ps ax | grep -q '[My]Clips' && exit 1

function my_clips () {
ps ax | grep -q '[MY]CLIPS' && exit 1
    export MYCLIPS='
<window title="MyClips" icon-name="gtk-paste">
  <vbox>
    <edit file-monitor="true" auto-refresh="true" wrap-mode="3" editable="true">
    <variable>MY_CLIPS</variable>
    <input file>'${XDG_CACHE_HOME:-$HOME/.cache}'/myclips</input>
    </edit>
    <hbox homogeneous="true">
    <hbox>
      <button>
        <label> Save </label>
        <input file stock="gtk-save"></input>
        <action>`echo "$MY_CLIPS" > '${XDG_CACHE_HOME:-$HOME/.cache}'/myclips`</action>
      </button>
    </hbox>
    </hbox>
  </vbox>
</window>'
gtkdialog -p MYCLIPS -G 400x200"+`getcurpos | tr " " "+"`"
}
export -f my_clips

touch ${XDG_CACHE_HOME:-$HOME/.cache}/myclips

exec yad --notification --text=$"MyClips" --image="gtk-paste" --command "sh -c my_clips"
myclips.jpg
 Description   
 Filesize   19.44 KB
 Viewed   185 Time(s)

myclips.jpg


_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2632

PostPosted: Mon 31 Oct 2016, 05:53    Post subject:  

I said 'input methods', since there are various ways to generate input which is then interpreted as keyboard input -think of on-screen keyboard utilities which are activated with the mouse, or touch screens. A plugin hardware keylogger is not gonna catch those.

If you want on-the-fly key-by-key recording within an application, that app must be capable of doing that. You might do something at the window-manager level if you are only concerned about gui activities -since the window manager will be re-directing any keyboard input to the current active window.
Back to top
View user's profile Send private message 
april


Joined: 14 Sep 2013
Posts: 1010
Location: Off Lizard Island for a bit

PostPosted: Tue 01 Nov 2016, 16:16    Post subject:  

amigo wrote:
I said 'input methods', since there are various ways to generate input which is then interpreted as keyboard input -think of on-screen keyboard utilities which are activated with the mouse, or touch screens. A plugin hardware keylogger is not gonna catch those.
.

I don't wanna catch those.

amigo wrote:
You might do something at the window-manager level if you are only concerned about gui activities -since the window manager will be re-directing any keyboard input to the current active window..


This is more useful though .What can I plug in to send those keystrokes to a file continuously in Seamonkey?

Last edited by april on Tue 01 Nov 2016, 16:33; edited 2 times in total
Back to top
View user's profile Send private message Yahoo Messenger 
april


Joined: 14 Sep 2013
Posts: 1010
Location: Off Lizard Island for a bit

PostPosted: Tue 01 Nov 2016, 16:18    Post subject:  

slavvo67 wrote:
I recall our old friend, Jemima having something posted on this board; quite a while back. I'll see if I can find it but if I recall, it wasn't a full logger but just to grab the first 5 keys or so..... Just would need a touch up from there....


Went looking for that but the search utility here is hopeless. Google site: didn't find anything either
Back to top
View user's profile Send private message Yahoo Messenger 
april


Joined: 14 Sep 2013
Posts: 1010
Location: Off Lizard Island for a bit

PostPosted: Tue 01 Nov 2016, 16:20    Post subject:  

Geoffrey wrote:
Here's a script for a editable clip board in the tray, needs a hotkey setup to run it, once you have selected some text you want to keep, press the key.

Thanks, that will come in useful elsewhere though and I am learning from your coding. I'm thinking whether I can make a background service run this all the time and get it in there without a hotkey or make any key run it and just store letters one at a time will do. A cron job sort of thing.

B̶o̶o̶k̶s̶ ̶a̶r̶e̶ ̶d̶e̶a̶d̶
Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 4 [47 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0546s ][ Queries: 14 (0.0042s) ][ GZIP on ]