[Done] Option to include image file data within compiled exe

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Option to include image file data within compiled macro exe

5. Important, even if the size/efficiency increases/degrades
14
70%
4. Somewhat important
4
20%
3. I'm okay either way
0
No votes
2. Somewhat unimportant
0
No votes
1. Unimportant, even if the size/efficiency remains unaffected
2
10%
 
Total votes: 20

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Aug 02, 2007 4:16 pm

DrPain wrote:
  • I tried to use this new feature with the image function FindImagePos, and it
    returned a -1 as the number found. So I assume this means the image functions
    don't work with the embedded bitmaps.
Greetings DrPain,

As far as I know, the FindImagePos command should work just fine to locate
images you put into dialogs using this new feature... as long as you have
created and are referencing the proper .bmp files that contain the image you
are trying to find. If you post your code here, someone may be able to offer
more help.
Last edited by jpuziano on Thu Aug 02, 2007 8:36 pm, edited 2 times in total.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

DrPain
Newbie
Posts: 10
Joined: Sun Mar 26, 2006 2:38 pm

Post by DrPain » Thu Aug 02, 2007 5:45 pm

I guess I wasn't clear, or I don't understand your response. I'm not trying to use FindImagePos to find bitmaps I've put on a dialog with the data, I'm trying to use the data as the "needle" for the FindImagePos command.

Here's what I'd like to be able to do:

SetFocus>WindowTitle
Wait>1.0
ScreenCapture>650,810,700,870,c:\temp.bmp
FindImagePos>HIDEBUTTONS_DATA,c:\temp.bmp,70,0,foundLocX,foundLocY,numFound

**BREAKPOINT**

// data truncated for forum post
HIDEBUTTONS_DATA:
424D8E0200000000000036000000280000000F0000000A000000010


When it hits the breakpoint, numFound is equal to -1, which I assume means an error occurred in FindImagePos.

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Aug 02, 2007 6:37 pm

DrPain,
FindImagePos will not currently be natively capable of using the embedded image data. I don't do much with images (this is the first time I've looked at FindImagePos>) so I'm not a good judge as to whether it should be capable of handling embedded image data. Off hand it sounds like a good idea.

I did have an idea on how you might accomplish this now. Since you need to use a dialog for the embedded data to process. Send the data to a dialog then use ScreenCapture> to take it off the dialog and write it to a file that can be used as the needle. Following is an example. The 36 x 36 pixel image is the Macro Scheduler cog (sprocket?) icon with a white background. I use the same file for both the needle image file and the haystack image file. Somehow that feels like cheating but it works as an example.

try this:

Edited and reposted without using the code button as a test to see how the forum software responds to very wide text. I should say JP that before you put the code with the data line in your post this thread looked fine to me using firefox. Afterward, Its very wide.

Code: Select all

Dialog>Dialog1
   Width=120
   Height=80
   Top=0
   Left=0
   Image=ICON_DATA,0,0,36,36
EndDialog>Dialog1

show>dialog1
GetDialogAction>dialog1,res
CloseDialog>Dialog1
wait>0.001
LibFunc>user32,SetWindowLongA,sres,DIALOG1.HANDLE,-16,1073741824
show>dialog1
ScreenCapture>0,0,36,36,%TEMP_DIR%icon_test.bmp
CloseDialog>dialog1
FindImagePos>%TEMP_DIR%icon_test.bmp,%TEMP_DIR%icon_test.bmp,70,0,foundLocX,foundLocY,numFound
MDL>X=%foundLocX_0% Y=%foundLocY_0% Quantity=%numFound%

