JoGa
Active Members-
Posts
37 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
JoGa's Achievements
Seeker (1/7)
0
Reputation
-
Greetings, here is a Autoit3 v3.3.14.5, 64 Bit installation on windows 10 with current updates. In a simple script I'm Dllcall'ing a 64 bit dll. # T1.au3 Local $name = "T1DLL.dll" if (FileExists($name)) Then ConsoleWrite("DLL '" &$name &"' exists" &@CRLF) EndIf Local $DLL = DllOpen($name) if (@ERROR OR $DLL = -1) then ConsoleWrite("DllOpen ERROR=" &@ERROR &" DLL=" &$DLL &@CRLF) Else ConsoleWrite("DllOpen Success" &@CRLF) endif DllCall($DLL, "none:cdecl", "SomeFunction", "str", "DLL Call from T1.au3") if (@ERROR) then ConsoleWrite("DllCall ERROR=" &@ERROR &" DLL=" &$DLL &@CRLF) Else ConsoleWrite("DllCall Success" &@CRLF) endif The C code contains one 64 bit OpenCV call: cv::destroyAllWindows();. Excuting T1.au3 with SciTE gives: If the c code is compiled *without* the OpenCV call T1.au3 runs successful: I checked T1DLL.dll, it's definitely a 64 bit dll. What could cause the problem? Any hint would be very much appreciated. Thanks Wolf
-
Thanks for your reply; The OS is windows 7, the script is run 20 minutes+ after reboot. It must have to do with Windows security stuff, perhaps I have to declare the network drive as save or so... The code: GUICreate("Test", 200, 30, 500, 700) Local $L1 = GUICtrlCreateLabel("", 100, 10, 30, 30) GUISetState(@SW_SHOW) Local $t=10 do GUICtrlSetData($L1, $t) Sleep(500) $t -= 1 until(NOT $t) Exit(0)
-
Greetings, running D:\Programs\AutoIt3\AutoIt3.exe X:\Test.au3 with Administrator rights I get the error X: is the networkdrive No problem when running as standard user. Any hints would be very much appreciated.
-
ScreenCapture - tooltip not captured
JoGa replied to JoGa's topic in AutoIt General Help and Support
Thanks for your comments. It's the Aero thing which prevents the tooltip being captured. However, enabling Aero slows down BilBlt used in another app by the factot of 15-20! Anyway, thanks and have a nice day! -
Greetings, with the below code the Tooltip does not show in the captured image. Any hints? Thanks. #include <ScreenCapture.au3> ToolTip("BlaBla Tooltip", 500, 300) Sleep(1000) _ScreenCapture_Capture(@MyDocumentsDir &"\Image1.jpg", 0, 0, 1600, 1000, True) MsgBox(0, "TTT", "ScreenCapture done") ShellExecute(@MyDocumentsDir &"\Image1.jpg")
-
Greetings! Is there a method to change colors, back- and foreground, of a window element not belonging to the current process, similar as it works with 'ControlSetText', which accepts the Control ID from the foreign window element. Thanks for reading and hints, Jo
-
Hi folks, whats the difference between _WinAPI_SetFocus($hwnd) and WinActivate($hwnd)? Both set focus to the specified window. Thanks for enlightment . Jo
-
Thanks M23, that was fast! And it does exactly what I want to do. Jo
-
Greetings, I'm using AdlibRegister("AdlibFunc", 2000) to run a function every 2 seconds. However, sometimes the func my take longer than the time scecified. To prevent the functions running overlapped, I use 'AdlibUnRegister("AdlibFunc")' as the first statement in "AdlibFunc". This appears not to work as I expect. Below is a model of the problem Code: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Proc1Form1", 309, 158, 353, 167) $Label1 = GUICtrlCreateLabel("Label1", 32, 24, 100, 30) GUICtrlSetFont(-1, 15, 400, 0, "MS Sans Serif") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Opt("GUIOnEventMode", 1) ; Change to OnEvent mode GUISetOnEvent($GUI_EVENT_CLOSE, "GUI_checkGUI") AdlibFunc() $CNT = 0 while(true) $CNT += 1 GUICtrlSetData($Label1, "CNT=" &$CNT) Sleep(100) wend Func GUI_checkGUI() Local $tab, $msg If (@GUI_CTRLID = $GUI_EVENT_CLOSE) Then exit EndIf EndFunc Func AdlibFunc() AdlibUnRegister() GUICtrlSetData($Label1, "XXXX") Sleep(3000) AdlibRegister("AdlibFunc", 2000) EndFunc Any hints? JO
-
Thanks al lot, Robert, that's what I was looking for. Afterwards, it's very obvious :-) Wolf
-
Greetings! I want to write AutoIt's functions WinActivate() and WinWaitActive() in c/c++ using the win32 api and wonder where I can find AutoIt's implementation of the named functions. Thanks for hints Wolf
-
Greetings! I have an Adlib function "runAdlib" which normally takes 0.1 seconds. The function is registered to run every 2 seconds. Under certain circumstances the Adlib function has to do some more work, running between 0.5 and perhaps 3 seconds. To prevent the function to be run while active, I do a AdlibUnRegister("runAdlib") as 1st statement in the function. The function is registered before exit of the function: AdlibRegister("runAdlib", 2000) See also attached sample program "AT1.au3". However, it appears that the duration of the function runAdlib is accumulated to the interval time between I want the function to be run. This ends up in an interval way below 2 seconds if the adlib function takes more time. The system is WinXP/SP3 and AutoIt-3.3.6.1. What am I doing wrong? Do I misunderstand the AdlibRegister call? Attached is a sample code (AT1.au3) to describe the issue. The logfile AT1.log, produced by AT1.au3, shows the following: 17:04:45.078 runAdlib-in after=21892.276251 17:04:47.203 runAdlib-out elapsed=2.152 17:04:49.234 runAdlib-in after=2.007809 <--- ok, 2 seconds 17:04:51.375 runAdlib-out elapsed=2.159 17:04:51.406 runAdlib-in after=0.020625 <--- too soon 17:04:53.515 runAdlib-out elapsed=2.130 17:04:53.562 runAdlib-in after=0.020682 <--- too soon 17:04:55.671 runAdlib-out elapsed=2.123 ... Thanks for hints and enlightment :-) AT1.au3
-
OK, tnx for your time. Jo
-
Greetings! I'm puzzled: $n=0 if ($n = "s") then MsgBox(0,"","n=" & $n & " s") Why does this comparison gives true? Actually "s" can be any string. Thanks for enlightment :-) Jo
-
Currently I transform arrays to strings and vice versa. Works, but not an elegant solution, I'd rather would have done all the work in the plugin.