Jump to content

Venom4444

Members
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

About Venom4444

Personal Information

  • Occupation
    IT
  • Location
    kl
  1. Hi i found this nice script but dont under stand it so good. Can somebidy explain and then my next question is can i use this script on another App.? ; ; ---------------------------------------------------------------------------- ; ; ---------------------------------------------------------------------------- Opt("ExpandEnvStrings", 1) If $CMDLIne[0] = 1 Then If StringInStr($CMDLine[1], '/name:') Then $WinName = StringReplace($CMDLine[1], '/name:', '') While 1 If WinExists($WinName) Then WinActivate($WinName) WinWaitActive ($WinName) WinSetState ($WinName, "", @SW_HIDE) ExitLoop EndIf WEnd Else If StringInStr ($CMDLine[1], '\') Then $WorkingDir = StringReplace($CMDLine[1], "\"&StringRegExpReplace($CMDLine[1], ".*[\\|/]", "", 0), "") $file = ($CMDLine[1]) Run($file, $WorkingDir, @SW_Hide) Else $WorkingDir = '' $file = ($WorkingDir&'\'&$CMDLine[1]) Run($file, $WorkingDir, @SW_Hide) EndIf ;~ If FileExists($CMDLine[1]) Then ;~ Run($file, $WorkingDir, @SW_Hide) ;~ EndIf EndIf EndIf ; ---------------------------------------------------------------------------- ; ; ----------------------------------------------------------------------------
  2. Hi to all I have i bit of i question. If i use the Koda from autoIt i cREATE my own GUI example #include #include #include #Region ### START Koda GUI section ### Form= Global $Form1 = GUICreate("Form1", 288, 106, 192, 124) Global $Button1 = GUICtrlCreateButton("Button1", 16, 24, 249, 49) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case = $nMsg MsgBox(0, "", "Dialog was closed") EndSwitch WEnd I only added the part Case = $nMsg MsgBox(0, "", "Dialog was closed") Where is my problem can somebody please Help Tanx
×
×
  • Create New...