Jump to content
UBot Underground

addamroy

Fellow UBotter
  • Content Count

    386
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by addamroy

  1. How does the built-in installer work? I noticed nobody has shared any solid feedback on that yet.
  2. Ahhh. That worked, I ran all that code in a 'new browser window' and it freakin worked! Thanks man! I'm thinkin I may not even need to navigate anywhere because javascript is always enabled in the uihtml panel, probably just not enabled until you compile the bot (I as testing the node in ubot, which is probably why I had to navigate to make the functions work) Thanks again I appreciate the help. Adam.
  3. I also tried adding that Javascript within the HEAD tags of the UIHTML panel, rather than in a run javascript function, then put the set commands in a define command. I ran the define command and according to the debugger it still didn't want to set the R G and B values. This is the javascript as it's entered in the HEAD tags; (I have to add javascript to the UIHTML via pre-set variables because the {} symbols break any variables used in the UI HTML panel.) set(#HexToRGBJavascript, "<script> function hexToR(h) \{return parseInt((cutHex(h)).substring(0,2),16)\} function hexToG(h) \{
  4. It's not at all that i don't want to learn, I've been trying to pick apart codes for almost 7 days now, to no avail. And have been using Ubot since it's inception, and can do some failry advanced. It is not my effort, it is my lack of knowledge of javascript. And I hadn't noticed that you had already posted that code. I copied and pasted your code as so. ui text box("COLOER Hex:", #COLOER Hex) define hex to rgb { run javascript("function hexToR(h) \{return parseInt((cutHex(h)).substring(0,2),16)\} function hexToG(h) \{return parseInt((cutHex(h)).substring(2,4),16)\} function hexTo
  5. Yea, I'm not the best explainer of my issues lol. My specific question is: How to convert a variable whose value is a hex code, to the RGB form of that samehex value. Example, if #colorA has a value of #ff8800, the script would change that value would become 255,136,0. Now #colorA would have a value of 255,136,0 instead of #ff8800
  6. I've been trying for like a week lol. I went through all the Google searches, but being someone who is not knowledgable in Javascript enough to pick apart the scripts and put them back together puts me at a blank. I mean none of those scripts set ubot variables, which would be the most important aspect and unfortunately I don't know how to get those javascript snippets to set Ubot variables (or retrieve the existing variables that need to be converted), especially since I have many separate input fields that need to be converted.
  7. I'm looking for a hopefully simple way to convert a variable's value from a HEX value, to it's RGB equivalent. IE if user inputs #ff8800 in the input field, let's say #colorA. I want to automatically convert that to it's RGB value. In this case, #colorA would automatically become 255,136,0 which is the RGB value for the above Hex. I know there are various equations out there but I haven't the slightest clue how to get them into uBot and make them work for this.
  8. I AM SUCH AN IDIOT! This whole time I've been testing this 'getfiles' command... I've been expecting it to read files from the application folder where all the images are for the compiled bot.... My UBOT project file is NOT in the same folder as the COMPILED bot lmaooooooo.
  9. I'm using ubot 4 right now I have no idea why it would work for you and not for me.
  10. That's how I'm doing it. I have onclick javascript executing the define functions which run the color picker.
  11. set(#testgetfiles, $get files("{$special folder("Application")}\\images", "No"), "Global") Paste that into a bot. Put an 'images' folder inside your application folder. Put some files in this folder. Just to test. Then run this node. Tell me if it gives you an error.
  12. Thanks man I appreciate the help! My problem though (as I just posted in the other thread, lol) is that I wanted to specifically attach the color picker dialogue to text input fields in the ui html panel.
  13. That's what I did. It's a workaround for now. I wanted to avoid creating a define command for each field. (I have to use defines, because I am NOT using a ui button to display the picker) I was hoping to just attach the color picker dialogue to the TEXT INPUT fields themselves. So instead, I have a 'select color' text link under each input field, which prompts the color picker dialogue, then sets the variable for the input field, which then populates the input field with the hex code for that color. However now that I discovered this bug that doesn't let you close or cancel the color p
  14. Bug in the color picker dialogue. When you click 'cancel', or click the 'x' button to close the window, the color value sets to black #000000 It should not return any value if the cancel or x button is used. Makes it very easy for users to unknowingly lose their selections/settings. Please fix
  15. Well I suppose I'm just going to create a define command for each individual input field and populate them each with a button somewhere. Good enough to keep moving forward, I'll figure a more efficient way later down the road.
  16. I have input fields where you can enter color values, I need the color picker to POPULATE them with the hex values. The color picker should set some kind of value for the field you want to use it on.
  17. How do I get the file management color picker dialogue into UIHTML buttons, rather than the standard UI buttons? @Traffikcop, yes I tried that, but I have many input fields that need a color choice, so using defines and set commands for each individual field I have is just not efficient at all.
  18. Setting that to "YES" does not include the extra file path, it includes the full file-path of the files in the folder. IE full path YES displays getfiles results as, C:\\path\to\files\image.jpg full path NO displays getfiles results as, image.jpg So again, that does not work. And regardless, if I have it set to YES or NO, it does not work. Did you try that code yourself or just put it into Ubot and assumed that it works?
  19. I have like 20 text input fields that need to have this dialogue attached to them. How do I include the color picker dialogue on UIHTML panel text input fields?
  20. It doesn't work. This should work. Test it in yours, if it works for you I'm going to be upset lol... I restarted everything. set(#testgetfiles, $get files("{$special folder("Application")}\\images", "No"), "Global")
  21. If you try to get to any folders within the 'specialfolder' with a get files command it doesssss nottttt workkkk. Your code above was pulling some really strange results..
  22. That doesn't work. I thought it did because I didn't get the error. Those trailing slashes, I don't believe should be outside the $get files command. And when you put them inside, it doesn't work.
  23. lol, I swear I tried that like 10 times. 11th time worked ???
  24. set(#testgetfiles, $get files("{$special folder("Application")}\\folder", "No"), "Global") does not work, whyy
×
×
  • Create New...