Search found 7 matches

by Severin
Thu May 23, 2019 12:11 am
Forum: General programming
Topic: Move drawers with same name
Replies: 4
Views: 513

Re: Move drawers with same name

example: move----->dh0:mp3/ to--------> dh0:music/mp3 At a quick glance it looks like you have tried to copy the entire contents of a drawer to a single file called mp3 keep it simple: movefile( dh0:mp3, dh0:music) or rename(dh0:mp3, dh0:music/mp3) If you use /'s then you must use them on source an...
by Severin
Fri May 03, 2019 1:12 am
Forum: Code snippets area
Topic: convert .flags to Amiga Protection bits string
Replies: 0
Views: 1086

convert .flags to Amiga Protection bits string

I tried many different ways to convert the .flags number returned by DirectoryItems() into a string, some of which got very silly indeed, mostly because I tried to create the string on the fly by adding the required bits as I tested for them, that was wrong, the best way I found is to remove unwante...
by Severin
Fri Apr 26, 2019 11:15 pm
Forum: Amiga IDE questions
Topic: Syntax highlighting in CubicIDE Glitch.
Replies: 2
Views: 429

Re: Syntax highlighting in CubicIDE Glitch.

Hmmm... I thought I had, I'd installed it with the demo version of Cubic, then installed the full version of Cubic and it seems to have overwritten the newer add-on. Reinstalled it and now is all fine. Thanks for the hint
by Severin
Fri Apr 26, 2019 2:01 am
Forum: Amiga IDE questions
Topic: Syntax highlighting in CubicIDE Glitch.
Replies: 2
Views: 429

Syntax highlighting in CubicIDE Glitch.

For some reason FormatStr isn't hilighted or case corrected. I can see it in the autocase, syntax/dictionaries, and quickinfo files.

Does anyone know anymore thast aren't working?
by Severin
Sat Apr 13, 2019 4:57 pm
Forum: Newbie questions
Topic: Is it possible for ReadPixel to work outside the Hollywood window?
Replies: 3
Views: 391

Re: Is it possible for ReadPixel to work outside the Hollywood window?

Thanks for confirming it won't work. I was trying to avoid the screengrab alternative. amiblitz has incompatability problems, maybe i do it with python or as a very, very, very last resort use the dreaded C.
by Severin
Sat Apr 13, 2019 4:27 am
Forum: Newbie questions
Topic: Is it possible for ReadPixel to work outside the Hollywood window?
Replies: 3
Views: 391

Re: Is it possible for ReadPixel to work outside the Hollywood window?

Slight update to the source so you don't have to point out my obvious mistakes. @DISPLAY{Title="Colour:$000000 X=0000 Y=0000", X=0, Y=0, Width=400, Height=400, NoModeSwitch=True} CtrlCQuit(TRUE) EscapeQuit(TRUE) Function p_Update(msg) SetTitle("Colour:$"..HexStr(ReadPixel(msg.x,msg.y)).." X="..StrSt...
by Severin
Sat Apr 13, 2019 2:12 am
Forum: Newbie questions
Topic: Is it possible for ReadPixel to work outside the Hollywood window?
Replies: 3
Views: 391

Is it possible for ReadPixel to work outside the Hollywood window?

I'm trying to write a program to display the mouse position and the colour of the pixel it's over and display the info in the windows titlebar but if the mouse is outside the window I get a "Specified pixel is out of range!" requester. This is on Amiga OS4 and I'm assuming that under the hood it's u...