Search found 15 matches

by DingDong
Fri May 21, 2010 4:29 pm
Forum: Technical / Scripting
Topic: SetControlText not working issue
Replies: 8
Views: 8907

Sorry but the help is OK. I repeat the help file is OK.
My mistake. I was not using the proper handle. By using it:

Code: Select all

Let>WIN_USEHANDLE=1
SetControlText>tfHandle,ThunderRT6TextBox,15,%Nom_Client%
Everything worked as the helpfile says it.

There is always something to learn.

DingDong
by DingDong
Fri May 21, 2010 4:24 pm
Forum: Technical / Scripting
Topic: SetControlText not working issue
Replies: 8
Views: 8907

Hello, I finally manage it. The help file says: If WIN_USEHANDLE is set to 1 WindowTitle must be a window handle. I followed it and it did not worked. I edit the script with the following: Let>WIN_USEHANDLE=0 SetControlText>Tradition*,ThunderRT6TextBox,15,%Nom_Client% and the SetControlText worked. ...
by DingDong
Fri May 21, 2010 3:56 pm
Forum: Technical / Scripting
Topic: SetControlText not working issue
Replies: 8
Views: 8907

Hello, I edit the script with the following: ////Démarrer Trad T-20//// Let>RP_WAIT=2 Run Program>C:\Desjardins\Suvriq\Suvriq.exe /SUVRIQ /REP:100 /PROD:T20HARMTRAD WaitReady>1 Wait>5 ////////////Attendre l'ouverture de Traditionnel en Fr ou An Let>WIN_USEHANDLE=0 WaitWindowOpen>Tradition* SetFocus...
by DingDong
Fri May 21, 2010 1:34 pm
Forum: Technical / Scripting
Topic: SetControlText not working issue
Replies: 8
Views: 8907

Thank you mtettmar for your reply.

The Excel version is 2003.

Here's a view of the textbox control (wich is ThunderRT6TextBox in the Viiew System Windows tool utility) where we see the label Nom.

Image

thank you!
by DingDong
Fri May 21, 2010 12:45 pm
Forum: Technical / Scripting
Topic: SetControlText not working issue
Replies: 8
Views: 8907

Thank you mtettmar for your quick reply. What I want is to set set a value in the window control not to set a value in a spreadsheet cell. By reading a thread on this forum about the SetControlText command to accelerate the automation of a gui instead of of sending keypress it gave me the idea to us...
by DingDong
Fri May 21, 2010 12:10 pm
Forum: Technical / Scripting
Topic: SetControlText not working issue
Replies: 8
Views: 8907

SetControlText not working issue

Hello, With the following code I am able to identify a and move to a ThunderRT6TextBox. But when I use the SetControlText with a value from an Excel spreadsheet, that command does not work. I have tried with a simple string an that does'nt work. I have use the the View System Windows to confirm the ...
by DingDong
Tue May 18, 2010 2:31 pm
Forum: Technical / Scripting
Topic: Command line with parameter
Replies: 2
Views: 3204

Thank you JRL, the last parameter was the problem.

You just made my day, still in the am in Canada.

DingDing
by DingDong
Tue May 18, 2010 2:16 pm
Forum: Technical / Scripting
Topic: Command line with parameter
Replies: 2
Views: 3204

Command line with parameter

Hello, Could someone help me to correct this piece of scripting. The following won't work: RunProgram>C:\Desjardins\Suvriq\Suvriq.exe /SUVRIQ/REP:100/PROD:UL,1 But will work in Excel VBA, so I know the command line is OK: Sub ActivateMyLine() Dim A A = Shell("C:\Desjardins\Suvriq\Suvriq.exe /SUVRIQ ...
by DingDong
Thu May 13, 2010 1:35 pm
Forum: Technical / Scripting
Topic: DBQuery and SQL function COUNT not working
Replies: 7
Views: 7021

mtettmar,

I understand now, thank you for your patience and your eplanations.

DingDong
by DingDong
Thu May 13, 2010 1:16 pm
Forum: Technical / Scripting
Topic: DBQuery and SQL function COUNT not working
Replies: 7
Views: 7021

Thank you mtettmar,

Could you tell me how will I retreive the data inside the row bring by the first statement and show it in a message.
by DingDong
Thu May 13, 2010 12:29 pm
Forum: Technical / Scripting
Topic: DBQuery and SQL function COUNT not working
Replies: 7
Views: 7021

Thank you mtettmar and adroege for your reply. By changing the statement to: With the following Let>SQL=SELECT ClientID FROM Clients The result show in the message is 4. With the COUNT(*) function the result is still 1. The ClientID field is an indexed field and null value is not permitted.
by DingDong
Thu May 13, 2010 9:41 am
Forum: Technical / Scripting
Topic: DBQuery and SQL function COUNT not working
Replies: 7
Views: 7021

DBQuery and SQL function COUNT not working

Hello, Database Table Clients has 4 records. I run the following script and the return result is 1. I would expect 4. Is there a problem with the DBQuery function or the script? Thankyou! //Connect to Datasource // Let>str=Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\sample.mdb;Uid=Admin;Pwd=toto...
by DingDong
Tue May 11, 2010 3:05 pm
Forum: Technical / Scripting
Topic: ADO connection to MSAccess 2000
Replies: 4
Views: 5520

Thank you JRL for your answer.

I have edit the script with another DB and the script worked.

This post should be edit as solved.

Again, thank you all.
by DingDong
Tue May 11, 2010 12:46 pm
Forum: Technical / Scripting
Topic: ADO connection to MSAccess 2000
Replies: 4
Views: 5520

Thank you adroege for your answer. I have adjust the code. //Connect to Datasource // Let>str=Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Desjardins\Suvriq\Repres.mdb;User Id=admin;Password=XGVDLX; DBConnect>str,dbRep // //Perform SELECT query // Let>SQL=select * from CLIENTS DBQuery>dbRep,SQL,C...
by DingDong
Tue May 11, 2010 11:47 am
Forum: Technical / Scripting
Topic: ADO connection to MSAccess 2000
Replies: 4
Views: 5520

ADO connection to MSAccess 2000

Hello, Register to MS 11. Running it from XP SP2. I want to connect with ADO to a pw protected MSAccess DB located on the C:\ drive. I run the following script without success. //Connect to Datasource // Let>str=Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Desjardins\Suvriq\Repres.mdb;User Id=adm...
Sign up to our newsletter for free automation tips, tricks & discounts