ICON_DATA:
424D660F000000000000360000002800000024000000240000000100180000000000300F000000000000000000000000000000000000F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8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F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8D0AC80985818904800C08400C08400D0A400A86800D0A400D8A408E0BC18F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8985818904800A86800C89400D09C00985800784000784000803800B07800D0A400E8D410D8BC30F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06028905010B07020C08C40C89C58C89C60905010985008D09408E0BC20E8C400B07000784000784000784000784000804000D0A400F0E408E0D428E8D408D0AC40B88448A06828A06018A87020D0A468F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8C8A478884808A86008F0D490F8E4B8F0E4A8E8D490E0B460E0B440F8CC28D8BC50C08C38985000784000784000803800803800784000A86808C8AC48C8CC80F8E408F8E400D0AC00D8B400E8CC00F0D400F0DC00E8CC10F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06830904800D8AC48F8ECC8F8F4C8F8ECC0F8ECB0F8E498F8DC68F8D430E0C438C8C4B8A07040784000803800803800784000784000B89450C8CCC0D8D468F8E408F8EC00F8EC00F8EC00F8EC00F8EC00F8EC00F0E408D0B440F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8905010E0B460F8ECC0F8ECC8F8F4C8F8ECB8F8E4A0F8DC70F8D438F0C418C8B488B88448884810784000784000784000985820B88C50D8D4C0E8DC30F8E408F8EC08F8E408F8EC00F8EC00F8EC00F8EC00F8EC00E0B460F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8C8A478A86810F0DCA0F8ECC8F8F4C8F0E4B0E0DCC0E8DCA0E0DC58F0C418D8CC88D8DCD0B88438A87010985000A86808C8A470D8DCD0D8D4C0E8DC30E8E420E0DC58E0DC80E8DC30F8EC00F8EC00F8EC00E0C420F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8B88C50B87828F0E4B0F8ECC0F8ECC0E0DCC0E8ECE0E8ECD8E0DCC0E8ECD8E0D498E0B410F0C400C89408F0C418E0C420E0DC58E8E4C8E8E4C8E8ECD8E8ECD8E8E488F8EC08F8EC00F8EC00E8D410F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06020C88C38F8ECB8F8ECC0F8ECB0E0DCB0F0ECE0F0ECE0E8DCA0F0C418E8BC10E0C488F8FCF8D0B470C89418F0DC20E8DC40E8ECD8F0ECE0E8E488F0E410F8EC08F8EC08F0DC10F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06020905008F0CC78F8ECC0F8ECB0F8E498E0DCB0F0ECE0F0C418E8B410F8FCF8F8FCF8F8FCF8F8FCF8A87030B07808F0E420E8E470F0ECE0E8DC30F8EC10F8EC08F8EC08D8BC30F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8985820985000F0CC80F0E4B8E8E4C8F0E4C0F0ECE0F0DC98F0C418E0B460F8FCF8F8FCF8F8FCF8F8FCF8D0AC80884808E0BC18F0E438F8F4E0E8ECA8E8E470F0E438F8EC10E8C430F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06020985008E0C488F0ECD0F8F4E0E0DCB0F0ECD0F0CC78F0BC08F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8C8A478904800D09C10E8DC30F0ECC8E0C4A0F8F4E0F8F4D8E8DC70E8C430F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A87030905008E8CC78E0BC90C08C50B07840B88C50C08430F0BC08E0B470F8FCF8F8FCF8F8FCF8F8FCF8A06020904800D8A418C88C10C8A470A87020C89C50D8A418E8E420E0C438F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8905010905000C88C30B88C40804000784000784000904800D08C00D08C10F8FCF8F8FCF8F8FCF8B88C50884000A05800C89418905000784000784000884000C08C08D09C10D8B450F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8985810884808C88C30E0BC80884000784000784000784000784000985000F0BC08E0AC20C89C50985810905000B06800E8B400A86000784000784000784000784000884000D8A418E8C430F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06020884808C08428E0C488C08428784000784000803800784000784000884000C87800F0BC08E8AC00A05800D09400F0C400D08C00905000784000784000803800784000784000B87008E0BC20E0C438F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8B88C50884000B06810F0CC80F8DC98E0C488804008784000784000783800784000985818D0CCA0E0B440F0BC08E8AC00F0BC08E8BC18D8C460985820784000784000803800784000804000D8B428F8E440F8E440D8B450F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8B07840905000E0AC48F8DC90F8DC98D0A460B87028804000784000784000804000B88C50C8AC80D0CCB8D0CCB8D0CCA0D0CCA0D8D4B8D0BCA0B07840804000784000784000784000A86808C89418F8DC40F8E440F8DC40F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8985810D09420F8D488F8DC98F8DC98E0C488B88438A06028B07030B87028C8C4B8D0BCA0F0C448D0B470D0CCC8D0C498E8BC18D8B450C8CCB8B07828A86800985000B87000D8A418F8DC40F8E458F8E458F8E458D0B470F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8D0AC78A86810F0BC58F8DC90F0DCA0E0C488E0BC80C88C40E0BC80D0BCA0C8C4A8F0DCA0F8D488E8CC78C8CCC0D0B470F0C418F0C418D8B450C8A468F0C400C87800E0AC20E0AC20F8D438F8DC50F8E458E8C450F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8E0C498E0C4A0F8FCF8F8FCF8F8FCF8F8FCF8D0A460D0A460F0E4B0F8ECC0F8ECB0F0DCA0C0C4B8E8CC78F8DC50F8CC30F0C418E0AC20D8A438F8FCF8F8FCF8F8FCF8F8FCF8E0C498E0C488F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8E0BC90B07018E0C488F8F4C8F8F4C8D8D4B8F0E4A8F8DC90F8DC70D8AC48F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8905010C88C38F8F4D8F8F4D8F8F4D8F8F4C8F8ECC0E0C488F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A86830A86008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CF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8

