AltME: SDK

Messages

NickA
I have a Linux SDK license, but haven't kept a Linux machine setup for a while.

Maxim
Can anyone tell me if they were able to change the CONSOLE's title text using the SDK, once encapped.
the encap header entry:
Encap: [title "new title"]
doesn't seem to work for me... for the console... it works for the view menues
I am able to change everything... even the console's menu items and application information for the system (icon->right-click->properties) but can't seem to get the damned Console window to change its label when it opens up with an error...
I can change the title AFTER its opened (using easy win32 commands), but when it opens because of an error (like missing memory ) It always has a
sorry for the red colored bg...
(blue bg)
It always ...  has a title of REBOL/Pro   :-(

DocKimbel
Have you tried changing the title from the resources section of the executable?
Maxim
yeah, but that didn't work... what I ended up doing is a text search/replace in the exe and that worked  ( just make sure you replace by the same number of bytes ;'-)
DocKimbel
I remember doing the same hack a long time ago too. ;-)
Maxim
Changing the resources did fix the highlights when hoving over the icon in the task bar and when looking at the apps properties.
using ResHacker to automate the process in my build engine.
NickA
I used to use the Windows API to change the title bar in free releases of R2.  You should be able to use this code to change the title bar of the console too:  http://www.rebol.org/view-script.r?script=no-rebol-in-title-bar.r
NickA
I also once made an AutoIT script to manage these sorts of things.  An old version of AutoIT had a tiny .dll which I'd include as binary encrypted data in my Rebol script, write it to disk, and then access it using Rebol's shared library interface:  http://re-bol.com/remove_rebol_title_orig.exe
Maxim
I have similar functions, its called set-console-title.  and position-console-window.    the above requires the window to already be open... my problem is that  the console opens up as part of an encap error. at that point rebol script is not running anymore...  :-(
NickA
The AutoIT script can run on it's own...
Endo
Yes, the only way is to use WinAPI but in some cases it makes your script crashes. So be careful.

Bo
I made a minimal AutoIT binding for R2 at one point. It's a great way to control MS Windows. However, ideally it would have more ability to read the current state of the UI to make it easier to automate in a reliable manner.

Maxim
can anyone tell me where the license file is supposed to be on linux?  rebpro keeps complaining that license key is missing.
I've put it in my home and in the cwd where I'm starting rebpro from... strange.
Maxim
>> exists? %license.key
== true
' 8-/
Kaj
Perhaps .rebol/ ?
Maxim
I think its the license itself.  Looks like its keyed to the platform.
I was certain I had a linux version of the license.  maybe not.

Last message posted 6 weeks ago.