Jump to content
UBot Underground

Recommended Posts

Hello,

 

I need to use a variable in a file field so for example:

 

C:\Dropbox\uBot\#Folder\cat.jpg

 

But it seems uBot can't recognise this? I need to be able to change the file location. 

I did think of having the full file path in a variable but that's my last resort.

 

Any ideas?

 

Thank you

 

Link to post
Share on other sites

I really don't understand the problem you are having since variables can be used just about anywhere in UBot.

 

Paste part of your code so we can take a look.

Link to post
Share on other sites

Hello,

Thank you for the replies, here is the code!

 

I just need to be able to put a name of a folder into the variable so I can easily change which folder to select from a csv!

 

Edit: It seems to be working now...I have no idea why? Could it be because I had two versions of uBot open at the same time?

define Navigate(#FolderPath) {
    create table from file("C:\\Dropbox\\uBot\\uBot Shop Data\\{#FolderPath}\\D1-ProductDataTest.csv", &Files)
    navigate($table cell(&Files, 1, 0), "Wait")
}
create table from file("C:\\Dropbox\\uBot\\uBot Shop Data\\ShopFolderNames.csv", &FolderNames)
Navigate($table cell(&FolderNames, 0, 0))
Edited by blacksabbath
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...