Reverze
Fellow UBotter-
Content Count
15 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Reverze
-
Rank
Member
Profile Information
-
Gender
Not Telling
System Specs
-
OS
Windows 8
-
Total Memory
8Gb
-
Framework
v4.0
-
License
Developer Edition
Recent Profile Visitors
1393 profile views
-
I've got it to work with the same method you explained me yesterday, but still I think it should be possible with a single $exists The version that works now is: set(#Star, $scrape attribute(<outerhtml=w"<td style=\"padding:4px;background-color:#203e42\">*</td>">,"innertext"), "Global") set(#Star, $find regular expression(#Star, "\\*"), "Global") set(#Star, $trim(#Star), "Global") if($comparison(#Star, "=", "*")) { then { alert("Star") } Thanks for your time again VaultBoss!
-
I don't understand why it's not possible with a single $exists. I searched the forums and read this topic http://www.ubotstudio.com/forum/index.php?/topic/6026-wildcard-not-working-correctly/?p=34047 There they say you can escape characters like * with [*]. Is that not working anymore in the newer releases of ubot?
-
Reverze started following Scrape a little part of a div, if condition with a $exists looking for *, Set variable from innertext and 3 others
-
I have a new challenge that already cost me about 3 hours and I can't figure it out I have this code: <td style="padding:4px;background-color:#203e42">just some text*</td>I need to make a IF condition that needs to look if there is a star behind the text or not (the text is different every time). I need to use outerhtml because the backgroundcolor also need to exists. I already tried the following and more but without success: if($exists(<outerhtml=w"<td style=\"padding:4px;background-color:#203e42\">*\*</td>">)) { then { alert("St
-
Thanks VaultBoss, that did the trick :-) I was trying to do it with one set. Learned alot from this answer, going to use this for more issues I had :-)
-
I have this div: <div style="padding:4px;width:300px;background-color:#111;color:#fff;border:1px solid #666;font-size:11px;"><b>Maximum amount:</b> 50 units</div>I want to set a variable with the value 50 that is in the div. The value in the div is different every time. Is there anybody who know how to do this?
-
I've got it, thanks for the help I didn't know about $both if($both($not($exists(<innertext=number1>)), $not($exists(<innertext=number2>))))
-
Is it possible to put two times $not in a IF condition? Something like: $not("<innertext=number1>") AND $not("<innertext=number2>") I tried this but it didn't work, is there another way to get this to work?
-
It's working, thanks for your help. Only disadvance is that I can't run the bot in Ubot because I have the Pro version. So I think I'll upgrade to dev soon
-
Ok, I'll try to get it to work like this. Thanks for your help!
-
That is a solution for the dev edition, is there also a solution for the pro edition?
-
I'm making a bot to play a online game. I put all the code in the first tab, I made some tabs where the user can modify settings in a UI panel. The variables that are set in that tabs are used in the script on the first tab. When I run the bot and change the settings on other tabs that works fine. But when you click on the first tab again the bot stops running. Also when I put the bot on pause, change tab and change settings, return to the first tab, the bot is stopped and not on pause anymore. I there a solution for this problem?
-
Thanks for your answer VaultBoss! That might be a solution but I'm still a big newbie with ubot and I don't know to do that. But if you have a look at my code, what is going wrong there because I was pretty sure it would work
-
Probably this is some stupid question but I can't figure out what I'm doing wrong. I have this div: ______________________________________________________________________________________________________________________________________ <div id="gta2" style="display:none;"> <div class="dcities" style="display:none;width:400px;height:60px;background-image:url('brazil_1.png');" id="city1"> <img src="a_2.png" style="margin-top:30px;margin-right:232px;border:1px solid #aaa;">
-
Scrape a little part of a div
Reverze replied to Reverze's topic in Regex (Regular Exp<b></b>ressions) 101
Thank you, this works! I was thinking to complicated and tried to solve this with a regex. -
I need to scrape a little part of a div and set it as a variable, but after trying it for 2 days now I can't figure out what to do, so I hope there is somebody that want to help me out here. Below is the div and the only part I need is the country (in bold) that is different every time. Is there a way to filter that part from the div and put it in a variable? <div class="right"> <div class="top_bar"> <ul class="user_left"> <li class="user1"><span class="white">Money:</span> $<b style="font-weight:normal;