Sign in to follow this  
Followers 0
trainwreck07

File Created -> command run -> Button Pressed = Displayed.

3 posts in this topic

#1 ·  Posted (edited)

Well im making another script / program, my knowledge has increased vastly since the last time i posted, so no i am wondering if their was a way to make a command that has been run displayed into a list?

This is just a selected part of my script.
$Button2 = GUICtrlCreateButton("TrAinWrEcK@PJX", 96, 136, 97, 17, 0)
$List1 = GUICtrlCreateList("", 8, 56, 265, 71)


While 1
    $nMsg = GUIGetMsg()
    if $nMSG = $Button2 Then
        ShellExecute($URL)
    endif
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

like say when button2 was pressed it could display text saying, opening page now, into list1.

and part 2 is, if i make a macro to delete a file is their a way to display what file was deleted, id like the file to be displayed in list one also.

Thanks for anyhelp.

Edited by trainwreck07

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Ok, so how would i apply that to the script, sorry for such a noob question.

If button 1 is pressed Display text into a box then carry out an action...

While 1
    $nMsg = GUIGetMsg()
    If $nmsg = $Button1 Then
; Need Code
        EndIf
    If $nMSG = $Button2 Then
        ShellExecute($URL)
    EndIf
    If $nMSG = $Button3 Then
        Exit
    EndIf
        Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
        $msg = TrayGetMsg()
    Select
        Case $msg = 0
            ContinueLoop
        Case $msg = $aboutitem
            Msgbox(64, "About:", "Program Made by TrAiN^WrEcK")
        Case $msg = $exititem
            ExitLoop
    EndSelect
    
WEnd
Edited by trainwreck07

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