Jump to content


Photo

UI Html Window not updating itself with variable change


  • Please log in to reply
8 replies to this topic

#1 KingKong

KingKong

    Advanced Member

  • UBot Users
  • PipPipPip
  • 31 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 21 July 2012 - 02:36 PM

Hi Guys,

I have created a UI Html Window named "Accounts", i this i have a browse button and a button to Load Accounts which calls function loadaccounts() using ubot.runScript('loadaccounts()'). This is working fine, and i am able to get popup alert but the accounts loaded from file are stored in variables and those variables are fixed in the text boxes of UI Html Window but these text box do not update with the username and other details unless i click the start button on UBot executable.

Do you guys have any idea why this is happening though the loadaccounts script has all the functions in it to load accounts but still i have to click start button?

How can i fix this?

Thanks

#2 JohnB

JohnB

    Advanced Member

  • UBot Users
  • PipPipPip
  • 3350 posts
  • LocationNJ
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 21 July 2012 - 02:55 PM

Did you check the debugger to see if the variables were set?

John

#3 LoWrIdErTJ - BotGuru

LoWrIdErTJ - BotGuru

    Botguru.net

  • Moderators
  • 3177 posts
  • LocationMichigan
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 21 July 2012 - 02:56 PM

I seem to be able to load projects into a ui html window which sets the variables as well
http://screencast.com/t/6jINiH2TLiN

can you show us what its doing or not doing?

Web Automation Bots @ BotGuru.net Want a Custom bot? click here or Email me
rjr.jpg

botgurusecured-banner.png

 


#4 KingKong

KingKong

    Advanced Member

  • UBot Users
  • PipPipPip
  • 31 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 21 July 2012 - 05:02 PM

Thank you so much JhonB and BotGuru, i used the debugger and figured out that there were some referencing variables to the CSV files which were not initialized.

Thanks a lot guys, the issue has been resolved.

Can you please tell me how can i mark check box checked, or unchecked and select item for combobox in Ui Html Window?

Thanks

#5 LoWrIdErTJ - BotGuru

LoWrIdErTJ - BotGuru

    Botguru.net

  • Moderators
  • 3177 posts
  • LocationMichigan
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 21 July 2012 - 07:17 PM

in the ui html

mark the html code for the checkbox as checked by default. this will initiate the variable correctly, and have it false and unchecked in the UI, and then when you check it will become true

Web Automation Bots @ BotGuru.net Want a Custom bot? click here or Email me
rjr.jpg

botgurusecured-banner.png

 


#6 Praney Behl

Praney Behl

    Master Blaster

  • UBot Users
  • PipPipPip
  • 2371 posts
  • LocationBrisbane, Australia
  • OS:Windows 7
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 21 July 2012 - 11:48 PM

Heads up on using UI HTML with more no. of variables or data. UI HTML is a big joke, on how it saves the stacks of variable changes in the memory and finally gets the bot to crash. It triggers onchange event every second and somehow adds new changes to memory.

So the bigger and more no. of variable in your UI HTML Windows, the lesser stable your bot will be.


Complete WordPress Management Tool - WP Master Blaster
Get 100's of links from Powerful Wiki Sites : Wiki Master Blaster

The number of possibilities to do something with a tool you master, are only limited to your imagination. Try to think outside of the box.


#7 blumi40

blumi40

    Advanced Member

  • UBot Users
  • PipPipPip
  • 514 posts
  • LocationEurope/Germany
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Dev

Posted 22 July 2012 - 08:09 AM

Heads up on using UI HTML with more no. of variables or data. UI HTML is a big joke, on how it saves the stacks of variable changes in the memory and finally gets the bot to crash. It triggers onchange event every second and somehow adds new changes to memory.

So the bigger and more no. of variable in your UI HTML Windows, the lesser stable your bot will be.


memoryhandling in ubot is anyway grande fiasco !!

tumblr_mcny45SRgd1rjgt8co1_250.gif
www.scisk.com
automate your musicworld
My ProcessBar for uBot http://www.ubotstudi...udio-preloader/


#8 KingKong

KingKong

    Advanced Member

  • UBot Users
  • PipPipPip
  • 31 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 22 July 2012 - 09:53 AM

Thanks my friend, this helped.

in the ui html

mark the html code for the checkbox as checked by default. this will initiate the variable correctly, and have it false and unchecked in the UI, and then when you check it will become true



#9 JohnB

JohnB

    Advanced Member

  • UBot Users
  • PipPipPip
  • 3350 posts
  • LocationNJ
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 22 July 2012 - 09:56 AM

in the ui html

mark the html code for the checkbox as checked by default. this will initiate the variable correctly, and have it false and unchecked in the UI, and then when you check it will become true


Strange, but true! Posted Image







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users