Jump to content
UBot Underground

Recommended Posts

I got a bunch of images into a folder on my PC.

I want to upload them one by one (add name/descriptions etc...)

 

I'm trying various things but it's not working ?

I see in the debugger a bunch of crap (the image code itself i guess) when i should be getting the name (well i think ?)

Ex: image1.jpg

image2.jpg

hotsunset1.jpg

hotcar1.jpg

etc... into a list first

Then probably use %next list item to call them back and do my thing ?

 

Here's the latest test

ui open file("Get Images", #getimages)
set(#getimages, $list from file(#getimages), "Global")

This triggers of all the weird code i see in the debugger

 

How should i proceed guys ?

 

Thanks a lot

 

EDITED:

add list to list(%getimages, $list from file(#getimages), "Delete", "Global")

AIN'T working either...

 

EDITED 2:

I think i got it. Unless there's a better way ?

ui open file("Get Images", #getimagesfromfolder)
set(#getimagesfromfolder, $plugin function("File Management.dll", "$directory name", #getimagesfromfolder), "Global")
clear list(%images)
add list to list(%images, $get files(#getimagesfromfolder, "Yes"), "Don\'t Delete", "Global")

I didn't have Aymen http://ubot-plugins.com/file-management-plugin/ plugins installed on UB5 so...

I'll leave this in here in case someone else is stuck

Link to post
Share on other sites

Crap, it's harder than i thought !

You need to upload the pics, by clicking a CHOOSE FILE button, that opens up a folder.

 

I will try to find out how to enter the %next list item

into the popped up window, showing up the folder with all the pics and asking for FILE NAME

 

If you know who to do this, please SHOOT. I'm so tired that i'm having troubles thinking straight lol

 

Thanks

Link to post
Share on other sites


You can use the $get files to add all the files in a folder to a list, then use a list item to load the image/file.


add list to list(%Files, $list from text($get files("{$special folder("Application")}\\Your Folder", "Yes"), "
"), "Delete", "Global")

  • Like 2
Link to post
Share on other sites

Yeah this should work but i'm still stuck to find a way to actually add the images on the web site.

Like i said, you need to click an upload button on the site, which opens up a windowon your PC

 

Right now, i have managed to get thr right folder to open up (and the havea %list of image from that folder) but how do i select them and upload them ?

It's one pic at a time only by the way.

 

So you click on their upload button, select an image from folder, send

I'm missing the part of selecting the image from the folder

 

If you guys have any ideas, let me know. Thanks

 

 

By the way UB5 can't remove paths in $get files

I'll send a message using the traker about that.

Link to post
Share on other sites

Its probably a dialog box that you are trying to type into. 

Try the "set dialog text" command.

 

for example: 

plugin command("WindowsCommands.dll", "set dialog text", "Open", "File name:", "c:\\pic.jpg")

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...