Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/21/2011 in all areas

  1. You are welcome. Over the years I have introduced AutoIt into four different corporate environments. I noticed that in the less restrictive Dev/QA environments that the role of AutoIt flourishes gloriously, and in the giant restrictive bureaucratic Dev/QA environments the role of AutoIt flourishes secretly. Lar.
    1 point
  2. Try this, it worked for me, although I substituted "NETWORK" for "REMOVABLE" for my test purposes. #include <GUIConstantsEx.au3> Local $var = DriveGetDrive("NETWORK") GUICreate("Test", 230, 60) $com = GUICtrlCreateCombo( "", 10, 10) ;Create combe For $d = 1 To UBound($var) -1 ; Set data GUICtrlSetData( -1, $var[$d] & "|") Next GuiSetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd
    1 point
  3. jazzyjeff

    Simple WinPE 3.x Shell

    How about putting this in a While Loop: If _IsPressed(02) Then Run("Notepad"); Or whatever GUI you want to appear after initiating a right click EndIf Does that make sense? I think this should help get what you want.
    1 point
  4. corgano

    Run One Instance

    Singleton usage usually involves closing the current instance of a script if a previous one exists. The goal of the original code was to close the OLD instance when the NEW one exists. This was made by (I believe)Trancexx #include <Misc.au3> If _Singleton("apples are good", 1) = 0 Then ; KILL EXISTING PREVIOUS INSTANCE OF MyScript $aProc = ProcessList(StringRegExpReplace(@AutoItExe, ".*\\", "")) For $i = 0 To UBound($aProc) - 1 If $aProc[$i][1] <> @AutoItPID Then ProcessClose($aProc[$i][1]) Next EndIf While 1 sleep(100) WEnd
    1 point
×
×
  • Create New...