Jump to content

HavikTech

Active Members
  • Posts

    69
  • Joined

  • Last visited

About HavikTech

  • Birthday 09/26/1991

Profile Information

  • Interests
    Programming, Troubleshooting, Movies, Music, Comedy

HavikTech's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. you can include files like this: FileInstall("C:\source.jpg", @TempDir & "\source.jpg")
  2. is this really difficult to understand? If WinExists("Title") then ;Some code here else WinClose("Title") EndIf
  3. Try to replace the dll file with new one, or with new vrsion if available... Read this too: http://win.downloadatoz.com/tutorial/2149,How-to-resolve-ntdll-dll-error.html
  4. No need to rewrite, there are already 2 scripts available for such purpose. Laptop Battery Status: http://www.autoitscript.com/forum/index.php?showtopic=27598 Laptop Battery stats: http://www.autoitscript.com/forum/index.php?showtopic=48316 Enjoy!
  5. I just installed Autoit, Here is another Example using GUI #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Run", 309, 125, 353, 360) $Label1 = GUICtrlCreateLabel("Type the name of a program, folder, document, or", 56, 8, 237, 17) $Label2 = GUICtrlCreateLabel("Internet resource, and Windows will open it for you.", 56, 32, 245, 17) $Icon1 = GUICtrlCreateIcon("C:\Program Files\AutoIt3\Icons\au3.ico", -1, 8, 8, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) $Input1 = GUICtrlCreateInput("", 56, 56, 241, 21) $Button1 = GUICtrlCreateButton("ok", 224, 88, 75, 25, $WS_GROUP) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 ShellExecuteWait($Input1) EndSwitch WEnd I Used "Koda" for creating the GUI, you can too... Always remember to read help file, it 've all the information + basic tutorials.
  6. One simple example: $command = "myprog.exe -p Path\To\myfile.dat" $x = InputBox("Title", "Whs the command?", $command, "", -1, -1, 0, 0) If $x = $command then ShellExecuteWait($command) Else MsgBox(64, "incorrect", "Command") EndIf (Sorry, don't have autoit installed.)
  7. This is not written in Help file, and i always use GuiSetState(@SW_SHOW) because i think Gui is created at the time when this function is called with show flag. Well, it's good to know that... Thanks!
  8. I already updated post with improved code.... Test the new one!
  9. if i 'm right, this is what you want... $t = "titlegoeshere" $g = GUICreate($t, 0, 0, 600, 0) GUISetState(@SW_HIDE, $g) WinSetState($g, "", @SW_HIDE) While 1 If WinExists($t) Then MsgBox(64, "Window", "It Exists in hidden mode.") EndIf ExitLoop WEnd Right?
  10. You have to use If Statement to check if the required executable matched with the script name, after that you can use a While loop to run your function inside it. Check the help file, there is detailed information about everything. Press F1 in SciTE...
  11. Hi Zack, Welcome to AutoIt Script Forums. Here is an example on how to do it. $name = "Example.exe" If @ScriptName = $name Then While 1 Some_Function() Sleep(100) WEnd EndIf Func Some_Function() ;function code goes here... EndFunc
  12. did you google it?
  13. _NowDate() _DateTimeFormat() _StringReplace() StringRegExpReplace()
  14. That's a good start, glad we could help!
×
×
  • Create New...