Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 18th, 2024, 11:42 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: February 11th, 2007, 2:20 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 511
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
for my application, I have now got my C# program writing a sub-key to the registry and a script in Opus reading the registry key and it works very well.
I tried using a text file but it kept crashing, possibly caused by both programs trying to access the file at the same time?? not sure.

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 11th, 2007, 6:32 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
One thing to check..

Assuming that this said file could still be open before you instigate a refresh.. Check in your code that a close has been called to the file before we attempt a refresh...
This may not necessarily delete the content but is something to be aware of...

Check your code too for when this said file is first created. we might be zeroing it out at some point...
Since you see the desired content if you move to another page, and return, it appears we don't commit the data to file just prior to the refresh... see where the code is meant to write to this file...
(can see it does this just before you switch to another page, hence the code need to be elsewhere as well, just prior to Real being called)

while the application is running toggle to the file manager/explorer and confirm that the file is not zero length, and then complete the refresh to confirm.

Without the pub, can't see where else to check...


For this message eomc40 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 11th, 2007, 10:37 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi eomc40

Thanks for your reply. Similar to your suggestions, I've been trying to figure where the file is "going wrong, " examining the script, experimenting with a number of "fixes."

Going in to close textObj and close the specific line position/rotation file may be working. More testing needed to be sure.

Thanks for your continued help.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 12th, 2007, 10:23 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
I've read thru this and admittedly don't understand the 'application' or the reach of the other executable. But just in case this helps, check out http://www.autohotkey.com/docs/FAQ.htm
for its flexibility.

One example:
How can the output of a command line operation be retrieved?

Testing shows that due to file caching, a temporary file can be very fast for relatively small outputs. In fact, if the file is deleted immediately after use, it often does not actually get written to disk. For example:

RunWait %comspec% /c dir > C:\My Temp File.txt
FileRead, VarToContainContents, C:\My Temp File.txt
FileDelete, C:\My Temp File.txt

To avoid using a temporary file (especially if the output is large), consider using CmdRet. Alternatively, there is a small freeware utility cb.zip (4 KB) that captures up to 512 KB of output from a command or program. The text is captured to the clipboard, which a script can access via the clipboard variable. For example:

RunWait %comspec% /c dir | cb.exe
MsgBox %clipboard%

- - - - - - - - - -
Another example of a utility using autohotkey.
ProcessGuard v1.1

Download programAutoHotkey sourcecode205KB

Watch processes' memory usage, cpu usage and more, and get a warning, close them, run a program, change priority, hide/show or minimize/maximize them, logoff, reboot, shutdown, suspend or hibernate!

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 12th, 2007, 12:12 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
Thanks Lar_123, will check this out...


For this message eomc40 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 12th, 2007, 12:52 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

Thank you for your continued help.

It looks like the chief difficulty was that I hadn't closed the textObj and .txt file for line rotation, which caused the loss of content upon copying.

Once closed, the copying back and forth works, using Opus's standard action to copy files, adding a wildcard (*.txt). This avoids the need for the REALbasic utilty, allowing me to use the copying actions I had previously set up in the regular Opus pub.

However, having the ability to utilize third-party utilities to enhance features is quite valuable and can be used in the future.

Again, thanks.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group