FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   Add to FavoritesAdd to Favorites  * Code Snippets
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    RSS Get RSS Feed  


Got to Text

 
Post new topic   Reply to topic    Macro Scheduler and Windows Automation Forum Index -> Beginners
View previous topic :: View next topic  
Author Message
HolyAbsolut
Newbie


Joined: 21 Sep 2011
Posts: 17

Reputation: 100

PostPosted: Wed Sep 21, 2011 10:42 am    Post subject: Got to Text Reply with quote

Hi @ all,

I hope this forum is still allive. I only see some very old posts.
Anyway I have a problem. Maybe it is quite easy but I do not know how to solve it.

At the begining of my script I open a dialog where I got various %variables%
this are used in the further script.

Now I insert an unique Nr e.g. "7483932"
Additional I have one list. In one of the rows this Nr is written.
Now I need a macro who find this Nr and goes to this position and click or mark it.

I have now Idea how to solve this.


My second problem with my script is.
At the begining of my script I open a dialog where I got various %variables%
this are used in the further script.

Now i need to open some more dialogs and want to use the %variables% from the dialog before.

e.g.

Please insert %Variable% to field 5.

But instead to insert the variable the send the text "%variable%". what I have to do that this works.

If I use messagemodal> It works perfekt.


I thank you for efforts in advance.


Best Regards

HolyAbsolut

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
Marcus Tettmar
Site Admin


Joined: 19 Sep 2002
Posts: 5633
Location: Dorset, UK
Reputation: 1391
votes: 58

PostPosted: Wed Sep 21, 2011 12:27 pm    Post subject: Reply with quote

This forum is very much alive! You can't be looking hard if you're only seeing old posts. The posts preceding yours are all from the last few days including some others posted today!

Are you referring to a list box? Usually you can just send the text to the list box to select it. See:
http://www.mjtnet.com/blog/2009/07/02/selecting-from-a-drop-down-list/

You don't say which version of Macro Scheduler you are using. With v12 the way to modify the property of a dialog object (e.g. populate an object's text with the content of a variable) is to simply use the SetDialogProperty function. See the sample macros or search these forums. Plenty of examples exist.

Also see these video tutorials:
http://www.mjtnet.com/demos/dialogs1.html
http://www.mjtnet.com/demos/dialogs2.html

With older versions of Macro Scheduler you would need to set the dialog object variables and then call ResetDalogAction. It's more tricky but again plenty of examples exist here. My advice is to switch to v12 as it is *MUCH* more easy and also way more powerful.
_________________
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message Visit poster's website Facebook ID
HolyAbsolut
Newbie


Joined: 21 Sep 2011
Posts: 17

Reputation: 100

PostPosted: Wed Sep 21, 2011 6:20 pm    Post subject: Reply with quote

Hi Mr Tettmar,
Nice to see that I was wrong.Thanks for your prompt response.

I checked the links which you send me,great Videos, but it seems that they do not solve my problem.So I try to explain myself better.
I have an sheet like this one.(No Excel sheet!)

Sheet
Row1 Green
Row2 Blue
Row3 Screen
Row4 Taste

Now Im searching a script who can find for example "Screen" click there so that I can insert the commands
press right*3
send> 04

Do you know any command for such an process?

FYI I use v12.1.10.e

Thanks for your help.

Regards

Maximilian Braun

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
Marcus Tettmar
Site Admin


Joined: 19 Sep 2002
Posts: 5633
Location: Dorset, UK
Reputation: 1391
votes: 58

PostPosted: Thu Sep 22, 2011 8:25 am    Post subject: Reply with quote

We're in the dark here. What application is this sheet in? Does that application have a search function? The answer may be with the application itself. If you were looking for a value in the sheet manually how would you do it?

Is the text that you are looking for known at design time? Is it just one piece of text or could the string be anything/unknown at design time?
_________________
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message Visit poster's website Facebook ID
HolyAbsolut
Newbie


Joined: 21 Sep 2011
Posts: 17

Reputation: 100

PostPosted: Thu Sep 22, 2011 10:17 am    Post subject: Reply with quote

Hi,
it has no search function.If I have to do manually, I do it manually. I look where is the nr and follow the line on left side and press 1+enter.

What you mean with design time?
Its all one text.There are no tabs no windows.



Attached a screenshot to have an better idea what im talking about.

http://img13.imageshack.us/img13/8257/unbenannttm.jpg

Thanks

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
Marcus Tettmar
Site Admin


Joined: 19 Sep 2002
Posts: 5633
Location: Dorset, UK
Reputation: 1391
votes: 58

PostPosted: Thu Sep 22, 2011 10:26 am    Post subject: Reply with quote

To rephrase my question. Are you *always* looking for the same word. Is it always "Screen" or could it be something else. Do you know what the word will be when you write your script?

If so you can use Image Recognition. Capture the word as an image and then use FindImagePos to find it's location on the screen. Then apply an x offset to move the mouse to the right of it and click.
_________________
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message Visit poster's website Facebook ID
HolyAbsolut
Newbie


Joined: 21 Sep 2011
Posts: 17

Reputation: 100

PostPosted: Thu Sep 22, 2011 12:42 pm    Post subject: Reply with quote

No, It is not fix. It will be a %variable% which is insert at the beginning of the script

So I thinks this option does not work. -.-

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
adroege
Automation Wizard


Joined: 07 Dec 2004
Posts: 438

Reputation: 630
votes: 30

PostPosted: Thu Sep 22, 2011 1:17 pm    Post subject: Reply with quote

From your screen shot it looks like you are running a terminal emulator program which is connected to a mainframe application. Many terminal emulator programs have the ability to capture the text which is displayed. Then macro scheduler could simply read this file and parse the ASCII text. Other terminal emulators also have an API that is programatically accessible
which would also work.

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
Marcus Tettmar
Site Admin


Joined: 19 Sep 2002
Posts: 5633
Location: Dorset, UK
Reputation: 1391
votes: 58

PostPosted: Thu Sep 22, 2011 2:06 pm    Post subject: Reply with quote

And if this is a TELNET client then you can avoid trying to manipulate it and use Macro Scheduler's built in Telnet protocol commands.
_________________
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message Visit poster's website Facebook ID
Display posts from previous:    View previous topic :: View next topic  
Post new topic   Reply to topic    Macro Scheduler and Windows Automation Forum Index -> Beginners All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group