Sign in to follow this  
Followers 0
Sardith

Question Gui

9 posts in this topic

Using a GUI I know you can make buttons, but can you make a two stage button..

"Run"--> if you don't have a Directory for the .EXE it will bring up a directory, then you select the directory you want and it will run the .EXE... Even after you restart the program.

If someone could help me with the code for that, it would be great.


[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Share this post


Link to post
Share on other sites



see

fileopendialog

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Using a GUI I know you can make buttons, but can you make a two stage button..

"Run"--> if you don't have a Directory for the .EXE it will bring up a directory, then you select the directory you want and it will run the .EXE... Even after you restart the program.

If someone could help me with the code for that, it would be great.

lookup RegWrite and RegRead or IniWrite and IniRead

Share this post


Link to post
Share on other sites

Yeah, I was doing well with my trainer at 99% coded and tested, but I want to add this to it.. I looked all the funcations along with trial and erroring things. No luck though, im not asking anyone to write something, but if someone wants to help me out alot that would be great.

Jeff


[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Share this post


Link to post
Share on other sites

an ini directory would be the best

see iniwrite

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

you are using file open dialog to get an "exe" file

then later you say

Run("fear.exe", $var1)

you are not running the exe file that was chosen

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Having a problem with my code for run..

It won't run from $var1... even after it becomes a string...

Any help would be great. Code is above^^

EDIT: NEVER mind I got that.

Question closedeyes.gif sad.gif

Is there a way to do a reg edit or something other then a .ini..... I don't want to use .ini's period so it isn't a choice for me anymore.


[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Share this post


Link to post
Share on other sites

i dont teach new people about working/writting to the registry

( new means asking about the simpler things )

sorry

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

"new", Ok I understand im "new" but I tend not to actually need to ask for code help, you gave me fileopendialog, then I looked off the example and wrote something for my use. The only reason I asked for help on the Run was because the forums are here for me to do so. Come to find out I figured out the syntax issue, then refreshed Firefox; Then saw your reply.

If you don't care to teach me, so be it. I don't need you to tell me I don't like to teach 'new' people RegWrite/Read. I understand the concept of it.

I just need to know what, type of reg edit id use for a path, and how id write the Values.

RegWrite( "", "", "????", $var1??? )
Edited by Sardith

[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0