Go Back   Gaming Gutter > Non-Gaming > Programming


Programming - All general programming discussion in here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Whos Right??
Today 07:46 PM
by David
Last post by Hatzganatta
Today 07:52 PM
3 Replies, 4 Views
Go to first new post Buying 35M Neopoints and...
09-03-2008 09:58 AM
Last post by Alvarezzz
Today 07:52 PM
12 Replies, 13 Views
Go to first new post I feel sorry for this...
Today 07:17 PM
Last post by Connor
Today 07:50 PM
4 Replies, 5 Views
Go to first new post Should i auto?
07-12-2008 02:33 PM
Last post by Tigerz
Today 07:49 PM
12 Replies, 13 Views
Go to first new post [S]: Very well named...
Today 07:31 PM
Last post by JohnnyLoco
Today 07:48 PM
3 Replies, 4 Views
Reply
 
LinkBack Thread Tools Display Modes

 Not-so-quick question
Old 02-13-2008, 06:55 PM   #1 (permalink)
Nub Nub is offline Gender Male
Underground
 
Nub's Avatar
 
Nub is offline
Join Date: Jan 2007
Posts: 139
iTrader: 0 / 0%
Nub Is gaining popularity
Rep Power: 6
Not-so-quick question

How do you make a program click a clickable-bubble list thing?
(If you don't know what I'm talking about, I mean those lists of options that have bubbles next to them that are clickable. Usually after you click one, you click some sort of 'next' button)

EDIT: Apparently it's called input type radio.
__________________
Successful Trades: 4 - Legend and Duckii and iOwnurazz and Matt://, no MM :]

Last edited by Nub; 02-16-2008 at 10:34 AM.
  Reply With Quote

 
Old 02-14-2008, 05:50 AM   #2 (permalink)
SpAtularrr SpAtularrr is offline Gender Female
Underground
 
SpAtularrr's Avatar
 
SpAtularrr is offline
Join Date: Dec 2007
Location: England
Age: 19
Posts: 231
iTrader: 1 / 100%
SpAtularrr Is Recognizable
Rep Power: 3
Do you mean a check box??

it all depends what you want your program to do when a box is checked also what language is it in?

eg.

Say you had an order system for a cutulry company that sold knives forks and spoons you could create a check box that said Full set meaning you want all which will check all the otehr boxes then you could calculate a price etc and maybe store it in an array or databse etc

Quote:
Private sub chkFullset_click()
IF chkfullset.value = 1 then
chkknife.value = 1
chkform.value = 1
chkspoon.value = 1
ELSE
chkknife.value = 0
chkform.value = 0
chkspoon.value = 0
end if
end sub
(this should work as an example may be wrong as i did it off the top of my head)

You could then have a command button that said price and program that to calculate the prices
(I cba doing the calculation part off thwe top of my head lol)

Last edited by SpAtularrr; 02-14-2008 at 05:53 AM.
  Reply With Quote

 
Old 02-14-2008, 03:52 PM   #3 (permalink)
Nub Nub is offline Gender Male
Underground
 
Nub's Avatar
 
Nub is offline
Join Date: Jan 2007
Posts: 139
iTrader: 0 / 0%
Nub Is gaining popularity
Rep Power: 6
Quote:
Originally Posted by SpAtularrr View Post
Do you mean a check box??

it all depends what you want your program to do when a box is checked also what language is it in?

eg.

Say you had an order system for a cutulry company that sold knives forks and spoons you could create a check box that said Full set meaning you want all which will check all the otehr boxes then you could calculate a price etc and maybe store it in an array or databse etc


(this should work as an example may be wrong as i did it off the top of my head)

You could then have a command button that said price and program that to calculate the prices
(I cba doing the calculation part off thwe top of my head lol)
I mean a radio button. Google it for examples. And the programming language is VB6 and I'm trying to get it to click the radio button so that I may continue using my bot to manipulate human-like processes on a certain website. (aka, botting)
__________________
Successful Trades: 4 - Legend and Duckii and iOwnurazz and Matt://, no MM :]
  Reply With Quote

 
Old 02-15-2008, 12:04 AM   #4 (permalink)
second2none second2none is offline Gender Male
Underground
 
second2none is offline
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,025
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
Rep Power: 15
Do you mean on a website?
You don't have to.. it gets sent in the Post Data if you clicked it.
__________________
This is from:
Screenies Of A Mod
Code:
How did you do it? FLP , jotform, some other form of hacking? - First Class Noob
Lawl.. funny shit.

Quote:
Originally Posted by Kore
By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive.
Lawl Ownt

Hoes forgot to eat a dick and shut the FUCK UP!
  Reply With Quote

 
Old 02-15-2008, 03:50 AM   #5 (permalink)
Nub Nub is offline Gender Male
Underground
 
Nub's Avatar
 
Nub is offline
Join Date: Jan 2007
Posts: 139
iTrader: 0 / 0%
Nub Is gaining popularity
Rep Power: 6
Yeah, it's on a website. And I've tried using the post data but I can't get it to work (I believe the programmer made it so that unless you actually click the button, you can't continue)
__________________
Successful Trades: 4 - Legend and Duckii and iOwnurazz and Matt://, no MM :]
  Reply With Quote

 
Old 02-15-2008, 03:57 AM   #6 (permalink)
lain lain is offline Gender Male
In Purgatory
 
lain is offline
Join Date: Dec 2006
Location: Hell
Posts: 1,053
iTrader: 10 / 100%
lain Is a Party Captainlain Is a Party Captain
Rep Power: 0
You're going to have be more specific, I'm not entirely sure what the hell you're trying to do, can you clarify?
  Reply With Quote

 
Old 02-15-2008, 11:30 AM   #7 (permalink)
rcadble rcadble is offline Gender Male
Underground
 
rcadble is offline
Join Date: Sep 2006
Posts: 227
iTrader: 0 / 0%
rcadble Is Recognizable
Rep Power: 7
Well, he's PMed me asking for VB6 help, so I'll assume that he's trying to use a wrapper of some sort to select an option.

Okay, here's my go at it.

Imagine the wrapper grabs an HTML form that has four option buttons like this:
Code:
<form action="example.php" method="get">
<input type="radio" name="sample" value="one">One<br>
<input type="radio" name="sample" value="two">Two<br>
<input type="radio" name="sample" value="three">Three<br>
<input type="radio" name="sample" value="four">Four<br>
</form>
Say you wanted to go to the destination page with radio option three selected. First of all, look at the "name" property for each of the radio buttons. They're all named "sample". This means that they would all change the same variable, "sample". However, as you can see, they each have different value properties. For instance, the first has the value of "one", while the second has a value of "two".

You now know that the radio option three has a name of "sample" and a value of "three". Depending on your wrapper, you can form a request to "example.php", the form's destination, using the GET method.
Code:
Dim strHTML As String
strHTML = Wrapper.Request("GET", "http://site.com/example.php?sample=three", "referrer goes here")

It should also be noted that the program will not "click" anything at all. All it does is visit webpages and set the variables of the form as a form would automtically do.
__________________
Omnipresent Autobuyer, the best free autobuyer.
Version 1.2
Always around, always present.

Last edited by rcadble; 02-15-2008 at 11:31 AM. Reason: clarification
  Reply With Quote

 
Old 02-16-2008, 12:24 AM   #8 (permalink)
second2none second2none is offline Gender Male
Underground
 
second2none is offline
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,025
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
Rep Power: 15
Link me to the site. Ill go check it out.
__________________
This is from:
Screenies Of A Mod
Code:
How did you do it? FLP , jotform, some other form of hacking? - First Class Noob
Lawl.. funny shit.

Quote:
Originally Posted by Kore
By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive.
Lawl Ownt

Hoes forgot to eat a dick and shut the FUCK UP!
  Reply With Quote

 
Old 02-16-2008, 10:11 AM   #9 (permalink)
Nub Nub is offline Gender Male
Underground
 
Nub's Avatar
 
Nub is offline
Join Date: Jan 2007
Posts: 139
iTrader: 0 / 0%
Nub Is gaining popularity
Rep Power: 6
Shadow RPG :: Shadow RPG - and fighting others is what I'm talking about lol

Anyway, Rcadble, I'm about 90% that's exactly what I needed. When I get home later I'll give it a go.

Hrm. I click 'Run' but I'm getting the error:

Code:
Compile Error:

Method or data member not found
and then it highlights .Request, so I'm thinking my HTTPWrapper doesn't have that function.

Code:
<form method="post" action="battle.php?action=battle&do=battle">
<table>
<tr><td align="center"><input type="radio" onclick="enable()" onkeypress="return handleEnter(this, event)" name="attack" value="Triple Kick"></td><td>Triple Kick</td></tr>
<tr><td align="center"><input type="radio" onclick="enable()" onkeypress="return handleEnter(this, event)" name="attack" value="Recover"></td><td>Recover</td></tr>
</table><br />
That's the code on the site if it helps


EDIT: This is there as well:

Code:
<input id="attackbtn" type=submit value='Choose an Attack' disabled="true" onkeypress="return handleEnter(this, event)" onclick="this.disabled = 'true'; this.value = 'Loading..'; this.form.submit();"></form>
EDIT: Even more info:

__________________
Successful Trades: 4 - Legend and Duckii and iOwnurazz and Matt://, no MM :]

Last edited by Tyler; 02-21-2008 at 12:25 PM.
  Reply With Quote

 
Old 02-16-2008, 10:44 AM   #10 (permalink)
rcadble rcadble is offline Gender Male
Underground
 
rcadble is offline
Join Date: Sep 2006
Posts: 227
iTrader: 0 / 0%
rcadble Is Recognizable
Rep Power: 7
Quote:
Originally Posted by Nub View Post
Hrm. I click 'Run' but I'm getting the error:

Code:
Compile Error:

Method or data member not found
and then it highlights .Request, so I'm thinking my HTTPWrapper doesn't have that function.
>.>

Instead of .Request() on HTTPWrapper, I think it's .GetWrapper().

So instead, do this:
Code:
Dim strHTML As String
strHTML = Wrapper.GetWrapper("http://site.com/example.php?sample=three", "referrer goes here")
EDIT: hold on, i'll edit my reply based on your edit edit.

Code:
Dim strHTML as string
strHTML = HTTPWrapper.PostWrapper("http://shadowrpg.net/battle.php", "action=battle&do=battle&attack=Triple+Kick", HTTPWrapper.LastPage)
__________________
Omnipresent Autobuyer, the best free autobuyer.
Version 1.2
Always around, always present.

Last edited by rcadble; 02-16-2008 at 10:46 AM.
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 07:52 PM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.15242290 seconds (100.00% PHP - 0% MySQL) with 19 queries