Jump to content

Search the Community

Showing results for tags 'exit'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 15 results

  1. i am more or less happy with my code only the X button does not exit what can i do? I made an 'exit' button and it works pressing Esc works just the X button not working here's my code: URLTrimmer 1.5.2 12 21 2019.txt
  2. Hi all, I'm working on a relatively complex automation program and I need it to call a specific function when it is closed by a user. Ive resorted to "OnAutoItExitRegister" as i believe that's the only option available. This command works perfectly fine in a small scale test application I wrote, but once implemented in the final program that's much larger and divided over many files in many directories it no longer works. I don't get any error messages. My question is has anyone encountered an issue where implementation of this command in a large scale program gave them trouble? Does
  3. I have created an exit function and registered using OnAutoItExitRegister.But it is not running when I close the app from taskbar or even with normal exit during end. Below is the part of code and the included files. #include <MsgBoxConstants.au3> #include <FileConstants.au3> #include <WinAPIFiles.au3> #include <Date.au3> #include <file.au3> #include <Array.au3> #include <String.au3> OnAutoItExitRegister("Exit_Program") Func Exit_Program() LoggingMainScr("Entered Exit_Program") Local $exitmethod = [&qu
  4. So I have a lot of different functions in the little program I'm making. Most of them use the Do statement, such as finding images, clicking buttons, etc. The question I have is how would I be able to both 1) Create a hotkey to pause whatever I am doing at the moment. If I have to put something into every function in the program, I don't mind. 2) Create a hotkey to exit whatever I am doing and stop all loops or commands and bring back the main GUI?
  5. For some reason my personal notes were omitted when posting. Still a Newb it seems! So have attached my slightly modified example. If I comment out Exit button references script will not Exit even with windows 'X' button icon. If I'm losing GUI/Tab focus I cannot see where is the difference with(out) definition. GUI_No_Exit.au3
  6. Hi all, Ctrl+Break stops script only if AutoIt window is active. It doesn't work while automation is going on elsewhere. Is there a way to stop the script regardless of where the automation is happening? Thanks
  7. Hi everyone! I'm developing small testing tool for new software in my company. Tool itself is working correctly (it follows scripted test commands one by one), but I'm trying to develop an error checking function. Mechanics are simple: every time software (external) shows specific error (via window class), program asks for next step. Continue, or abort test (and return to main GUI)? The error check function is switched on/off via Checkbox in GUI. Here are some code fragments: Checkbox: Global $idCheckbox1 = GUICtrlCreateCheckbox("Enable TP.net error handling", 352
  8. Hi Guys, I have written a little loop program that counts to whatever you choose in "Rounds". (this is just a short version of my program, but it should cover what I try to achieve) I now want to be able to stop the counting by pressing the start/stop button. Unfortunately, autoit only registers my click on my button AFTER the func has ended. Do you guys have an idea how to stop the function? Maybe check if button was pressed in the loop? Thanks, Comboku #include <ButtonConstants.au3> #include <ComboConstan
  9. Is there any way to retrieve the exit code from a process while also being able to use StdoutRead/StderrRead?
  10. Hi, Here is a script which destroys the AutoIt Window, there is many issues that can understand and fix except that the application won't exit with the Exit code. Is there any way to "redirect" the exit code to terminate the application? There should be a main function in the internal autoit code, no way to make it exit? Here is the script : ;you will need to kill the autoit3 process. #include <WinAPI.au3> #include <Constants.au3> #include <WindowsConstants.au3> Global $_hWndProc = DllCallbackRegister("WM_HANDLER", "int", "hwnd;int;wparam;lparam") AutoItWinSetT
  11. Hi All, I have written some script that scans every folder down from a given directory and determines if any new folders have come into existence. I used it to scan a release server to determine when new revisions of source have been compiled into a stable version. If the script does not detect any new files, it Exits with Exit Code 1 (This is so that Jenkins knows to fail the given job, and not continue to the next job). When I test the code on my local machine, a Windows 7 unit, Everything works normally and the exit code exits as "1", however when I run it on my windows 8 test system,
  12. Hey folks, I have written a small script that stops a service and waits a predefined time for it to actually be stopped. This script is compiled in CLI mode and is run by our scheduling system. The output of the script indicates, that the service is stopped: C:WINDOWSsystem32>C:jobsUniverseStopService.exe server1 servicex 300 Starting (Version 1.0.0.7) C:\Windows\System32\cmd.exe /c sc server1 query "servicex" | find /C /I "state" Message after 0s: 0 Message after 1s: 0 Message after 2s: 0 Message after 3s: 0 Message after 4s: 0 Message after 5s: 0 Message after 6s: 0 Message af
  13. Seem pretty simple enough but I can do it properly. So here is the code first: Local $ordi = InputBox( "VNCViewer - Script", "Entrez votre Addresse Ip ou le nom de hote") Run( "C:\Program Files\UltraVNC\vncviewer.exe" & " " & $ordi & " " & "-password 1111") If @error = 1 Then Exit; exit if cancel pressed What happens: when script is started, I press cancel to exit the script but when I do, vnc pop's up. What I want to happen: when cancel is pressed, it exits the script without opening vnc. Again, any help will be appreciated. Thanks guys
  14. Hey everybody. I have been using GUIOnEventMode for a while now, and have never come across this problem. When I am running my script, if I click a button with an event assigned to it, then it seems to queue the events until I right click on the autoit tray icon and tell it to exit, and then it runs the appropriate events for the functions, and then continues to run the script until it reaches the next GUI, and then the same happens. This is the script (Ofcourse I have removed the company name from it though). I am using 3.3.8.0 on Windows 7 Home Premium 64 bit, running the 32 bit AutoIT Exe
  15. I have this small script: #include <ButtonConstants.au3> #include <GUIConstants.au3> #include <GUIConstantsEx.au3> #include <NoFocusLines.au3> #include <ScreenCapture.au3> #include <SliderConstants.au3> #include <Misc.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> Opt( "GUIOnEventMode" , 1 ) HotKeySet( "{UP}" , "_Up" ) HotKeySet( "{DOWN}" , "_Down" ) HotKeySet( "{LEFT}" , "_Left" ) HotKeySet( "{RIGHT}" , "_Right" ) Global $x = MouseGetPos( 0 ) , $y = MouseGetPos( 1 ) , $pos , $win_pos , $msg , $split , $old_x , $old_y , $zoo
×
×
  • Create New...