Embedding Bitmap Binary For FindImagePOS
Moderators: Dorian (MJT support), JRL
-
- Pro Scripter
- Posts: 70
- Joined: Wed Nov 08, 2017 6:54 pm
Embedding Bitmap Binary For FindImagePOS
Is it possible to embed the binary data within a compiled exe for bitmaps and then call it somehow for the bitmap image required for the FindImagePOS>? I know this will increase the size of the exe but it would mean I wouldnt need to supply anything like the BMP FOLDER and could then just use the exe without having all the images and folders to copy with it.
-
- Pro Scripter
- Posts: 70
- Joined: Wed Nov 08, 2017 6:54 pm
Re: Embedding Bitmap Binary For FindImagePOS
I know how to import binary data of the bitmap in the script as a label but how do you call it with FindImagePos>?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Embedding Bitmap Binary For FindImagePOS
Well you'd need to export it back to an image file first using the ExportData function.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Embedding Bitmap Binary For FindImagePOS
Code: Select all
ExportData>MADQUESTION.PNG_DATA,%temp_dir%MADQUESTION.PNG
ExecuteFile>https://www.mjtnet.com/forum/viewtopic.php?f=2&t=9780
Wait>5
FindImagePos>%temp_dir%MADQUESTION.PNG,SCREEN,0.7,1,X,Y,NumFound,CCOEFF
MouseMove>X_0,Y_0
/*
MADQUESTION.PNG_DATA:
89504E470D0A1A0A0000000D49484452000000480000000F0802000000C8D21EC4000002B9494441544889ED56316BDB40187D29FD0396178B988844C183162162912974490235C6F6E49025431645419B972EC10A59BA780B91B578C8629A4936C101394BC9646C23B47828918B82C182220BFA0B3AC88A4D22435DE2A62D7
D687A77EFFBBEF7DD9DEE96EC6FDFF12FE2CD6B17B028FC37F6B7E1258C193A2B2845E30522BD209E1933745650D8B3B60D00EEE5993267D1F7454161C79F7EF7EB85F9A9830886CE0ACA7EC3FD79FDDB509681F7798803F46F067355735F149A5A3C593FE129B897675792A09FABBB5B73C50805B76BAAF329C28D25967163
B8EFD04F6CD2BD960500C3F6BEDCE9F9C353A597A69D1B7D0DC8A5790A00A20769BA54B62E1AEE16D965CB56EE483C85CE962D269BAFA6A27715456A4D47BB2F0A4DCD8FB3B96372FDD2008025090AE2C97ADACBF811B8A9A4BED0D0D9B2C5C489DE6004D08F7D9C71C6B8B544B75BE946B6B98021F9AA2A9AAA58CF1218742
A06ECC66D69401464D13CA2FD29F6D003083A1648621166463BEDC627A9451464D19493CCA0F3A1E1DA8DAE06A2208BA62A9A87EBE0360A7100F4B92A9A277EA77C619034108E0736B6CD231AB02E02267CC580F5EDE5A6849D53F40366AAA30080076704D0AB24E08C198A8C0096E5002400C0F17A40A8B7076704A0242B25
8C6752EFD7985AC767986CBE9A0A2F6B92149104A0399E9F2B41469FCC9C650C5B87A209C0181BBBAB34357FA10D9D2D5B00566204E07D1D627284B8B51C2CEDBA7DC8F114DCCB6B0BA08F53513CFBF7ACC408000579EF809C90559587BFBDBB7D3BC5AF2E03CF4EF85452EF0BC0C422B3EA9F69ECA94F8E46CB9204E591A15
21BB95A73D27500583F5501A199113A00263BDE375C56B48976EFDC51A440CB64F31F719BA98D00004441E629807ACC184FD6D361C278B21ED6351F4B0B792B0EDBFB7207D97C35F57487FC362CE6E541F2C79BE8D5AE5EF1E25ECC8AFD01F801FF7B378C5A82D3390000000049454E44AE426082
*/
-
- Pro Scripter
- Posts: 70
- Joined: Wed Nov 08, 2017 6:54 pm
Re: Embedding Bitmap Binary For FindImagePOS
This was a great help thanks guys