Jump to content

Just_Plain_Cool

Active Members
  • Posts

    58
  • Joined

  • Last visited

Just_Plain_Cool's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Hmmm...maybe you could write a function to answer the question? It would save the aforementioned repetitive work. JPC
  2. Check out _FileCountLines() in the help file. Hope this helps, JPC
  3. Try the code below. I used WinActive() to match up with what you were attempting before. If you only want to know if it exists and it doesn't need to be active then use WinExists(). While 1 If WinActive("Windows_Title1", "Windows_Text1") Then;if your first window is open and active then pop up MsgBox and leave the loop MsgBox(0, "", "Windows1") ExitLoop ElseIf WinActive("Windows_Title2", "Windows_Text2") Then;if your second window is open and active then pop up MsgBox and leave the loop MsgBox(0, "", "Windows2") ExitLoop EndIf Sleep(10);keep this loop from being a system hog WEnd Hope this helps, JPC
  4. Hello all, In over my head again! I have successfully used virtually every function in FTP.au3, but now find myself needing to get a list of the files on an FTP server for processing. I thought I'd get cute and try working with the wininet.dll myself, but quickly found myself lost. I believe the function I am looking for in the dll is FtpFindFirstFileA, but I could be wrong. Any help would be greatly appreciated... JPC
  5. Thank you all for replying and for your suggestions. Confuzzled - I had found that thread shortly before you pointed it out. I had to decipher the script to figure out how it was doing what it was doing, but have now successfully integrated the part I needed! Thanks, JPC
  6. Hi All, I am writing a script that watches for a particular application to be running. Once it sees the application running it waits for it to end. When the application ends, the script calls a function to backup the data from that application. The problem I have is that I have two copies of this application on my computer and I need to detect which one is running. Is there a way to see what folder a running process was started from? Thanks for your help, JPC
  7. Never mind, brainfart! LOL JPC
  8. Ok, I was bored...so... #include <GUIConstants.au3> GUICreate("My GUI combo",400,120) $Radio1 = GUICtrlCreateRadio("One", 40, 10, 60) $Radio2 = GUICtrlCreateRadio("Two", 40, 30, 60) $Radio3 = GUICtrlCreateRadio("Three", 40, 50, 80) $Combo1 = GUICtrlCreateCombo("", 200, 10, 150) $Combo2 = GUICtrlCreateCombo("", 200, 50, 150) $Button = GUICtrlCreateButton("Go", 140, 90, 100) GUICtrlSetData($Combo1, "One|Two|Three") GUICtrlSetData($Combo2, "Four|Five|Six") GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Button If ErrorCheck() = 0 Then MsgBox(0, "Go on...", "You can do something with the data now...") EndIf EndSelect WEnd Func ErrorCheck() If GuiCtrlRead($Radio1) = 4 And GuiCtrlRead($Radio2) = 4 And GuiCtrlRead($Radio3) = 4 Then MsgBox(0, "Error", "You much choose one of the Radio Buttons.") Return(1) ElseIf GuiCtrlRead($Combo1) = "" Then MsgBox(0, "Error", "You much choose an item from the first ComboBox.") Return(1) ElseIf GuiCtrlRead($Combo2) = "" Then MsgBox(0, "Error", "You much choose an item from the second ComboBox.") Return(1) Else Return(0) EndIf EndFunc JPC
  9. TraySetClick(8) TraySetOnEvent($TRAY_EVENT_PRIMARYUP, 'ToggleWindow') <{POST_SNAPBACK}> Thanks Saunders, sometimes the simple stuff stumps me! LOL JPC
  10. Hi all... I have written a script that has a tray icon. When the user clicks the icon, it toggles the state of minimization of the GUI. I also want to be able to have an exit item on a menu from the tray icon. I have code that will allow this, but the user now has to double click the icon to get it to toggle the app as the first click brings up the menu with the exit item. Is it possible to have a primary button click on the tray icon toggle the app and a secondary button click bring up the menu? Thanks for any help, JPC
  11. Hi JPM, You are exactly correct. I was seeing it while running under the Scite editor. When I compiled it and ran it alone, all is fine. I did need to add a WinActivate since I had used one on the Splash. Thanks for your help, JPC
  12. First attempt at writing a script using a GUI. Very impressive addition to AutoIt! I'm almost good to go, but I have run into a problem... I'm sure I am missing something simple, but... The following code is called when a user selects "About..." from a menu in my GUI. The GUI is being disabled when the splash screen is displayed. However, when they press the spacebar to return to the program, the GUI is re-enabled but minimized. Func AboutScreen() GUISetState(@SW_DISABLE) SplashTextOn("About...", @CRLF & $g_szVersion & @CRLF & @CRLF & "Copyright " & Chr(169) & " 2005 by JPC" & @CRLF & @CRLF & "Press Space to Continue..." , 275, 140, -1, -1, 16, "", 12, 400) WinActivate("About...") HotKeySet("{SPACE}", "TurnOffSpash") EndFunc Func TurnOffSpash() SplashOff() GUISetState(@SW_ENABLE) HotKeySet("{SPACE}") EndFunc Any and all help appreciated... JPC
  13. When you use the AutoIt Window Info tool, does it also show text in the window? Is this text different before and after joining the game? If it is, then you can use the second argument in the WinActivate command to tell the difference. For example: WinActivate ("ROSE online", "Join Game?") and WinActivate ("ROSE online", "Game Joined Successfully") Would activate two different windows... Hope this helps, JPC
  14. Use the forum's search feature and search for "Default Browser". The information is there as this has been covered before... Hope this helps, JPC
  15. Look in the help file for the following: Loop Statements WinActivate MouseClick Sleep Hope this helps, JPC
×
×
  • Create New...