Reply
Thread Tools
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#51
Originally Posted by Addison View Post
Instead it would take you here or somewhere else, like posting, viewing or disliking a video...
It would probably be easier to scroll to the bottom of the video page and comment or like it.


Code:
xclip -in `xclip -out |sed 's/watch/rating/'`
That command would take the copied URL and change it to the rating URL and put that back in the clipboard. So you can run a command from personal launcher before pasting the converted URL or just scroll down on the video page after pasting the original URL.
 

The Following User Says Thank You to auouymous For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#52
I have tried

matchbox-remote -next ; yt
matchbox-remote -next & yt
matchbox-remote -next && yt

None of these will download a video in Personal Launcher.

So for now, I just have it in the beginning part of your script.

Also, I would like to add this as well...

xte 'keydown Escape' 'keyup Escape'

I always go back one page after grabbing a video so this just saves another step.

Where should I put this command?

If I do it right after matchbox-remote -next, the browser will come back up and go back a page, but the video won't download.

So I'm guessing it's going to be needed somewhere in the middle of your script.

I hope my question makes sense to you.

Thanks ahead.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#53
Okay, nevermind. I got it to work correctly.

Don't ask why, I have no clue, but apparently this is what was needed.

xte 'keydown Up' 'keyup Up' 'keydown Escape' 'keyup Escape'
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#54
Hey.

I'm trying to simplify this down to just a single click.

I can't seem to find a way to highlight and copy the url using Tear web browser though.

This is kind of what I have right now.

xte 'mousemove 400 450'
xte 'keydown Control_L' 'key a' 'keyup Control_L'
xte 'keydown Control_L' 'key c' 'keyup Control_L'

Any ideas at all?
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#55
Originally Posted by Addison View Post
I can't seem to find a way to highlight and copy the url using Tear web browser though.
Code:
xte 'mousemove 400 450' 'mouseclick 1'
xte 'keydown Control_L' 'key c' 'keyup Control_L'
The URL is normally selected when a user clicks in the field but if not then add the ctrl-a back in.
 

The Following User Says Thank You to auouymous For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#56
I can't seem to produce a mouseclick.

I've tried 'mouseclick 1' and 'mousedown 1" followed by "mouseup 1"

I tried this using MTPaint and I can get the cursor to move, just not a mouseclick which I think is needed if I'm ever going to grab the URL address.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#57
Originally Posted by Addison View Post
I can't seem to produce a mouseclick.
Try other values with mouseclick, such as 0 and 2 and no value (probably will give an error).
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#58
I did from 0 to 4 already.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#59
Originally Posted by Addison View Post
xte 'mousemove 400 450'
I was successfully able to click buttons in ASUI using 'mouseclick 1' and 'mousemove 100 450' 'mouseclick 1' will open a new tab in Tear. I was not able to click into the Tear URL bar or form fields on web pages. It works when selecting memos in Maemopad+ but won't click in the right text pane.

I was able to click in GTK text fields using xte on my Linux desktop but it appears that GTK text fields are not clickable on Maemo, unless something else is required.
 

The Following User Says Thank You to auouymous For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#60
Ah dern.

Well thank you very much for checking on this.
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:54.