webpro 31 Posted November 22, 2013 Report Share Posted November 22, 2013 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.jpgimage2.jpghotsunset1.jpghotcar1.jpgetc... into a list firstThen 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 Quote Link to post Share on other sites
webpro 31 Posted November 22, 2013 Author Report Share Posted November 22, 2013 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 iteminto 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 Quote Link to post Share on other sites
LazyBotter 188 Posted November 22, 2013 Report Share Posted November 22, 2013 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") 2 Quote Link to post Share on other sites
webpro 31 Posted November 23, 2013 Author Report Share Posted November 23, 2013 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, sendI'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 filesI'll send a message using the traker about that. Quote Link to post Share on other sites
luis carlos 94 Posted November 23, 2013 Report Share Posted November 23, 2013 Check this outhttp://www.ubotstudio.com/forum/index.php?/topic/13444-sell-plugin-os-operating-system-addins/?hl=os%20plugin Quote Link to post Share on other sites
webpro 31 Posted November 23, 2013 Author Report Share Posted November 23, 2013 Luis, are you talking about this ?SENDKEYS (sends keys to window by name) This should do the job right ?If so, then TJ's got another sale lol Quote Link to post Share on other sites
luis carlos 94 Posted November 23, 2013 Report Share Posted November 23, 2013 Yes, tj has an example uploading a pic to twitter and works perfect. If you want ask him if it would fit to your needs. Quote Link to post Share on other sites
Steve 30 Posted November 23, 2013 Report Share Posted November 23, 2013 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") Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.