Jump to content

steveR

Active Members
  • Posts

    332
  • Joined

  • Last visited

About steveR

  • Birthday 07/12/1970

Profile Information

  • Member Title
    Computo, ergo sum.
  • Location
    Maryland
  • Interests
    Programming, 2D/3D graphics, pwning n00bs in trench wars

steveR's Achievements

Universalist

Universalist (7/7)

0

Reputation

  1. Creating a window with API through AutoIt, if it's possible, would be masochistic. Even seasoned C programmers don't do that. They use templates or let the IDE create the code.
  2. Alt - F5 I followed these instructions and it worked for me: #76657 Maybe that post should be made sticky because its very useful knowledge
  3. Put this at the top of the script to see if it changes anything (under the #include statement) Opt("WinTitleMatchMode", 2)I assume (fertig) is at the far left of the statusbar, panel 1? If it's not, you have to supply the panel number:StatusbarGetText ( "title" [, "text" [, part]] ) Parameters title The title of the window to check. text [optional] The text of the window to check. part [optional] The "part" number of the status bar to read - the default is 1. 1 is the first possible part and usually the one that contains the useful messages like "Ready" "Loading...", etc. I was able to get this to work on mine. Mine says "Done": opt("WinTitleMatchMode", 2) $title = "Internet Explorer" WinWaitActive($title) Do Sleep(50) Until StatusbarGetText($title) = "Done" MsgBox(0, "", StatusbarGetText($title))
  4. None that I can think of to get past the no-variable rule. I've never used FileInstall so maybe someone else knows a trick or something...
  5. Even better! AutoIt AX is too close to AutoItX anyway
  6. progress bar was appearing in my pictureyes mine too I have 1024x768. I couldnt get it to submit either I will keep trying cos its look cool! I think it's great you made your own functions to dither it and all, but have you heard of the FreeImage library? It might help speed things up a bit (but then again, it may not )
  7. Problem is with FileInstall(): The source path of the file to compile. This must be a literal string; it cannot be a variable. You have to hard code it for the compile The FileInstall function is designed to include files into a compiled AutoIt script. These included files can then be "extracted" during execution of the compiled script. Keep in mind that files such as images can greatly increase the size of a compiled script. The source file must be a string and not a variable so that the compiler can extract the filename to include. The source cannot contain wildcards. When this function is used from a non-compiled script, a copy operation is performed instead (to allow for easy testing pre-compilation). Files maintain their original creation/modification timestamps when installed.
  8. Just add more elseIf <exp[b][/b]ression> Then statements ... [ElseIf exp[b][/b]ression-n Then [elseif statements ... ]] ... [Else [else statements] ... EndIf or use select case/endselectSelect Case <exp[b][/b]ression> statement1 ... [Case statement2 ...] [Case Else statementN ...] EndSelect
  9. It might be because the program is never reaching the $ping case. It checks the radio button and skips the rest #include <GuiConstants.au3> GUICreate("Ping Tool", 300, 300) GUISetIcon(@SystemDir & "\mspaint.exe", 0) ; selection GUISetFont(16, 400, 0, "Arial") $radio = GUICtrlCreateGroup("Domain Controller:", 30, 20, 180, 100) $radio1 = GUICtrlCreateRadio("CSCDC1", 50, 40, 120) GUICtrlSetState(-1, $GUI_CHECKED) $radio2 = GUICtrlCreateRadio("CSCDC2", 50, 80, 120) GUICtrlCreateGroup("", -99, -99, 1, 1);close group ; create ping button $ping = GUICtrlCreateButton("Ping!", 130, 250, 60, 35) ; GUI MESSAGE LOOP GUISetState() While 1 $msg = GUIGetMsg() If GUICtrlRead($radio1) = $GUI_CHECKED Then $ip = "novell.com" Else $ip = "yahoo.com" EndIf Select Case $msg = $ping ConsoleWrite("ping") ConsoleWrite(@ComSpec & " /C Ping -a -n -1 " & $ip & " > Find_IP.txt") RunWait(@ComSpec & " /C Ping -a -n -1 " & $ip & " > Find_IP.txt", @MyDocumentsDir, @SW_HIDE) $ip = FileRead(@MyDocumentsDir & "\Find_IP.txt", FileGetSize(@MyDocumentsDir & "\Find_IP.txt")) FileDelete(@MyDocumentsDir & "\Find_IP.txt") MsgBox(0, "Returned Ping String [data]", "" & $ip) ; MsgBox(0,"" & $strcomputer & " IP:", "" & $ip) EndSelect If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd
  10. Oh yeah Ill be using AutoIt Gui 99% of the time too, but I think about the 1000's of ActiveX components out there I could use. Has me drooling. How about: AutoIt AX
  11. RegDelete("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run",'"PestPatrol Control Center"') Try with single quotes around the value. Also, is this some anti-spyware app. Maybe it's preventing the deletion like some spyware might try to do. Maybe you have a service running that won't allow the deletion
  12. The same with tips;GUICtrlSetTip ( $controlID, "" )Just loop through them like Burrup showed. In the beta, there is a For..In structure that works with objects and arrays, but nothing like collections.
  13. tryRegDelete(' "HKEY_LOCAL_MACHINE\\Software\Microsoft\Windows\CurrentVersion\Run\PestPatrol Control Center" ')I surrounded the quoted registry entry with single quotes. If this is an entry on your own computer and not remote, use only one \ after HKEY_LOCAL_MACHINE
  14. Well it's kinda hard to help if I don't knwo exactly how the menu works. PM me the website if you want. Either the menu isn't focused or it's loseing focus somehow.
×
×
  • Create New...