Dynare Forums View Topic

Page 1 of 1
[ 8 posts ]
Print viewPrevious topic | Next topic

Yes, it is normal. You don't have to explicitly execute 'USE sakila' - you can change current schema in main toolbar. If you want to execute a single query (SELECT.) - point cursor on it (or select it) and press CTRL+Enter.

AuthorMessage
Post subject: Translate PureDisHelper to COMATE [Resolved]
Addict

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4814
Location: Lyon - France
Hello
I try since on hour to translate
dhPutValue(Session, '.Screen.Row = %d', 9)
in COMATE
Someone have an idea ?
i have try :
SessionsInvoke('Screen.Row = 9')
SessionsSetProperty('Screen.Row = 9')
and nothing works
Have a good day

_________________
The happiness is a road...
Not a destination

Last edited by Kwai chang caine on Wed Aug 13, 2014 10:18 pm, edited 1 time in total.

Top
  1. All about kiteboarding. World’s largest kite forum for every level. Search all info and get help from thousands of users worldwide. Every questions gets answered. Several different forums for different styles, sports etc.
  2. Jan 18, 2019 View unanswered posts. View active topics; Dynare Topics Posts. On the Dynare Help forum 153 Topics 368 Posts Last post by StephaneAdjemian Tue Mar 31, 2009 9.
  3. EmberGenFX beta is out today - free for all OctaneRender subscribers! OTOY® and JangaFX are very proud to release the first public beta of EmberGenFX - bringing incredible real time GPU simulation tools for creating fire, volumetrics, smoke - and (new in this release) particles - to all OctaneRender subscribers.
  4. Vintage Transistor Radio Discussions. 'I have two kind of oddball issues with a Motorola X31N AM radio which I have not yet removed the chassis from.

Dynare Forums View Topic Examples

Post subject: Re: Translate PureDisHelper to COMATE
Addict

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1155
Location: Amphibios 9
Session or Sessions?
Greetings ... Kiffi

_________________
Hygge


Top
Estimation
Post subject: Re: Translate PureDisHelper to COMATE
Addict

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4814
Location: Lyon - France
Hello KIFFI glad to talk to you
In fact, i try to translate this :
System = dhCreateObject('Atra.System')
If System
dhGetValue('%o', @Session, System, '.ActiveSession')
If Session
dhCallMethod(Session, '.Screen.SendKeys(%T)', @'HelloKcc')
dhPutValue (Session, '.Screen.Row = %d', 2)
Endif

For the moment that code works :
Global.COMateObject AtraSystem
If Not AtraSystem
AtraSystem = COMate_CreateObject('Atra.System')
Endif
But i don't know how translate
dhGetValue('%o', @Session, System, '.ActiveSession')
dhCallMethod(Session, '.Screen.SendKeys(%T)', @'HelloKcc')
dhPutValue (Session, '.Screen.Row = %d', 2)
in COMATE

_________________
The happiness is a road...
Not a destination


Top
Dynare forums view topic examples
Post subject: Re: Translate PureDisHelper to COMATE
Addict

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1155
Location: Amphibios 9
'Extra.System' is not a registered component on my system, so i have to guess, how it works:
EnableExplicit
Define ExtraSystem.COMateObject
Define ActiveSession.COMateObject
Procedure ShowErrorIfAny(Action.s)
If COMate_GetLastErrorCode()
Debug 'Action: ' + COMate_GetLastErrorDescription()
EndIf
EndProcedure
ExtraSystem = COMate_CreateObject('Extra.System')
If ExtraSystem
ActiveSession = ExtraSystemGetObjectProperty('ActiveSession')
If ActiveSession
ActiveSessionInvoke('Screen.MoveTo(2, 2)') ; Move the cursor to row 2, column 2
ShowErrorIfAny('Screen.MoveTo()')
ActiveSessionInvoke('Screen.SendKeys('HelloKcc')')
ShowErrorIfAny('Screen.SendKeys()')
ActiveSessionRelease()
Else
Debug 'ExtraSystemGetObjectProperty('ActiveSession') failed'
EndIf
ExtraSystemRelease()
Else
Debug 'COMate_CreateObject('Extra.System') failed'
EndIf

Greetings ... Peter

_________________
Hygge


Top

Dynare Forums View Topic Free

Post subject: Re: Translate PureDisHelper to COMATE
Addict

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4814
Location: Lyon - France
Thanks a lot KIFFY for your help
I have two time the sentence : 'Action: Method/property not supported by this object' on the debugger

_________________
The happiness is a road...
Not a destination


Top
Post subject: Re: Translate PureDisHelper to COMATE
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
SessionsSetProperty('Screen.Row = 9')

Use the following instead :
SessionsSetProperty('ScreenRow = 9')

COMate doesn't work with the . object separator. It uses the symbol instead.

_________________
I may look like a mule, but I'm not a complete ass.


Top

Dynare Forums View Topic Online

Dynare

Dynare Forums View Topic Store

Post subject: Re: Translate PureDisHelper to COMATE
Addict

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1155
Location: Amphibios 9
Sorry, my fault. As srod wrote:
[...]
ActiveSessionInvoke('ScreenMoveTo(2, 2)') ; Move the cursor to row 2, column 2
ShowErrorIfAny('ScreenMoveTo()')
ActiveSessionInvoke('ScreenSendKeys('HelloKcc')')
ShowErrorIfAny('ScreenSendKeys()')
[...]

Greetings ... Kiffi

_________________
Hygge


Top
Post subject: Re: Translate PureDisHelper to COMATE
Addict

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4814
Location: Lyon - France
Yeeeeeeesssss !!!!
That's works !!!
I'm so happy !!!!
Thanks a lot a you two
It's the night, perhaps i sleep...but i don't want wake up, because like the old time, i'm helped by the two big masters of the OLE
I wish you two the best night of the world...
Your fan for the life
KCC
@Kiffi
Edit : congratulation for your hard works for 'P**w*b'
A giant works freeware and open source like the COMATE
I love you two

_________________
The happiness is a road...
Not a destination


Top

Dynare User Guide

Page 1 of 1
[ 8 posts ]