Jump to content

SonJoe

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SonJoe's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Looks like the download link is broken. Can't find it at http://www.autoitscript.com/autoit3/files/au3check/ and in the recently downloaded AutoIt, I can't find it either. Has it been discontinued? Or is there a new tool with other name that overtakes that checking?
  2. Thanks a lot! Au3Check is actually new to me. And I did not now that it's forbidden to define global variables in a function. I thought that, after it worked well on the developer machine, it would be ok. And it looks like this explains why the error message was "Variable used without being declared.". Nevertheless, I'm surprised that it works on the developer machine, if it's not allowed.
  3. On the developer machine, it runs smoothly. That's why I guess the reason might be something missing in the compiled file, that is automatically found on the developer machine. Here's the script. zoom-shot-man.au3
  4. Hi all, I have compiled a script to exe (using aut2exe) and delivered it to another machine, which does not have AutoIt installed. There, it does not run, but tells me that an undefined variable is used. I assume that the files referred to by #include are not embedded in the exe. How can I make sure the included files are available, when I deploy the exe to another machine? Thanks in advance for your helpful hints!
  5. Thanks a lot, MarvKLM. You're a genius!
  6. Thanks, Jos, for your effort! Do you mean line 40? The Button "Setup" in the Main GUI already calls the Setup GUI. And this works: The Setup GUI opens. But then, within the Setup GUI, the Button "xxx" shall call the function "xxx". But this does not happen. When I click on the Button "xxx" within the Setup GUI, nothing happens. ... or have I misunderstood you idea?
  7. Thanks a lot for the hint about not having returned from an earlier event. I have removed all code which is not necessary to demonstrate the problem... But the problem stays. Here's my buggy code: #include <GUIConstantsEx.au3> #include <Debug.au3> Opt("GUIOnEventMode", 1) _DebugSetup () BuildSettingsGUI () BuildGUI () While True Sleep (100) WEnd Func BuildGUI () Global $hGUI = GUICreate ("Main", 300, 100) GUISetOnEvent($GUI_EVENT_CLOSE, "DoClose") Global $ButtonMsg = GUICtrlCreateButton ("AAA", 10, 20) GUICtrlSetOnEvent (-1 , "AAA") Global $ButtonSetup = GUICtrlCreateButton ("Setup", 240, 20) GUICtrlSetOnEvent (-1 , "ShowSettingsGUI") GUISetState (@SW_SHOW, $hGUI) EndFunc Func DoClose() _DebugOut ("DoClose") Exit EndFunc Func BuildSettingsGUI () _DebugOut ("build SettingsGUI") Global $hSettingsGUI = GUICreate ("Settings", 300, 165) GUISetOnEvent($GUI_EVENT_CLOSE, "DoCloseSettings") $BtnXXX = GUICtrlCreateButton ("xxx", 250, 10, 30, 30) GUISetOnEvent (-1, "xxx") EndFunc Func ShowSettingsGUI () GUISetState (@SW_SHOW, $hSettingsGUI) WinActivate ($hSettingsGUI) _DebugOut ("done ShowSettingsGUI") EndFunc Func AAA() _DebugOut ("A") EndFunc Func xxx() _DebugOut ("X") EndFunc Func DoCloseSettings () _DebugOut ("close settings GUI") GUISetState (@SW_HIDE, $hSettingsGUI) WinActivate ($hGUI) EndFunc Thanks in advance for further hints!
  8. Dear experts, I create 2 GUIs in separate functions and use the GUIOnEventMode, The firstly created GUI works fine, but the second one does not create events. Is there anything that distingushes between the first GUI an d a later created one, so that one creates the events and the other does not? Thanks in advance for your hints!
×
×
  • Create New...