Last edited by JRL on Fri Aug 03, 2007 8:17 pm, edited 14 times in total.

DrPain
Newbie
Posts: 10
Joined: Sun Mar 26, 2006 2:38 pm

Post by DrPain » Thu Aug 02, 2007 8:20 pm

That's a good idea, and I appreciate the effort.
However, I'm writing a macro for a game, so a dialog is not available, it's a pure graphical environment.

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Aug 02, 2007 8:25 pm

Hi DrPain,

Ahh, thanks for the clarification... you want to use the data that has been
imported using "Tools/Import Bitmap Data" as the needle instead of the actual
.bmp file you imported it from, I understand you now... interesting.

Well yes, that's something new so I believe the FindImagePos command would
have to be enhanced but I have no idea how large an effort that would be. Even
if its not that huge, Marcus would have to feel this is worth doing so... can
you post any reasons/examples where this capability would really come in
handy? Also it helps if the enhancement is generic i.e. a lot of users could
benefit instead of just a very few. The more justification you can provide,
the better your chances.

Marcus, what do you think about this as a potential enhancement? Possible or
not a chance? Comments?

JRL, thanks for that excellant example. I added a few Wait>2 commands just to
be able to see the dialog as everything flashes by so quickly, you can't see
it happen.

:shock: There is something odd going on after you run your example though. For me,
right after I run your script and close the MessageModal> dialog at the end...
the icon in the upper lefthand corner of the Macro Scheduler Main Screen
changes from the cog to a generic white square!?

Marcus, can you try JRL's code too please... does this happen for you? Does
anyone know why this happens?

Thanks


P.S. Does anyone else out there hate :evil: when phpBB starts showing these forum
msgs super wide so that you have to do a bunch of horizontal scolling just to
read the message? I assume its a bug or "undocumented feature" of phpBB but
perhaps its something we're adding into our posts. If anyone knows, please
tell as then we could avoid that like the plague so our forum posts don't go
spilling off into the horizontal-scroll-zone.

Note 1: I've reformatted this post to make it more readable... manually... but
I'd like not to have to do this.

