Jump to content



stever

Member Since 27 Feb 2017
Offline Last Active Mar 11 2020 12:56 AM
-----

Topics I've Started

Image Editing With 5.9.50

04 January 2020 - 01:37 PM

Hi - do I have any options for doing simple image editing with my version of Ubot?

None of the image commands work, so I presume that's because my release doesn't support them

I've tried doing online editing using Ubot, but none of the online image editors seem to want to operate in the Ubot browser.

And I'm struggling to get Ubot to control desktop programs.

 

(All I want to do is combine two images and save the resultant image - many times over.)

 

Thanks in advance


Clicking A Button - Should Work But Doesn't

28 December 2019 - 11:58 AM

Hi

Trying to write a script that downloads a pdf file from a Sudoku puzzle generator site.

The salient code is:

 

 navigate("http://www.opensky.c...are/sudokugen/","Wait")
    wait(2)
    focus(<name="_action_generate">)
    click(<type="submit">,"Left Click","Yes")
    wait(2)
  ...

 

The problem is that when the script elements are tested one at a time, everything works as expected. But when it's run as a script, nothing happens when the submit button is hit.

 

I've tried changing the user agent - no improvement. This is Ubot v 5.9.50

Ideas?

 

Thanks and Happy new Year!


File Upload Problem In Tweetdeck

29 June 2019 - 08:23 AM

I am trying to upload an image on Tweetdeck so that ths can be tweeted to a schedule, but not getting anywhere.

When the button is clicked, Tweetdeck logs you out and reloads.

Here's the salient part of the script:

 

set user agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0")
allow javascript("Yes")
allow popups("Yes")
:
navigate("https://tweetdeck.twitter.com/","Wait")
wait for element(<class="js-compose-text compose-text bg-color-twitter-white txt-size--14 scroll-v scroll-styled-v scroll-styled-h scroll-alt padding-a--0">,"","Appear")
:
change file field(<class="js-add-image-button js-show-tip needsclick btn btn-on-blue full-width txt-left margin-b--12 padding-v--6 padding-h--12">,"C:\\Users\\steve\\Pictures\\test1.jpg")

 

It's the last item that's causing the problem. I've tried with a mobile user agent but that doesn't work either. Any thoughts on how to circumvent Tweetdeck's defenses?

 

Thanks

 

___________________________________________________

 

<EDIT: I tried this with another totally different tweet scheduling app called Twuffer (I know, terrible name) - and the same thing happened: the page refreshes with me logged out. What is happening?


Replacing The Tab Character In A List Item

12 June 2019 - 05:44 AM

I have scraped a web page into a list, but the problem is that each item in the list has two strings separated by a tab character. (I thought they were spaces at first but they're not.)

 

I want to create a new list with all the strings as separate items, so thought that this would work:

 

  set(#innerloopcounter,0,"Global")

            loop($list total(%OriginalList)) {
                add list to list(%NewList,$list from text($list item(%OriginalList,#innerloopcounter),\t),"Delete","Global")
                increment(#innerloopcounter)
            }

 

But the \t for tab character is considered illegal, so don't know what to do next, but think it might have to involve regex...

Any better ideas?

 


Sending Html Email With Images

08 February 2019 - 11:14 AM

I think this is a very basic question:

How to send an HTML email which includes images in the body (not as attachments). It seems Ubot can't send images as a base64 string, so what is the way to do this?

 

Thanks