
sksbir
Active Members-
Posts
76 -
Joined
-
Last visited
Profile Information
-
Location
Lyon(France)
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
sksbir's Achievements

Wayfarer (2/7)
0
Reputation
-
Hi Using GUICtrlCreateEdit in a common autoit program with GUI : $textResult is an edit box, which is only filled with GUICtrlSetData - creating edit box with this parameters : CTRL + A is ok, but edit box is not read only. $textResult = GUICtrlCreateEdit("", 168, 120, 313, 401,BitOR($WS_VSCROLL, $WS_HSCROLL)) - creating edit box with this parameters : edit box is read only, but CTRL + A is no more working : you must select lines with mouse before using CTRL+C $textResult = GUICtrlCreateEdit("", 168, 120, 313, 401,BitOR($WS_VSCROLL, $WS_HSCROLL,$ES_READONLY)) currently using solution described here at end of topic : https://www.autoitscript.fr/forum/viewtopic.php?t=6581 but I want to know if there is a more convenient way
-
That was a quick answer. The Coyote must be close by "eval" will be closer to my need. Thank you
-
Hi Trying this from autoit v3.3.14.5 and SCITE 3.19.102.1901.0 : help file , page "Language Reference - Variables" , sample autoit script about maps: Maps must be declared before use by defining their scope using the 'Global/Local/Static' keywords. Local $mControls[] So is my test script : only with this local declation. -check syntax is OK - running script : test.au3" (13) : ==> Variable subscript badly formatted.: Local $mControls[] Local $mControls[^ ERROR ->14:51:49 AutoIt3.exe ended.rc:1 any clue ?
-
_Excel_RangeFind loop call crashs random
sksbir replied to sksbir's topic in AutoIt General Help and Support
and how far did it works ? did your counters approach mine or not ? -
_Excel_RangeFind loop call crashs random
sksbir replied to sksbir's topic in AutoIt General Help and Support
water, did you achieve to reproduce the problem at yours , or I'm alone to have this problem ? -
_Excel_RangeFind loop call crashs random
sksbir replied to sksbir's topic in AutoIt General Help and Support
I was afraid that you answer this. I copy-paste the code in your last reply and run it ( just to be sure I EXACTLY run the same ) : still @error=4, @extended=1 after random loops, mostly at 10th search. I'm using office 2010 / windows 7 32 bits ( Office laptop ) . I suspect some memory leak problem. May you change the end of test script ? for $BCL1= 1 to 100 For $CPT = 1 To $LSTTABSERVEUR[0] If $LSTTABSERVEUR[$CPT] <> "" Then $aResult = _Excel_RangeFind($oWorkbook, $LSTTABSERVEUR[$CPT]) If @error Then Exit MsgBox($MB_SYSTEMMODAL, "_Excel_RangeFind/" & $BCL1 & "," & $CPT , "Error searching the range." & @CRLF & "@error = " & @error & ", @extended = " & @extended) EndIf Next Next By me, It crashes at 39,5 , 39,4 ... not 1,9 has expected... just because I removed _arraydisplay from loop ? ... strange strange....another clue would be that a timeout is at work somewhere.--> edit . no. with a sleep(5) or sleep(10) or sleep(100) added in loop, still crashing at 39,5 [edit] I re-run a series of runs, and it's always 39,6 until now. [edit] with _ArrayDisplay($aResult) in loop, crash at 2,12... -
_Excel_RangeFind loop call crashs random
sksbir replied to sksbir's topic in AutoIt General Help and Support
ok There were here two different problems, and one is now solved. 1st failure was here and this explains why I got a result just for 1st item of the array: other items were prefixed with @LF character. $LSTTABSERVEUR=StringSplit($LSTSERVEUR,@CR) And correction is $LSTTABSERVEUR=StringSplit($LSTSERVEUR,@CRLF,$STR_ENTIRESPLIT) The other problem is still here : script crashs at 8st or 9st loop In your code, change array init with this to meet the problem Local $LSTTABSERVEUR[] = [12, "AZESRVSIG00030", "AZESRVSIG00031", "AZESRVOOL00001", "AZESRVOOL00002", "AZESRVOOL00003", "AZESRVDGG20001", "AZESRVSIG00030", "AZESRVSIG00031", "AZESRVOOL00001", "AZESRVOOL00002", "AZESRVOOL00003", "AZESRVDGG20001"] -
_Excel_RangeFind loop call crashs random
sksbir replied to sksbir's topic in AutoIt General Help and Support
So I did in first post. 1/ copy the whole sample in clipboard , launch : you will find AZESRVSIG00029, but not the next : AZESRVSIG00027 ... break or go until crash. 2/ exclude the first from selection, copy in clipboard, launch : you will find AZESRVSIG00027.... -
Hi I'm trying to use _Excel_RangeFind with autoit v3.3.14.3 _Excel_RangeFind is called in a loop. The first search works, the next don't find anything ( and not due to keyword which don't exists ) . After between 4 and 9 loops ( so far), I get @error=4, @extended=1 I created a test2.xlsx sheet, and and test2.au3 Here is code for test2.au3: [edit] Added excel sheet. Has test, you must copy data in your clipboard.here is a sample: test2.xlsx
-
runwait was always intented to be a blocking function, but on former version of autoit, there was a bug , which conduct in certain condition runwait to operate in the same manner has run. This is what I have discovered and described above. Here are more explanations : - with autoit former than 3.2.12.0, runwait acts like run : So the scripting code included some winwait and winwaitclose instructions to detect the real end of setup process - with 3.2.12.0 and more recent, runwait acts has it is supposed to do, but the scripting code failed because winwait and winwaiclose steps were working after the end of setup, so there was no chances to get the code running (because windows winwait was waiting for was already closed), and this gave the feeling that winwait and winwaitclose were not working. Once this was established, correcting the scripting code was easy : I had just to keep the runwait instruction, and delete the whole "winwait" and "winwaitclose" instructions.
-
A little new to autoit and needing some help
sksbir replied to 1hand0fg0d's topic in AutoIt General Help and Support
hello statement #Requireadmin is to ask for admin permission. has your users have no admin permission, this shouldn't be used. Once IE is launched with elevated rights, you can not stop user to load an other URL in IE and even launch an other application from IE . example : just type "c:" instead an URL in IE window.... So this is definitively not the solution. -
Hello I'm using a virtual machine installed with windows XP SP3 ( and last updates , dotnet 4 ) for installation test purpose. I tried to use au3recorder, everything works well during recording, but when I stop recording, I just get nothing regarding mouse action. using scite 6/10/2012 and autoit v3.3.8.1 For example, - If I just record mouse clic to bring notepad window in front, nothing is recorded. - if I input some text in notepad window, I will get something like _WinWaitActivate("Sans titre - Bloc-notes","") Send("{SHIFTDOWN}xxxx{SHIFTUP}") Any idea ?
-
hello I'm trying to debug an old autoit source which launch a 16bits installation program under windows XP SP3. Autoit is used to detect the end of installation. Setup is automatic ( no user interaction ), but not silent. Event launched with runwait, setup will immediately give control back. setup will show a full window, and when window desappears, setup is finished. This is the way the programmer choosed to detect the end of setup process : Using process (ProcessExists and so on ) is impossible because setup is running in 16 bit emulation process : windows XP launch a process called "NTVDM", and this process will remain active even after setup is finished. Here is the script: I wanted to upgrade autoit version used by this program, but with autoit 3.3.8.1, windows from setup are just ignored. After searching the exact release of autoit - windows are well detected with autoit 3.2.10.0 - windows are not detected with autoit 3.2.12.0 changelog says for autoit 3.2.12.0 : "Fixed: WinWaitActive() not matching (more frequent with Windows Vista)." I already know that one solution is just to remain with 3.2.10.0 of autoit, but any other idea is welcome Thanks. [edit] found solution to my problem : since autoit 3.2.12.0, runwait runs has expected, that is, waits that launched setup exits. This was really difficult to detect once changelog headed me on a wrong track. ( there is no word in changelog about runwait, but something was changed about it ) setup which is launched start full screen windows, so It was not obvious to see that windows detection was not made at good time. if there is a lesson to be learned here, it's that things are not always what they seem to be.
-
Hello Your code at #10 is great. I used it to locate where "TNSNAMES.ora" files should be. Thank's a lot, it works well. I may suggest you a litte enhancement : I have to locate "ORACLE_HOME" entries, but retrieve the contents of the registry entries. today, the code looks like this, and has you can see, it's a little bit complicated to get the values. Dim $CLE_INSTALLATION_ORACLE $CLE_INSTALLATION_ORACLE=_RegSearch("HKLM\Software\Oracle","ORACLE_HOME",2,True) For $CPT = 1 To $CLE_INSTALLATION_ORACLE[0] $TEST=StringInStr($CLE_INSTALLATION_ORACLE[$CPT],"\",0,-1) $KEYCHEM=StringLeft($CLE_INSTALLATION_ORACLE[$CPT],$TEST-1) $KEYVAL=StringMid($CLE_INSTALLATION_ORACLE[$CPT],$TEST+1) $TEST=RegRead($KEYCHEM,$KEYVAL) $TNSFIC=$TEST & "\network\admin\tnsnames.ora" If FileExists($TNSFIC) Then It would be nice to have an option to get an array of values, instead an array of regkeys...
-
_IECreateEmbedded() and Javascript popup (hang)
sksbir replied to quacky's topic in AutoIt General Help and Support
Thank's a lot , this solution works great! here is the new code for my example: Sorry that you had to give your solution a second time 2 years after, but the first time, it was not so obvious to realize that you where right ( because of others replys without quoting)