Note 2: OK, it goes super wide when you post code with a very long line in it
(like the image data line in JRL's code above) and you put that inside BBCode
meant for code... i.e. you highlight it and click the "Code" butten when you
create your forum post.

I am trying an alternative way to post code... lets see if this can be copied
and pasted and will work just a well as the "Code" block method... here's
JRL's same code (with Wait>2 commands)...

Dialog>Dialog1
Width=120
Height=80
Top=0
Left=0
Image=ICON_DATA,0,0,36,36
EndDialog>Dialog1

show>dialog1
Wait>2
ScreenCapture>4,23,40,59,%TEMP_DIR%icon_test.bmp
CloseDialog>dialog1
Wait>2
FindImagePos>%TEMP_DIR%icon_test.bmp,%TEMP_DIR%icon_test.bmp,70,0,foundLocX,foundLocY,numFound
MDL>X=%foundLocX_0% Y=%foundLocY_0% Quantity=%numFound%

ICON_DATA:
{replace with line from JRL's code above}


~end of code~

Note 3: JRL, the Macro Scheduler Main Window icon changes whether I run your
first example (above in green) or the new version you've reposted in your
original post above that uses LibFunc>. Is this happening to anyone else out
there?
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Aug 02, 2007 9:31 pm

Yes I now see what you mean about the icon changing, I wasn't
understanding before. The icon was not affected when I ran this in the
editor. I think I fixed it by adding two lines to skip over the data label.

Code: Select all

Dialog>Dialog1
   Width=120
   Height=80
   Top=0
   Left=0
   Image=ICON_DATA,0,0,36,36
EndDialog>Dialog1

show>dialog1
GetDialogAction>dialog1,res
CloseDialog>Dialog1
wait>0.001
LibFunc>user32,SetWindowLongA,sres,DIALOG1.HANDLE,-16,1073741824
show>dialog1
ScreenCapture>0,0,36,36,%TEMP_DIR%icon_test.bmp
CloseDialog>dialog1
FindImagePos>%TEMP_DIR%icon_test.bmp,%TEMP_DIR%icon_test.bmp,70,0,foundLocX,foundLocY,numFound
MDL>X=%foundLocX_0% Y=%foundLocY_0% Quantity=%numFound%
Goto>EOF

ICON_DATA:
424D660F000000000000360000002800000024000000240000000100180000000000300F000000000000000000000000000000000000F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A87030A87028C89C60F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8985818904800D0A400E8D410E8CC18F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8D0B488904800A86800F0DC10F8EC10F8EC10D8B438F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06028884000D8AC08F8E418F8EC10F8EC10F0DC10F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8884808985800E8CC08F8EC10E0BC08F8EC10F0DC10E0BC70F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8D0AC80985818904800C08400C08400D0A400A86800D0A400D8A408E0BC18F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8985818904800A86800C89400D09C00985800784000784000803800B07800D0A400E8D410D8BC30F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06028905010B07020C08C40C89C58C89C60905010985008D09408E0BC20E8C400B07000784000784000784000784000804000D0A400F0E408E0D428E8D408D0AC40B88448A06828A06018A87020D0A468F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8C8A478884808A86008F0D490F8E4B8F0E4A8E8D490E0B460E0B440F8CC28D8BC50C08C38985000784000784000803800803800784000A86808C8AC48C8CC80F8E408F8E400D0AC00D8B400E8CC00F0D400F0DC00E8CC10F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06830904800D8AC48F8ECC8F8F4C8F8ECC0F8ECB0F8E498F8DC68F8D430E0C438C8C4B8A07040784000803800803800784000784000B89450C8CCC0D8D468F8E408F8EC00F8EC00F8EC00F8EC00F8EC00F8EC00F0E408D0B440F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8905010E0B460F8ECC0F8ECC8F8F4C8F8ECB8F8E4A0F8DC70F8D438F0C418C8B488B88448884810784000784000784000985820B88C50D8D4C0E8DC30F8E408F8EC08F8E408F8EC00F8EC00F8EC00F8EC00F8EC00E0B460F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8C8A478A86810F0DCA0F8ECC8F8F4C8F0E4B0E0DCC0E8DCA0E0DC58F0C418D8CC88D8DCD0B88438A87010985000A86808C8A470D8DCD0D8D4C0E8DC30E8E420E0DC58E0DC80E8DC30F8EC00F8EC00F8EC00E0C420F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8B88C50B87828F0E4B0F8ECC0F8ECC0E0DCC0E8ECE0E8ECD8E0DCC0E8ECD8E0D498E0B410F0C400C89408F0C418E0C420E0DC58E8E4C8E8E4C8E8ECD8E8ECD8E8E488F8EC08F8EC00F8EC00E8D410F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06020C88C38F8ECB8F8ECC0F8ECB0E0DCB0F0ECE0F0ECE0E8DCA0F0C418E8BC10E0C488F8FCF8D0B470C89418F0DC20E8DC40E8ECD8F0ECE0E8E488F0E410F8EC08F8EC08F0DC10F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06020905008F0CC78F8ECC0F8ECB0F8E498E0DCB0F0ECE0F0C418E8B410F8FCF8F8FCF8F8FCF8F8FCF8A87030B07808F0E420E8E470F0ECE0E8DC30F8EC10F8EC08F8EC08D8BC30F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8985820985000F0CC80F0E4B8E8E4C8F0E4C0F0ECE0F0DC98F0C418E0B460F8FCF8F8FCF8F8FCF8F8FCF8D0AC80884808E0BC18F0E438F8F4E0E8ECA8E8E470F0E438F8EC10E8C430F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06020985008E0C488F0ECD0F8F4E0E0DCB0F0ECD0F0CC78F0BC08F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8C8A478904800D09C10E8DC30F0ECC8E0C4A0F8F4E0F8F4D8E8DC70E8C430F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A87030905008E8CC78E0BC90C08C50B07840B88C50C08430F0BC08E0B470F8FCF8F8FCF8F8FCF8F8FCF8A06020904800D8A418C88C10C8A470A87020C89C50D8A418E8E420E0C438F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8905010905000C88C30B88C40804000784000784000904800D08C00D08C10F8FCF8F8FCF8F8FCF8B88C50884000A05800C89418905000784000784000884000C08C08D09C10D8B450F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8985810884808C88C30E0BC80884000784000784000784000784000985000F0BC08E0AC20C89C50985810905000B06800E8B400A86000784000784000784000784000884000D8A418E8C430F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8A06020884808C08428E0C488C08428784000784000803800784000784000884000C87800F0BC08E8AC00A05800D09400F0C400D08C00905000784000784000803800784000784000B87008E0BC20E0C438F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8B88C50884000B06810F0CC80F8DC98E0C488804008784000784000783800784000985818D0CCA0E0B440F0BC08E8AC00F0BC08E8BC18D8C460985820784000784000803800784000804000D8B428F8E440F8E440D8B450F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8B07840905000E0AC48F8DC90F8DC98D0A460B87028804000784000784000804000B88C50C8AC80D0CCB8D0CCB8D0CCA0D0CCA0D8D4B8D0BCA0B07840804000784000784000784000A86808C89418F8DC40F8E440F8DC40F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8985810D09420F8D488F8DC98F8DC98E0C488B88438A06028B07030B87028C8C4B8D0BCA0F0C448D0B470D0CCC8D0C498E8BC18D8B450C8CCB8B07828A86800985000B87000D8A418F8DC40F8E458F8E458F8E458D0B470F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8D0AC78A86810F0BC58F8DC90F0DCA0E0C488E0BC80C88C40E0BC80D0BCA0C8C4A8F0DCA0F8D488E8CC78C8CCC0D0B470F0C418F0C418D8B450C8A468F0C400C87800E0AC20E0AC20F8D438F8DC50F8E458E8C450F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8E0C498E0C4A0F8FCF8F8FCF8F8FCF8F8FCF8D0A460D0A460F0E4B0F8ECC0F8ECB0F0DCA0C0C4B8E8CC78F8DC50F8CC30F0C418E0AC20D8A438F8FCF8F8FCF8F8FCF8F8FCF8E0C498E0C488F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F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8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8C09450D8A458E0BC80E0C488F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8F8FCF8

Label>EOF

Last edited by JRL on Thu Aug 02, 2007 9:48 pm, edited 1 time in total.

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Aug 02, 2007 9:44 pm

JRL wrote:
Yes I now see what you mean about the icon changing, I wasn't understanding
before. The icon was not affected when I ran this in the editor. I think I
fixed it by adding two lines to skip over the data label.

Hi JRL,

Yes, that fixed it, the icon no longer disappears from the Macro Scheduler
main window... thanks for that but I'm wondering, why does it work that way?

Marcus, can you touch base with us here... are you aware of this effect?
Can you modify things so that we don't have to "skip around" any blocks of
imported image data in our scripts? If that's not possible, then I think it
would be wise to document the need for users to do this in the Help...
probably the dialog topic as that's where you have some notes on importing
image data. What do you say?

Finally, JRL... I removed the long image data line from the code I posted and
just referenced yours... but the forum post is still 6 feet wide using IE...
Don't tell me it went narrow again for you using Firefox... :?: :?:

Take care
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Aug 02, 2007 9:54 pm

Set both of the posting with loooong data line to textarea, /textarea and the post looks good to me now in Firefox. If I look at it in Explorer version 6 it is wider than it was in firefox when there was no textarea. In explorer I have about again as much white space on the right.

Sorry.... Should I remove the data line from the post or leave it?

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Fri Aug 03, 2007 6:26 pm

JRL wrote:
Set both of the posting with loooong data line to textarea, /textarea and the
post looks good to me now in Firefox. If I look at it in Explorer version 6
it is wider than it was in Firefox when there was no textarea. In explorer I
have about again as much white space on the right.

Sorry.... Should I remove the data line from the post or leave it?

Hi JRL,

No need to be sorry at all, that's OK, leave the long data line, its needed
for the code to work when people try your example. I just installed the latest
version of Firefox here and this forum post displays OK, no horizontal
scrolling required... while in IE 6 its still incredibly wide.

One oddity though, even Firefox displays the code sections differently in the
last two messages you posted that have code. The more recent one displays
perfectly. The one a little older displays shifted to the right about an inch
and the code is displayed "spilled over the margin" on the right side. Are you
seeing this effect in Firefox?

JRL, perhaps you could click the "Edit" button on each of those two posts of
yours and see if there is any difference in the BBCode tags you used around
the Code chunks. Please let us know if you find any difference as that may be
why they display differently... and thanks as always for the excellent help
you provide on the forums.
Last edited by jpuziano on Fri Aug 03, 2007 7:51 pm, edited 2 times in total.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Aug 03, 2007 7:36 pm

jpuziano wrote:The one a little older displays shifted to the right about an inch and the code is displayed "spilled over the margin" on the right side. Are you seeing this effect in Firefox?
That was kind of weird wasn't it. I kind of wondered why I didn't see the far right portion of the text displayed on the wall next to the monitor... :)

Tried to edit it but no edit seemed to help. So I tried:

-- Cut the text of the post entirely and pasted into notepad. Saved it. reopened and pasted from notepad. Still bad.

-- Copied the code portion from the second post and pasted that into the first. Still bad.

=============30 minutes later=============


OK... I think the problem is cleared up.
I removed the entire post.
Dropped the post into another old post of mine and saved it.
Confirmed (with JP's help) that the text in the new location looked correct.
Logged off the forum.
Logged back in.
Edited the old post location and copied the text from there.
Edited the above post location and dropped the text back in.
Saved it... logged off the forum... returned to the thread and it looks normal.

Anyone reading this who didn't see the problem will think I've lost my marbles. I swear that the text ran right on out the right side of the text box.

===============Later still==============

Shut down FireFox.
Came back to the forum and looked again and the oddity is still there.

I think I'll leave it.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sun Aug 05, 2007 9:30 am

1. Issue is not with embedded bitmaps, just with the label ICON_DATA: Change the label name to something else and you'll find the problem disappears. A script with just one line saying "ICON_DATA:" will reveal the same issue. This line is being confused with an internal command for changing the main program icon (ICO>iconfile,index)

2. The page stretching due to long lines is a feature of HTML. Hard to avoid without making the code unusable. Put up with it. In any case this is not the place to discuss HTML/PHP/phpBB issues! Stick to the topic please.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Fri Aug 10, 2007 2:57 am

mtettmar wrote:1. Issue is not with embedded bitmaps, just with the label ICON_DATA: Change the label name to something else and you'll find the problem disappears. A script with just one line saying "ICON_DATA:" will reveal the same issue. This line is being confused with an internal command for changing the main program icon (ICO>iconfile,index)
Thanks for letting us know about this internal command. I haven't tested but I take it any label name starting with ICO will cause this effect? In any case, I'll try to remember to avoid that but should I ever forget, I'm sure I'll remember what is causing the problem should I ever see the Macro Scheduler main window icon change after running a script.
mtettmar wrote:2. The page stretching due to long lines is a feature of HTML. Hard to avoid without making the code unusable. Put up with it. In any case this is not the place to discuss HTML/PHP/phpBB issues! Stick to the topic please.
Sure, OK, putting up with and sticking.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts