Sign in to follow this  
Followers 0

MsgBox do not pause script any more

5 posts in this topic

#1 ·  Posted (edited)

I wrote AutoIt programs for (too!!) many years!

I just update to W10 then install a new machine.
Want to write a script and found that whatever flag values MsgBox won't pause the script ( just display for 2 ~ 3 seconds)
The same occurs with _ArrayDisplay

Thanks for Any Clue

Edited by lupusbalo

Share this post

Link to post
Share on other sites

@lupusbalo How about actually posting your script, so we can see what you're doing, rather than having us guess ;)


√-1 2^3 ∑ π, and it was delicious!

Share this post

Link to post
Share on other sites

#3 ·  Posted (edited)

So obvious .... I'm stupid
Here it is

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=C:\&& fixed File on C (icons etc- - )\VBxCommun.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <Array.au3>
#include <File.au3>


; Global $jlbFile = "
Global $rvccFile= "E:\§INSTALLs\§INSTALL 7\analyse et pilote newPC\XXXXXX\XXXXXXX.txt"
Global $rvccData , $jlbData
Const  $NUM_1=1, $NAME_2=2, $VERSION_3=3, $TIME_4=4,$DESCR_5= 5, $COMPANY_6=6, $PATH_7=7, $TYPE64_8=8

_FileReadToArray($rvccFile, $rvccData, $FRTA_COUNT, @TAB)
MsgBox($IDOK + $IDCANCEL,"vreturn", @error, 10)
_ArrayDisplay($rvccData, "RVCC Data", Default,8)

The file to be read is saved from DLL view in "Process explorer"
I'm just starting this script, but UDF _FileReadToArray certainely returns an error and the MsgBox is supposed to help find what error I made
Incidently:  I did find the error in _FileReadTOArray so this is not my question which relates solely with MsgBox/_ArrayDisplay not pausing

Purpose of the script will be to compare (on 2  W10 PCs)  DLL used by a prog which freeze on one of them and runs perfectly on the other
(Hardware are the same - except HDD capacity) one W10 is Family the other Pro

Edited by lupusbalo
precision added

Share this post

Link to post
Share on other sites

I tested some "old" scripts with folowing results:
- no problem with compiled scripts
- same problem when running from the Editor (Scite)!!!
so I'll first check the AutoIt Install


Share this post

Link to post
Share on other sites

Previously I ran a "portable" version of AutoIt
So I download and Install last version (& associated Scite)

run the following program

MsgBox(0,"MsgBox1","First MsgBox")
                MsgBox(1,"MsgBox2","Second MsgBox")
                MsgBox(2,"MsgBox3","Third MsgBox")
                MsgBox(3,"MsgBox4","Fourth MsgBox")

Result is: MsgBox 1 display for 2 second, no other msgBox display ... ans the script ends!!

So this is not an AutoIt problem .... and it may have a link with the error I'm by the way tracking

(can't remember how to close a topic in title)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • Nareshm
      By Nareshm
      I have autoit script like this :
      winActivate ("BillReceipt") ControlClick ( "BillReceipt", "", "[NAME:winviewer]", "right") Send ( "{ENTER}") WinWait ("Print") ControlClick ("Print", "", "[CLASS:Button; INSTANCE:13]") Winwait ("Save As") WinActivate ("Save As") Send ("{TAB 5} {Backspace} ^v {Enter}") I need Saved successfully msgbox with file name as i saved like Filename.extension (Example = test.pdf is saved successfull)

      Please Help
      By LOWLIFE
      This is a personal project to log into several facebook accounts and send a message to a specific person on their birthday. I need to stop a script in a few different ways for several different reasons. For example, it might start sending the email to the wrong account, it might do something other than send a message, it might fail to logout of one account, etc. 
      1) Pause the script at it's exact location with a resume feature in case I need to put it on hold while I do another task. 
      2) Pause the script at it's current location with the option to start over or execute another part of the script (example in GUI with multiple buttons). 
      Also, is there a way to interact with menus? If I log into facebook how can I force it to go straight to sending a message to the proper person? I tried automating a mouseclick but the window opens in different places. I also tried searching for specific text and I couldn't get any information from the windows info tool on the facebook page. 
      Also, how do I get my code in here to show like it does in my editor? (scite)
      Thanks for looking at it, and any help/suggestions I sgreatly appreciated!
    • Ian_Mac
      By Ian_Mac
      Okey guys , here's the thing, My script is running fine, but when it's already running i cant   turn it off or pause by clicking the on/off button  unless i manually close it on my taskbar. What i wanted to happen is "if i click the ($switch = turn On and Off Button) to Off the script will STOP Running but not closing the entire GUI because i tried to use Exit and ExitLoop but it closes the entire GUI. and i don't want that to happen.  
      BTW. I'm new in AutoIT and practice scripting hope somebody could help me  Godbless. feel free to view my script
    • IamKJ
      By IamKJ
      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?
    • Verssuss
      By Verssuss
      hi guys i want avoid to multiple MsgBox by hold Hotkey "]" in my script
      #include <GuiConstantsEx.au3> #include <Windowsconstants.au3> #include <SendMessage.au3> #include <WinAPI.au3> ;~ HotKeySet("{[}", "_boxminus") HotKeySet("{]}", "_boxplus") HotKeySet("{ESC}", "On_Exit") $hGUI = GUICreate("", 100, 100, -1, -1, $WS_POPUP, BitOr($WS_EX_LAYERED, $WS_EX_COMPOSITED, $WS_EX_TOPMOST)) GUISetBkColor(0x00FF00) GuiCtrlCreateLabel("", 3, 3, 94, 94) GUICtrlSetBkColor(-1, 0xABCDEF) GUICtrlSetResizing(-1, $GUI_DOCKBORDERS) GUISetState() _WinAPI_SetLayeredWindowAttributes($hGui, 0xABCDEF) $box_range = 100 While 1 $pos = MouseGetPos() WinMove($hGUI, "", $pos[0] - ($box_range / 2), $pos[1] - ($box_range / 2), $box_range, $box_range) WEnd ;~ Func _boxminus() ;~ If $box_range >= 30 Then $box_range = $box_range - 10 ;~ If $box_range < 30 Then $box_range = $box_range - 1 ;~ EndFunc Func _boxplus() If $box_range < 200 Then $box_range = $box_range + 10 Else MsgBox(0,"ERROR", "Maximum size already exist") EndIf EndFunc Func On_Exit() Exit EndFunc i wish after i get first MsgBox another gonna replaced with first one or just cancel in and apeear again
      how can i make it right ???