Search found 52 matches

by Esabik
Wed Jan 05, 2022 8:00 pm
Forum: Technical / Scripting
Topic: Calculate End Time from Gettime>
Replies: 5
Views: 3640

Re: Calculate End Time from Gettime>

Dorian (MJT support) wrote:
Wed Jan 05, 2022 6:20 pm
From the Version History page it looks like TimeAdd was added in 2011 in v13. Your version is over a decade old and no longer supported.
Oh yes, I've found that I had the newer version downloaded, just never upgraded that version on the PC. :cry:

Thank you!!! :mrgreen:
by Esabik
Wed Jan 05, 2022 5:28 pm
Forum: Technical / Scripting
Topic: Calculate End Time from Gettime>
Replies: 5
Views: 3640

Re: Calculate End Time from Gettime>

There you go : Gettime>now Let>minremain=174 TimeAdd>%now%,M,%minremain%,EndTime MDL>Endtime Some links for you : Date/Time Commands TimeAdd Ah interesting. Shorter than I thought but, it is not working for me. So the machine I use scripting is offline because its an older os(win7) that has network...
by Esabik
Wed Jan 05, 2022 3:30 pm
Forum: Technical / Scripting
Topic: Calculate End Time from Gettime>
Replies: 5
Views: 3640

Calculate End Time from Gettime>

Hi I am using an excel with my script to do bulk transactions in our MRP system. So if the excel has 697 records to transact and with each loop it takes 15 seconds for each record to process. This would be a total of 10,455 seconds or approx 174 minutes. After my script cycles a record the remaining...
by Esabik
Mon Jan 03, 2022 9:57 pm
Forum: Technical / Scripting
Topic: Convert 2 digit after decimal to minutes
Replies: 9
Views: 5241

Re: Convert 2 digit after decimal to minutes

Step-by-step is a great helper when it comes to learning. If you wanted the integer you can use int. Let>a=4.36 Let>b={int(%a%)} Mdl>%b% Nice this is very arhythmical, but what if my values are all alpha and I was say the last 3 places from a string which has value form my data? balluny ballsny bal...
by Esabik
Mon Jan 03, 2022 8:24 pm
Forum: Technical / Scripting
Topic: Convert 2 digit after decimal to minutes
Replies: 9
Views: 5241

Re: Convert 2 digit after decimal to minutes

Can you get the 0.36 using my method then multiply by 100? Well this was not what I was used to, but it works perfect :lol: :lol: . Different software packages and being not a super programmer slows me down lol. Let>a=4.36 Mdl>%a% Let>b={frac(%a%)} Mdl>%b% let>mins={int(%b%*60)} mdl>mins I saw it t...
by Esabik
Mon Jan 03, 2022 6:11 pm
Forum: Technical / Scripting
Topic: Convert 2 digit after decimal to minutes
Replies: 9
Views: 5241

Re: Convert 2 digit after decimal to minutes

Thank you for responding. I have worked with a trim that I can get the 2 far right characters from a string with different a software package I used in the past. Its not the same with macro. I just want to understand how to grab just the 2 digits(from the right) from the variable 4.36 meaning just t...
by Esabik
Mon Jan 03, 2022 4:14 pm
Forum: Technical / Scripting
Topic: Convert 2 digit after decimal to minutes
Replies: 9
Views: 5241

Convert 2 digit after decimal to minutes

Hi I am sure this is probably out here, but was not able to find it. I just want to take for example 4.36 hour and use the .36 convert to minutes as a whole number. ( 4 hr 21 min)etc... So I was was trying to grab the right most 2 characters and then calculate the minutes. I can't seem to locate the...
by Esabik
Tue Jan 09, 2018 7:09 pm
Forum: Technical / Scripting
Topic: Mouse Move LClick not stopping timeout RDC
Replies: 0
Views: 6457

Mouse Move LClick not stopping timeout RDC

Hi I have tried multiple times to use a mouse move and LClick to keep the RDC session from timing out and to no avail. Windows server 2012 running windows 8. I have tried this and it appears to do the functions but after 30 minutes I get timed out off the server. I have this in a loop and it looks l...
by Esabik
Thu Jan 04, 2018 7:04 pm
Forum: Technical / Scripting
Topic: Repeat and use WaitWindowOpen for exit of loop
Replies: 5
Views: 5349

Re: Repeat and use WaitWindowOpen for exit of loop

//I don't know what you're using, but this should prevent a Windows screen saver //And should not interfere with using the mouse. GetCursorPos>CurX,CurY MouseMove>CurX,CurY Until>WW_Result=TRUE //Adobe opened and the script continues past the repeat loop. [/code] We are on Windows Server 2012 and i...
by Esabik
Thu Jan 04, 2018 4:33 pm
Forum: Technical / Scripting
Topic: Repeat and use WaitWindowOpen for exit of loop
Replies: 5
Views: 5349

Re: Repeat and use WaitWindowOpen for exit of loop

Thank you for posting the info. Though I am not certain how to incorporate that in my script. Can I put the loop in another loop? I am not at an open session, I am waiting for something to finish processing along with using a mouse mover. Sorry if this is a little confusing. Since I already have a l...
by Esabik
Wed Jan 03, 2018 6:43 pm
Forum: Technical / Scripting
Topic: Repeat and use WaitWindowOpen for exit of loop
Replies: 5
Views: 5349

Repeat and use WaitWindowOpen for exit of loop

Hi Is it possible to code a script that is using Repeat with a WaitWindowOpen as the "Until" somehow?? Or is there something similar I am missing? We have a process running that I would use WaitWindowOpen and when it finishes I would like to end the loop. ex.... Repeat>r blah blah Until>WaitWindowOp...
by Esabik
Mon Nov 27, 2017 6:34 pm
Forum: Technical / Scripting
Topic: Database Popup Window my code not working**Fixed**
Replies: 1
Views: 2107

Database Popup Window my code not working**Fixed**

Hi I was confused with IfWindowOpen after I looked at the Help example. Help Shows this and didn't example the "false" statement in my version of macro: Example IfWindowOpen>Notepad - [Untitled],donotepad .. .. Label>donotepad or, with a wildcard : IfWindowOpen>notepad*,donotepad .. .. Label>donotep...
by Esabik
Fri Oct 13, 2017 7:54 pm
Forum: Technical / Scripting
Topic: Dropdown List input box
Replies: 2
Views: 3418

Re: Dropdown List input box

Hi, could not get yours to open up and work see image, but it gave me the additional ideas I needed. Thank you for getting back so quickly!!! :D Here's what I got finally. Great ideas and its working now. Dialog>CustType object CustType: TForm Left = 364 Top = 153 HelpContext = 5000 BorderIcons = [b...
by Esabik
Thu Oct 12, 2017 3:32 pm
Forum: Technical / Scripting
Topic: Dropdown List input box
Replies: 2
Views: 3418

Dropdown List input box

Hi Was trying to have a user Input early in the script, but I want to specify only 3 options for them to select from. Looking at list Box does not seem to be what I need. Similar to excel List mostly. Microsoft Excel - Book1.jpg Was not clear on how to search this one in the forum..... Has anyone do...
by Esabik
Tue Oct 10, 2017 2:17 pm
Forum: Technical / Scripting
Topic: Processing the child window when it pops up
Replies: 3
Views: 4852

Re:

Marcus Tettmar wrote:Use OnEvent with a WINDOW_OPEN event handler. In the event handler subroutine search the active window for the Yes button .....
Good info Marcus have a similar scenario and this is what I needed.
Thanks :mrgreen:
Sign up to our newsletter for free automation tips, tricks & discounts