Jump to content
UBot Underground

addamroy

Fellow UBotter
  • Content Count

    386
  • Joined

  • Last visited

  • Days Won

    5

addamroy last won the day on September 6 2016

addamroy had the most liked content!

Community Reputation

36 Excellent

About addamroy

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling

System Specs

  • OS
    Windows 8
  • Total Memory
    < 1Gb
  • Framework
    v3.5
  • License
    Developer Edition

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  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
×
×
  • Create New...