Jump to content

Winactivate(variable)


Recommended Posts

...
Options()
Global $prog = "Notepad"

Func Options()
...
GUICtrlCreateLabel("Program Name:", 10, 10)
$client = GUICtrlCreateInput("Notepad", 80, 7, 200, 20)

$Start = GUICtrlCreateButton("Start", 10, 300,100)
$Exit = GUICtrlCreateButton("Quit", 290, 300,100)
...
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Exit
            Exit
        Case $msg = $Start
            Go()
    EndSelect
WEnd
EndFunc

Func Go()
While 1
Winactivate($prog)
...

The Error:

Variable used without being declared.:

Winactivate($prog)

Winactivate(^ ERROR

Can someone help me what is the problem, and how can i solve it plz?

Edited by patrik2991
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...