Jump to content

javasqlrpg

Members
  • Posts

    10
  • Joined

  • Last visited

About javasqlrpg

  • Birthday 01/24/1986

javasqlrpg's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. The Help file and examples is a great way to learn. but to put incode what water said : $iResult = RunWait(@ComSpec & ' /c ' & "net stop w32time", @TempDir, @SW_HIDE) If $iResult = 1 Then MsgBox(16, "error", "Error Stopping time") Exit EndIf $iResult = RunWait(@ComSpec & ' /c ' & "net time /setsntp:time.windows.com", @TempDir, @SW_HIDE) If $iResult = 1 Then MsgBox(16, "error", "Error setting time") Exit EndIf $iResult = RunWait(@ComSpec & ' /c ' & "net start w32time", @TempDir, @SW_HIDE) If $iResult = 1 Then MsgBox(16, "error", "Error starting time") Exit Else MsgBox(0, "Success", "Completed") EndIf
  2. i tried using the example scripts that i found on here with 7zip but did not work. i will start trying to figure something out with 7za.
  3. no need to use run and send. runwait will also wait for the command to finish , so i think you can exclude the sleep(5000) and you are left with RunWait(@ComSpec & ' /c ' & "net stop w32time", @TempDir, @SW_HIDE) RunWait(@ComSpec & ' /c ' & "net time /setsntp:time.windows.com", @TempDir, @SW_HIDE) RunWait(@ComSpec & ' /c ' & "net start w32time", @TempDir, @SW_HIDE) RunWait(@ComSpec & ' /c ' & "net stop w32time", @TempDir, @SW_HIDE) RunWait(@ComSpec & ' /c ' & "net time /setsntp:time.windows.com", @TempDir, @SW_HIDE) RunWait(@ComSpec & ' /c ' & "net start w32time", @TempDir, @SW_HIDE)
  4. HI I have an exe file Application (.exe) Win32 Cabinet Self-Extractor im trying to list the files inside this exe and extracting only 1 of the files. any one know how to do this?
  5. This could be done with setpos. have a look at the following code, it will give you a general idea of how you could do it. Same counts for you... Read our rules! Jos
  6. maybe you could supply some source? did you use winActivate? winWaitActive?
  7. try the following code #include <GUIScrollBars.au3> #include <ScrollBarConstants.au3> #include <SendMessage.au3> #include <WindowsConstants.au3> Run("Notepad") Sleep(200) $hWin = WinGetHandle("[CLASS:Notepad]") $hCtrl = ControlGetHandle("[CLASS:Notepad]", "", "Edit1") WinActivate($hCtrl) For $i = 1 To 40 ControlSend($hWin, "", "Edit1", $i & @LF) Next ControlSend($hWin, "", "Edit1", "{PGUP}") Sleep(500) $Max = _GUIScrollBars_GetScrollInfoMax($hCtrl, $SB_VERT) $TrackPos = _GUIScrollBars_GetScrollInfoTrackPos($hCtrl, $SB_VERT) $PageSize = _GUIScrollBars_GetScrollInfoPage($hCtrl, $SB_VERT) For $i = $TrackPos To $Max - $PageSize + 1 Step 1 _SendMessage($hCtrl, $WM_VSCROLL, $SB_LINEDOWN, 0) Sleep(100) Next
  8. instead of sending F11 use IE.au3 #include <IE.au3> $site = "www.google.com" $oIE = _IECreate($site) WinWaitActive("[CLASS:IEFrame]") If Not _IEPropertyGet($oIE, "theatermode") Then _IEPropertySet($oIE, "theatermode", True) exit
  9. Hi Awesome Admin tool! still the <_GetOfficePath.au3> is missing from includes
×
×
  • Create New...