Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Request] Visual Basic 6 Help
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Thu Nov 08, 2007 1:59 pm    Post subject: [Request] Visual Basic 6 Help Reply with quote

Hey guys.
I am gonna make a project where you can decide where to extract it to (the exe). Like when you're installing games or such, you can decide where to put them. I need to make this in VB6.
But when I've extracted it, I want it to make a Shortcut on the desktop.
Any idea?
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Nov 08, 2007 2:06 pm    Post subject: How to define a path. Reply with quote

This is just one way of doing this. Smile
Ok so create a drivelistbox and a dirlist box. (You could create a textbox aswell if u dont want to use a varible)


Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub

Private Sub Dir1_Change()
text1.text=dir1.path
'or you could use a variable then it would be
'dim variable as string
'variable=text1.text=dir1.path

End Sub


ofc there are more advanced alternatives but i didn't know how good u are at vb.


Last edited by NINTENDO on Thu Nov 08, 2007 2:25 pm; edited 3 times in total
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Thu Nov 08, 2007 2:08 pm    Post subject: Reply with quote

EDIT: Does that move the exe file to the selected dir?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Nov 08, 2007 4:48 pm    Post subject: Reply with quote

Do you mean move a file from one place to another? Such as from the same path that your program is located in, into another?

If so, heres quick example I just wrote for ya.



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Thu Nov 08, 2007 5:00 pm    Post subject: Reply with quote

Load EXE as resource -> Send to customer -> Unpack resource -> Move EXE -> Make shortcut.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Nov 08, 2007 5:15 pm    Post subject: Reply with quote

Flyte wrote:
Load EXE as resource -> Send to customer -> Unpack resource -> Move EXE -> Make shortcut.


He was asking for code on how to do it, not the steps that one would take to create it lol.

Also heres some example source on how to create a shortcut for a given file:
http://www.thescarms.com/vbasic/Shortcuts.aspx

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Thu Nov 08, 2007 5:22 pm    Post subject: Reply with quote

Wiccaan wrote:
He was asking for code on how to do it, not the steps that one would take to create it lol.

Also heres some example source on how to create a shortcut for a given file:
http://www.thescarms.com/vbasic/Shortcuts.aspx


Nowhere did he say he wanted code. Wink

I was just telling him what a simple installer would do (focus on the loading the exe as a resource).
Back to top
View user's profile Send private message
•Music•
Master Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 486
Location: In a box...

PostPosted: Thu Nov 08, 2007 5:22 pm    Post subject: Reply with quote

thanks for example source wiccan
_________________
Back to top
View user's profile Send private message
SeVeR
Expert Cheater
Reputation: 0

Joined: 22 Sep 2007
Posts: 126

PostPosted: Thu Nov 08, 2007 5:34 pm    Post subject: Reply with quote

Find Xhale and look in his sig ^^
Back to top
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Thu Nov 08, 2007 11:46 pm    Post subject: Reply with quote

I didnt ment code Smile i wanted to learn something myself.
But Flyte, could you tell a bit more on how to do it? I dont really understand what ya mean.

BTW. Nice program there Sever. Do you know how to make it put a shortcut, to the file you copy, on the desktop?
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Fri Nov 09, 2007 1:58 am    Post subject: didnt get you =) Reply with quote

this is how u reach the desktop in msdos : "%systemdrive%\documents and settings\%username%\desktop".

Dont know how to do it in vb.. not yet anyways Smile
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Noodlez
<3
Reputation: 1

Joined: 27 Oct 2007
Posts: 744
Location: Hyrule

PostPosted: Fri Nov 09, 2007 5:30 am    Post subject: Reply with quote

Goot job nabblet
Back to top
View user's profile Send private message Send e-mail
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Nov 09, 2007 7:55 am    Post subject: Reply with quote

Moller wrote:
I didnt ment code Smile i wanted to learn something myself.
But Flyte, could you tell a bit more on how to do it? I dont really understand what ya mean.

BTW. Nice program there Sever. Do you know how to make it put a shortcut, to the file you copy, on the desktop?


Did you check the link I gave above? It shows how to create shortcuts.
http://www.thescarms.com/vbasic/Shortcuts.aspx

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Fri Nov 09, 2007 8:50 am    Post subject: Reply with quote

Great Wicaan Smile I think I got some good stuff now.
But how do you do it like Flyte says? I wanna know that aswell.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Nov 09, 2007 9:31 am    Post subject: Reply with quote

Moller wrote:
Great Wicaan Smile I think I got some good stuff now.
But how do you do it like Flyte says? I wanna know that aswell.


I'm guessing he was talking about having your files that you wish to be moved embedded into the exe inside a resource. Meaning when the program loads, it will look inside itself for the files, extract them from the resource file and then move them.

If thats the case, heres a quick example on how to do it.



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites