• Log in or sign up for an account here: https://www.sythe.org/login

VB question

user123

Forum Addict
Joined
Mar 12, 2007
Sythe Gold
0
Messages
439
Location
Canada
VB question
I created Form, Added a button, now how do i make the button1 execute a .exe ? and how do i pack the vb program and all exes i need to execute into 1 .exe
 
VB question
Sounds to me like your making a virus, but eh what ever. Look into resource files for storing exes and to open an exe use shell.

Code:
Shell "calc.exe'
 
VB question
Thanks for helping jds, oh and im not making a virus, I am making an interface to open up programs in my cheat pack.
 
VB question
Well, For me to actually create a interface it looks a bit like this
Dialog>dialog1
Caption=Test Menu242
Width=297
Height=255
Top=104
Left=CENTER
EndDialog>dialog1
That basically creates a menu.. a blank menu just a box untill I add programs.
a button added to it looks like this..
Dialog>dialog1
Caption=Test Menu242
Width=297
Height=255
Top=104
Left=CENTER
Button=Run Task(s),130,174,98,20,1
Button=Close Menu,130,200,98,20,2
Button=DiskDefrag,130,146,98,20,3
EndDialog>dialog1
and then I have to write the subroutine.

Label>Mainloop
if>result=2,End
if>result=3
endif
Goto>Mainloop

SRT>Start Disk Defrag
ExecuteFile>C:\WINDOWS\system32\dfrg.msc,
END>Start Disk Defrag


So alltogether
the script would look like this



Dialog>dialog1
Caption=Test Menu242
Width=297
Height=255
Top=104
Left=CENTER
Button=Run Task(s),130,174,98,20,1
Button=Close Menu,130,200,98,20,2
Button=DiskDefrag,130,146,98,20,3
EndDialog>dialog1
Show>dialog1,result

Label>Mainloop
if>result=2,End
if>result=3
endif
Goto>Mainloop

SRT>Start Disk Defrag
ExecuteFile>C:\WINDOWS\system32\dfrg.msc,
END>Start Disk Defrag

Yet again, it is its own language has its own protocol but its on a VB engine.
That is what it would look like for me to create a small menu that launchs disk defragment at a click of a button.
 
VB question
Well, For me to actually create a interface it looks a bit like this
Dialog>dialog1
Caption=Test Menu242
Width=297
Height=255
Top=104
Left=CENTER
EndDialog>dialog1
That basically creates a menu.. a blank menu just a box untill I add programs.
a button added to it looks like this..
Dialog>dialog1
Caption=Test Menu242
Width=297
Height=255
Top=104
Left=CENTER
Button=Run Task(s),130,174,98,20,1
Button=Close Menu,130,200,98,20,2
Button=DiskDefrag,130,146,98,20,3
EndDialog>dialog1
and then I have to write the subroutine.

Label>Mainloop
if>result=2,End
if>result=3
endif
Goto>Mainloop

SRT>Start Disk Defrag
ExecuteFile>C:\WINDOWS\system32\dfrg.msc,
END>Start Disk Defrag


So alltogether
the script would look like this



Dialog>dialog1
Caption=Test Menu242
Width=297
Height=255
Top=104
Left=CENTER
Button=Run Task(s),130,174,98,20,1
Button=Close Menu,130,200,98,20,2
Button=DiskDefrag,130,146,98,20,3
EndDialog>dialog1
Show>dialog1,result

Label>Mainloop
if>result=2,End
if>result=3
endif
Goto>Mainloop

SRT>Start Disk Defrag
ExecuteFile>C:\WINDOWS\system32\dfrg.msc,
END>Start Disk Defrag

Yet again, it is its own language has its own protocol but its on a VB engine.
That is what it would look like for me to create a small menu that launchs disk defragment at a click of a button.

I... uh... think you have the completely wrong language... This is the forum for Visual Basic 6.0, not some waked out kind-of-like-VB-Script language. :\
 
Runescape Gamblingrunescape gambling
Back
Top