Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Launching from a button

Author
Message
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 24th Jun 2003 16:35
I would like to know how can I put a button on my page and when it is clicked it will open up a hacking tool which I'm trying to create for my game.

[/center]THIS IS NOT A REAL HACKING TOOL SO DONT BE ALARMED[center]
Windows XP Home 2.53 GHz 512 Meg RAM Darkbasic Pro Patched
TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 24th Jun 2003 17:30
On what page??

Nothing special yet --> http://thecyborg.lunaticsworld.com/
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 25th Jun 2003 12:34
Well Im currently have a script as follows



But ass soon as it gets to the part where it asks for the password I would Like either a little window to appear in the top right of the screen which looks like a password cracker. or to have a button which will do the same thing. I have an Idea of what I want the Cracker to look Like but dont know how to do it. I can email it to you if you want.

Windows XP Home 2.53 GHz 512 Meg RAM Darkbasic Pro Patched
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 25th Jun 2003 12:41
I have just Emailed you TheCyborg but yopu may need to check your bulk or junk mail as my provider appears as this when I send email for some reason. my address is [email protected] and has a subject of game screen I think

Windows XP Home 2.53 GHz 512 Meg RAM Darkbasic Pro Patched
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 26th Jun 2003 12:44
Cant anyone help me on this PLEASE, PLEASE, PLEASE.

Windows XP Home 2.53 GHz 512 Meg RAM Darkbasic Pro Patched
Drakportalen
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location: Sweden
Posted: 26th Jun 2003 14:34
I can help you. SO you want a little snippet for a buttan that you can press. Well her you go:



I will explain. First you must take out 4 corners for a little rektangular shape. We will need a x starting point and a y starting point and a x ending point and y ending point. To get this positions you cna test with printing the mouse positions on the screen. Then you will do a if command that calculates if the mouse cursor is over that place if the case is yes a variable say we name it "button1" is set to 1 other case it is set to 0. Then you make a if statement. That if the variable "button1" is set to 1 and mouseclick is made then what ever you want to happen happens (in your case the "hacking program").

Code to get the positions inserted in main loop:



www.drakportalen.dot.nu
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 26th Jun 2003 14:45
I'm sorry but how will you do the if statement to actualy launch the game. I know it must like im being spoon fed here but I'm more use to woring witjh code then changing it. I'm still fairly new to this so maybe I should post it in newbie side.

Windows XP Home 2.53 GHz 512 Meg RAM Darkbasic Pro Patched
Drakportalen
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location: Sweden
Posted: 26th Jun 2003 15:18
I think you will need a main loop in your code. You ain't got a main loop and if you ain't got a main loop you will need to make one and then use labels. I've edit your code. But before deleting your own and replace it. Try to make a new project named "test" or something and run it there. Cause I don't know if it works cause my DBpro can't compile.



PS: Every post that has something to do with coding help should be posted at the newcomers corner. No matter if you see your self as a newcomer or not. Thats the place to get help with things like this.

www.drakportalen.dot.nu
Drakportalen
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location: Sweden
Posted: 26th Jun 2003 15:20 Edited at: 26th Jun 2003 15:22
Note that I haven't made a visual button, that you'll need to do by loading in an image or what ever and pastr it like a sprite.

EDIT: Og, and I would have erase the hide mouse command. You know it is a little bit hard clicking on something when you don't know were to click...

www.drakportalen.dot.nu
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 26th Jun 2003 15:34
Thanks for that I will try the code ASAP which most likely 2moz as I leave school 2day.

Windows XP Home 2.53 GHz 512 Meg RAM Darkbasic Pro Patched
Nilrem
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 26th Jun 2003 16:47 Edited at: 26th Jun 2003 16:48
Is the program you are trying to open an actual executable (.exe)? or is it just another part of your program.

If it is the first can't you just use:


If it's the latter you could do it numerous different ways.

I hear and I forget. I see and I remember. I do and I understand.
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 26th Jun 2003 16:58
It is some more code which as yet I havent been able to complete.

http://www.darkbasicpro.com/apollo/view.php?t=12259&b=9

I can Email u in a sec my pic of the window I have craeted in paint but I need it to be craeted for me in darkbasic pro with button and any alterations as seen fit. It dont have to look like I have it.

Windows XP Home 2.53 GHz 512 Meg RAM Darkbasic Pro Patched
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 26th Jun 2003 17:07
@Nilrem I have emailed you but it may appear as bulk or junk as this account provider is strange

Windows XP Home 2.53 GHz 512 Meg RAM Darkbasic Pro Patched
Nilrem
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 27th Jun 2003 02:06
I've gotten it, I have never done what you want, so this is just theory, draw a box (using the BOX command) over the area that the button is, then check if when the mouse button is clicked (if mouseclick()>0) if it is in that area, then just get it to jump to that area by calling in a Function, or doing what I would opt for (just my personal preference) use a gosub command, for example:



I hear and I forget. I see and I remember. I do and I understand.

Login to post a reply

Server time is: 2026-07-16 12:18:38
Your offset time is: 2026-07-16 12:18:38