Search found 23 matches
- Tue Jun 18, 2019 7:32 pm
- Forum: Scripts and Tips
- Topic: Find or Wait for Object then Click other object
- Replies: 5
- Views: 10163
Re: Find or Wait for Object then Click other object
Can you explain what you mean? Hi Marcus, What I mean is for example, In a webpage you have buttons like submit, preview, save draft etc. I'd like to assign a shortcut key to some of these, if I press say the "S" it will save draft, if I press "T" key it will submit. I hope that clarifies it better.
- Tue Jun 18, 2019 8:03 am
- Forum: Scripts and Tips
- Topic: Find or Wait for Object then Click other object
- Replies: 5
- Views: 10163
Re: Find or Wait for Object then Click other object
Also is it possible to bind a keyboard key to an object?
- Tue Jun 18, 2019 4:13 am
- Forum: Scripts and Tips
- Topic: Find or Wait for Object then Click other object
- Replies: 5
- Views: 10163
Re: Find or Wait for Object then Click other object
Here is my attempt, its not working but hopefully it explains further what I'm trying to do. SetFocus>Web App - Mozilla Firefox label>webapp if UIClick>{"Web App - Mozilla Firefox"},{"Search"} endif label>noresults FindWindowWithText>No results found,0,strTitle If>NumFound>0 UIClick>{"Web App - Mozi...
- Mon Jun 17, 2019 10:37 am
- Forum: Scripts and Tips
- Topic: Find or Wait for Object then Click other object
- Replies: 5
- Views: 10163
Find or Wait for Object then Click other object
Hi Again!,
I have been playing around with Macro Scheduler again and trying out some new commands. What I want to do is creat a loop where it finds UIAutomation Name: Some text, then click an object thats further up left on the screen. Is this possible?.
I have been playing around with Macro Scheduler again and trying out some new commands. What I want to do is creat a loop where it finds UIAutomation Name: Some text, then click an object thats further up left on the screen. Is this possible?.
- Fri Apr 05, 2019 6:33 am
- Forum: Beginners
- Topic: Difference between GoSub & Goto?
- Replies: 3
- Views: 4006
Re: Difference between GoSub & Goto?
Goto will jump to a label and carry on from there, missing out everything inbetween. So: MDL>Hi Goto>Jump MDL>This line will be skipped Label>Jump MDL>And carry on from here. Whereas Gosub jumps to a Subroutine - a self contained section of code - executes all the code in that subroutine, then goes...
- Fri Apr 05, 2019 6:30 am
- Forum: Beginners
- Topic: Randomize One Wait Time
- Replies: 2
- Views: 3450
Re: Randomize One Wait Time
Yes. Use Random, and Wait. This will wait anywhere between 1 and 10 seconds. Random>10,MyResult Let>MyResult=MyResult+1 MessageModal>I will now wait for %MyResult% Seconds Wait>%MyResult% MessageModal>Well that was fun. :) If you wanted it to wait anywhere from 0-1 seconds (in tenths) you could sim...
- Wed Apr 03, 2019 9:43 am
- Forum: Beginners
- Topic: Image Recognition Script Help Needed
- Replies: 6
- Views: 5499
Re: Image Recognition Script Help Needed
Agreed, wait time is the key to a good working script in this case. Despite this I have still managed to put together a script that does exactly what I want and is very reliable!.Grovkillen wrote: ↑Sun Mar 31, 2019 6:40 amOk, then it makes sense. But like I said. Wait might be your only option here.
- Wed Apr 03, 2019 4:41 am
- Forum: Beginners
- Topic: Difference between GoSub & Goto?
- Replies: 3
- Views: 4006
Difference between GoSub & Goto?
Hi,
I was just wondering what the difference is between the commands "GoSub" and "Goto"?.
I was just wondering what the difference is between the commands "GoSub" and "Goto"?.
- Wed Apr 03, 2019 2:34 am
- Forum: Beginners
- Topic: Randomize One Wait Time
- Replies: 2
- Views: 3450
Randomize One Wait Time
Hi Agian!,
Is it possible to randomize just one wait time in a script between x & x amount of seconds?.
Is it possible to randomize just one wait time in a script between x & x amount of seconds?.
- Wed Apr 03, 2019 2:30 am
- Forum: Beginners
- Topic: Logging Of Script
- Replies: 2
- Views: 2936
Re: Logging Of Script
Thank you Dorian.Dorian (MJT support) wrote: ↑Tue Apr 02, 2019 11:10 amHi, yes, you can do that.
In the editor window you will see the Logging tab.
One thing to note is that logs will not be generated when run from the editor window.
https://www.mjtnet.com/manual/index.html?logging.htm
- Tue Apr 02, 2019 7:03 am
- Forum: Beginners
- Topic: Logging Of Script
- Replies: 2
- Views: 2936
Logging Of Script
Hi Again!,
Could anyone tell me if its possible for my script while its running to keep a log of everything it does along with a time stamp of each action?.
Could anyone tell me if its possible for my script while its running to keep a log of everything it does along with a time stamp of each action?.
- Sat Mar 30, 2019 1:42 pm
- Forum: Beginners
- Topic: Image Recognition Script Help Needed
- Replies: 6
- Views: 5499
Re: Image Recognition Script Help Needed
Is image recognition the only way you can do what you want to do? Since it's the most "analog" way of automation you sometimes are left with only the wait to not miss the images. The best is if you have the possibility to capture the frames with Windows API, as in object IDs etc . Hi Grovkillen, Th...
- Sat Mar 30, 2019 5:06 am
- Forum: Beginners
- Topic: Image Recognition Script Help Needed
- Replies: 6
- Views: 5499
Re: Image Recognition Script Help Needed
Maybe this might explain better as to what I'm trying to achieve: Label>start FindImagePos>%BMP_DIR%\image_2.bmp,WINDOW:Application01,0.7,1,XArr,YArr,NumFound,CCOEFF If>NumFound>0 HoldKey>v,50,0 Wait>0.200 HoldKey>a,50,0 Wait>0.200 HoldKey>g,50,0 Wait>0.200 HoldKey>t,50,0 // Search can take 1-6 seco...
- Sat Mar 30, 2019 1:03 am
- Forum: Beginners
- Topic: Image Recognition Script Help Needed
- Replies: 6
- Views: 5499
Image Recognition Script Help Needed
Hi, I have a script which is using both FindImage and Waitscreen to look for one of two images that will appear. FindImagePos/image_2 & WaitScreenImage/image_1 work fine in the loop, however when FindImagePos/image_4 appears it skips to WaitScreenImage/image_1 and of course it wont find it because i...
- Thu Mar 28, 2019 1:34 am
- Forum: Beginners
- Topic: Workflow Designer Location?
- Replies: 1
- Views: 2475
Workflow Designer Location?
Hi!,
Could anyone tell me if this comes with the trial version of MS 14.5.4e (which I have installed), or is there a separate download trial for this program?
As always thank you for your time in replying
Could anyone tell me if this comes with the trial version of MS 14.5.4e (which I have installed), or is there a separate download trial for this program?
As always thank you for your time in replying