Sign in to follow this  
Followers 0
E1M1

What's wrong with my script

20 posts in this topic

What's wrong with this script?

Errors

>"D:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "I:\uus\hack\xwe\dim.au3" /autoit3dir "D:\Program Files\AutoIt3" /UserParams    
+>19:17:04 Starting AutoIt3Wrapper v.1.10.1.14    Environment(Language:0409  Keyboard:00000425  OS:WIN_XP/Service Pack 2  CPU:X86  ANSI)
>Running AU3Check (1.54.14.0)  from:D:\Program Files\AutoIt3
+>19:17:04 AU3Check ended.rc:0
>Running:(3.3.0.0):D:\Program Files\AutoIt3\autoit3.exe "I:\uus\hack\xwe\dim.au3"    
I:\uus\hack\xwe\dim.au3 (1) : ==> String missing closing quote.: 
$var = "0x4D546864000000060001001100784D54726B000000F800FF03294D65616E20284169" & "E2774204E6F204869702D486F7020496E2054686120486F757365204D6978292000FF0" & "1841676520457870616E73696F6E205061636B204D7573696300FF021F436F70797269" & "7687420A9203139393820627920446176696420526970707900FF010C4461766964205" & "697070790A00FF010653797365780A00FF011352656D69786564206279205374657665" & "D470A00FF012E4C6F61642074686520452D4D752070617463682E20204E6F207265766" & "7262206973206E65636573736172792E0A00FF010C426F73732073797365782E0A00FF" & "8040402180800FF5902000000FF510309108B00FF2F004D54726B000000B700FF21010" & "00B0000000200000C00E00B00778000A7F8F0090437E817043008D10437E817043008D" & "0437E817043008D10437E817043008D10437E7843008E08437E7843008E08427E78420" & "8E08427E7842008E08437E817043008D10437E817043008D10377E817037008D10377E" & "17037008D10377E817037008D10377E817037008D10437E817043008D10437E8170430" & "8D10377E817037008D10377E817037008D10377E817037008D10377E8170370000FF2F" & "04D54726B0000030300FF21010000B1000000200000C10B00B1075F000A2381A500915" & "3C285200004D4E3C4F5C144D00284F00005156812051008500523C285200004D4E3C4F" & "C144D00284F00005156812051008500523C285200004D4E3C4F5C144D00284F0000515" & "812051008500523C285200004D4E3C4F5C144D00284F00005156812051008500523C28" & "200004D4E3C4F5C144D00284F00005156812051008500523C285200004D4E3C4F5C144" & "00284F00005156812051008500523C285200004D4E3C4F5C144D00284F000051568120" & "1008500523C285200004D4E3C4F5C144D00284F0000515681205100A300523C2852000" & "4D4E3C4F5C144D00284F00005156812051008500523C285200004D4E3C4F5C144D0028" & "F00005156812051008500523C285200004D4E3C4F5C144D00284F00005156812051008" & "00523C285200004D4E3C4F5C144D00284F00005156812051008500523C285200004D4E" & "C4F5C144D00284F00005156812051008500523C285200004D4E3C4F5C144D00284F000" & "5156812051008500B107640091523C14B107631491520000B1076200914D4E14B10761" & "0076014075F04914F5C10B1075E04914D0010B1075D11075C07914F000051560DB1075" & "14075A1407591107581407571407561407551007540E91510006B10753140752140751" & "1075014074F14074E14074D11074C14074B14074A14074910074814074714074614074" & "11074414074314074214074111074014073F14073E14073D10073C14073B14073A1407" & "91107381407371407361407351107341407331407320091523C14B1073110073004915" & "00004D4E10B1072F14072E14072D04914F5C0DB1072C07914D000DB1072B14072A0791" & "F000051560DB107291107281407271407261407251007241407231407220E91510006B" & "072111072014071F14071E14071D11071C14071B14071A140719100718140717140716" & "4071511071414071314071214071111071014070F14070E14070D10070C14070B14070" & "14070911070814070714070614070511070414070314070214070110070000FF2F004D" & "4726B0000006100FF21010000B2000000200000C21500B20732000A400092377F87403" & "0000357F8740350000377F8740370000357F8740350000377F8740370000357F874035" & "000377F8740370000357F8740350000377F8740370000357F8740350000FF2F004D547" & "6B000000E200FF21010000C33100B30741000A2D81E100932B7F004F7F00377F00437F" & "268B3407F78934300004F0000467F00527F00B340008268407F78935200002B0000370" & "00460000297F00547F00357F00487F00B340008170407F817093480000540000517F00" & "57F00B340008268407F78934500002900003500005100002B7F00527F00467F00377F0" & "B340008268407F78934600005200004F7F00437F00B340008268407F78934300003700" & "02B00004F0000517F00297F00457F00357F00B340008268407F7893547F83605400004" & "0000510000290000350000B3400000FF2F004D54726B000007D800FF21010000B40000" & "0200000C42300B40778000A4000941F7F87401F00001D7F87401D00001F7F87401F000" & "1D7F85501D003C1D7F3CE4005000407800407F3C40780000500000403C005B1E407F85" & "2941D003CE4004000941F7F3CE4004700406D00407F3C40420000403C941F00001D7F8" & "501D003C1D7F3CE4005000407800407F3C40780000500000403C005B1E407F8532941D" & "03CE4004000941F7F3CE4004700406D00407F3C40420000403C941F00001D7F85501D0" & "3C1D7F3CE4005000407800407F3C40780000500000403C005B1E407F8532941D003CE4" & "04000941F7F3CE4004700406D00407F3C40420000403C941F00001D7F87401D0000187" & "870D180033187F1218000C187F171800870B187F870D180033187F1218000C187F1718" & "0870B177F870D170033177F1217000C177F171700870B177F870D170033177F1217000" & "177F171700870B1F7F87401F00001D7F87401 
$var = "0x4D546864000000060001001100784D54726B000000F800FF03294D65616E20284169" & "E2774204E6F204869702D486F7020496E2054686120486F757365204D6978292000FF0" & "1841676520457870616E73696F6E205061636B204D7573696300FF021F436F70797269" & "7687420A9203139393820627920446176696420526970707900FF010C4461766964205" & "697070790A00FF010653797365780A00FF011352656D69786564206279205374657665" & "D470A00FF012E4C6F61642074686520452D4D752070617463682E20204E6F207265766" & "7262206973206E65636573736172792E0A00FF010C426F73732073797365782E0A00FF" & "8040402180800FF5902000000FF510309108B00FF2F004D54726B000000B700FF21010" & "00B0000000200000C00E00B00778000A7F8F0090437E817043008D10437E817043008D" & "0437E817043008D10437E817043008D10437E7843008E08437E7843008E08427E78420" & "8E08427E7842008E08437E817043008D10437E817043008D10377E817037008D10377E" & "17037008D10377E817037008D10377E817037008D10437E817043008D10437E8170430" & "8D10377E817037008D10377E817037008D10377E817037008D10377E8170370000FF2F" & "04D54726B0000030300FF21010000B1000000200000C10B00B1075F000A2381A500915" & "3C285200004D4E3C4F5C144D00284F00005156812051008500523C285200004D4E3C4F" & "C144D00284F00005156812051008500523C285200004D4E3C4F5C144D00284F0000515" & "812051008500523C285200004D4E3C4F5C144D00284F00005156812051008500523C28" & "200004D4E3C4F5C144D00284F00005156812051008500523C285200004D4E3C4F5C144" & "00284F00005156812051008500523C285200004D4E3C4F5C144D00284F000051568120" & "1008500523C285200004D4E3C4F5C144D00284F0000515681205100A300523C2852000" & "4D4E3C4F5C144D00284F00005156812051008500523C285200004D4E3C4F5C144D0028" & "F00005156812051008500523C285200004D4E3C4F5C144D00284F00005156812051008" & "00523C285200004D4E3C4F5C144D00284F00005156812051008500523C285200004D4E" & "C4F5C144D00284F00005156812051008500523C285200004D4E3C4F5C144D00284F000" & "5156812051008500B107640091523C14B107631491520000B1076200914D4E14B10761" & "0076014075F04914F5C10B1075E04914D0010B1075D11075C07914F000051560DB1075" & "14075A1407591107581407571407561407551007540E91510006B10753140752140751" & "1075014074F14074E14074D11074C14074B14074A14074910074814074714074614074" & "11074414074314074214074111074014073F14073E14073D10073C14073B14073A1407" & "91107381407371407361407351107341407331407320091523C14B1073110073004915" & "00004D4E10B1072F14072E14072D04914F5C0DB1072C07914D000DB1072B14072A0791" & "F000051560DB107291107281407271407261407251007241407231407220E91510006B" & "072111072014071F14071E14071D11071C14071B14071A140719100718140717140716" & "4071511071414071314071214071111071014070F14070E14070D10070C14070B14070" & "14070911070814070714070614070511070414070314070214070110070000FF2F004D" & "4726B0000006100FF21010000B2000000200000C21500B20732000A400092377F87403" & "0000357F8740350000377F8740370000357F8740350000377F8740370000357F874035" & "000377F8740370000357F8740350000377F8740370000357F8740350000FF2F004D547" & "6B000000E200FF21010000C33100B30741000A2D81E100932B7F004F7F00377F00437F" & "268B3407F78934300004F0000467F00527F00B340008268407F78935200002B0000370" & "00460000297F00547F00357F00487F00B340008170407F817093480000540000517F00" & "57F00B340008268407F78934500002900003500005100002B7F00527F00467F00377F0" & "B340008268407F78934600005200004F7F00437F00B340008268407F78934300003700" & "02B00004F0000517F00297F00457F00357F00B340008268407F7893547F83605400004" & "0000510000290000350000B3400000FF2F004D54726B000007D800FF21010000B40000" & "0200000C42300B40778000A4000941F7F87401F00001D7F87401D00001F7F87401F000" & "1D7F85501D003C1D7F3CE4005000407800407F3C40780000500000403C005B1E407F85" & "2941D003CE4004000941F7F3CE4004700406D00407F3C40420000403C941F00001D7F8" & "501D003C1D7F3CE4005000407800407F3C40780000500000403C005B1E407F8532941D" & "03CE4004000941F7F3CE4004700406D00407F3C40420000403C941F00001D7F85501D0" & "3C1D7F3CE4005000407800407F3C40780000500000403C005B1E407F8532941D003CE4" & "04000941F7F3CE4004700406D00407F3C40420000403C941F00001D7F87401D0000187" & "870D180033187F1218000C187F171800870B187F870D180033187F1218000C187F1718" & "0870B177F870D170033177F1217000C177F171700870B177F870D170033177F1217000" & ^ ERROR
->19:17:04 AutoIT3.exe ended.rc:1
+>19:17:05 AutoIt3Wrapper Finished
>Exit code: 1    Time: 1.258

source

$var = "0x4D546864000000060001001100784D54726B000000F800FF03294D65616E20284169" & _
"E2774204E6F204869702D486F7020496E2054686120486F757365204D6978292000FF0" & _
"1841676520457870616E73696F6E205061636B204D7573696300FF021F436F70797269" & _
"7687420A9203139393820627920446176696420526970707900FF010C4461766964205" & _
"697070790A00FF010653797365780A00FF011352656D69786564206279205374657665" & _
"D470A00FF012E4C6F61642074686520452D4D752070617463682E20204E6F207265766" & _
"7262206973206E65636573736172792E0A00FF010C426F73732073797365782E0A00FF" & _
"8040402180800FF5902000000FF510309108B00FF2F004D54726B000000B700FF21010" & _
"00B0000000200000C00E00B00778000A7F8F0090437E817043008D10437E817043008D" & _
"0437E817043008D10437E817043008D10437E7843008E08437E7843008E08427E78420" & _
"8E08427E7842008E08437E817043008D10437E817043008D10377E817037008D10377E" & _
"17037008D10377E817037008D10377E817037008D10437E817043008D10437E8170430" & _
"8D10377E817037008D10377E817037008D10377E817037008D10377E8170370000FF2F" & _
"04D54726B0000030300FF21010000B1000000200000C10B00B1075F000A2381A500915" & _
"3C285200004D4E3C4F5C144D00284F00005156812051008500523C285200004D4E3C4F" & _
"C144D00284F00005156812051008500523C285200004D4E3C4F5C144D00284F0000515" & _
"812051008500523C285200004D4E3C4F5C144D00284F00005156812051008500523C28" & _
"200004D4E3C4F5C144D00284F00005156812051008500523C285200004D4E3C4F5C144" & _
"00284F00005156812051008500523C285200004D4E3C4F5C144D00284F000051568120" & _
"1008500523C285200004D4E3C4F5C144D00284F0000515681205100A300523C2852000" & _
"4D4E3C4F5C144D00284F00005156812051008500523C285200004D4E3C4F5C144D0028" & _
"F00005156812051008500523C285200004D4E3C4F5C144D00284F00005156812051008" & _
"00523C285200004D4E3C4F5C144D00284F00005156812051008500523C285200004D4E" & _
"C4F5C144D00284F00005156812051008500523C285200004D4E3C4F5C144D00284F000" & _
"5156812051008500B107640091523C14B107631491520000B1076200914D4E14B10761" & _
"0076014075F04914F5C10B1075E04914D0010B1075D11075C07914F000051560DB1075" & _
"14075A1407591107581407571407561407551007540E91510006B10753140752140751" & _
"1075014074F14074E14074D11074C14074B14074A14074910074814074714074614074" & _
"11074414074314074214074111074014073F14073E14073D10073C14073B14073A1407" & _
"91107381407371407361407351107341407331407320091523C14B1073110073004915" & _
"00004D4E10B1072F14072E14072D04914F5C0DB1072C07914D000DB1072B14072A0791" & _
"F000051560DB107291107281407271407261407251007241407231407220E91510006B" & _
"072111072014071F14071E14071D11071C14071B14071A140719100718140717140716" & _
"4071511071414071314071214071111071014070F14070E14070D10070C14070B14070" & _
"14070911070814070714070614070511070414070314070214070110070000FF2F004D" & _
"4726B0000006100FF21010000B2000000200000C21500B20732000A400092377F87403" & _
"0000357F8740350000377F8740370000357F8740350000377F8740370000357F874035" & _
"000377F8740370000357F8740350000377F8740370000357F8740350000FF2F004D547" & _
"6B000000E200FF21010000C33100B30741000A2D81E100932B7F004F7F00377F00437F" & _
"268B3407F78934300004F0000467F00527F00B340008268407F78935200002B0000370" & _
"00460000297F00547F00357F00487F00B340008170407F817093480000540000517F00" & _
"57F00B340008268407F78934500002900003500005100002B7F00527F00467F00377F0" & _
"B340008268407F78934600005200004F7F00437F00B340008268407F78934300003700" & _
"02B00004F0000517F00297F00457F00357F00B340008268407F7893547F83605400004" & _
"0000510000290000350000B3400000FF2F004D54726B000007D800FF21010000B40000" & _
"0200000C42300B40778000A4000941F7F87401F00001D7F87401D00001F7F87401F000" & _
"1D7F85501D003C1D7F3CE4005000407800407F3C40780000500000403C005B1E407F85" & _
"2941D003CE4004000941F7F3CE4004700406D00407F3C40420000403C941F00001D7F8" & _
"501D003C1D7F3CE4005000407800407F3C40780000500000403C005B1E407F8532941D" & _
"03CE4004000941F7F3CE4004700406D00407F3C40420000403C941F00001D7F85501D0" & _
"3C1D7F3CE4005000407800407F3C40780000500000403C005B1E407F8532941D003CE4" & _
"04000941F7F3CE4004700406D00407F3C40420000403C941F00001D7F87401D0000187" & _
"870D180033187F1218000C187F171800870B187F870D180033187F1218000C187F1718" & _
"0870B177F870D170033177F1217000C177F171700870B177F870D170033177F1217000" & _
"177F171700870B1F7F87401F00001D7F87401D00001F7F87401F00001D7F87401D0000" & _
"D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1E1D00001F7F1E1F00820E1D7F1E1D0" & _
"001F7F1E1F001E1F7F1E1F001E1D7F1E1D00001F7F1E1F001E227F3C220000217F3C21" & _
"0001F7F3C1F00001D7F1E1D001E1B7F1E1B00001D7F1E1D001E1D7F1E1D001E1B7F1E1" & _
"00001D7F1E1D00820E1B7F1E1B00001D7F1E1D001E1D7F1E1D001E1B7F1E1B00001D7F" & _
"E1D00820E1D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1E1D00001F7F1E1F00820" & _
"1D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1E1D00001F7F1E1F001E227F3C2200" & _
"0217F3C2100001F7F3C1F00001D7F1E1D001E1B7F1E1B00001D7F1E1D001E1D7F1E1D0" & _
"1E1B7F1E1B00001D7F1E1D00820E1B7F1E1B00001D7F1E1D001E1D7F1E1D001E1B7F1E" & _
"B00001D7F1E1D00820E1D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1E1D00001F7" & _
"1E1F00820E1D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1E1D00001F7F1E1F001E" & _
"27F3C220000217F3C2100001F7F3C1F00001D7F1E1D001E1B7F1E1B00001D7F1E1D001" & _
"1D7F1E1D001E1B7F1E1B00001D7F1E1D00820E1B7F1E1B00001D7F1E1D001E1D7F1E1D" & _
"01E1B7F1E1B00001D7F1E1D00820E1D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1" & _
"1D00001F7F1E1F00820E1D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1E1D00001F" & _
"F1E1F001E227F3C220000217F3C2100001F7F3C1F00001D7F1E1D001E1B7F1E1B00001" & _
"7F1E1D001E1D7F1E1D001E1B7F1E1B00001D7F1E1D00820E1B7F1E1B00001D7F1E1D00" & _
"E1D7F1E1D001E1B7F1E1B00001D7F1E1D00820E1F7F87401F00001D7F87401D00001F7" & _
"87401F00001D7F87401D00001D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1E1D00" & _
"01F7F1E1F00820E1D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1E1D00001F7F1E1" & _
"001E227F3C220000217F3C2100001F7F3C1F00001D7F1E1D001E1B7F1E1B00001D7F1E" & _
"D001E1D7F1E1D001E1B7F1E1B00001D7F1E1D00820E1B7F1E1B00001D7F1E1D001E1D7" & _
"1E1D001E1B7F1E1B00001D7F1E1D00820E1D7F1E1D00001F7F1E1F001E1F7F1E1F001E" & _
"D7F1E1D00001F7F1E1F00820E1D7F1E1D00001F7F1E1F001E1F7F1E1F001E1D7F1E1D0" & _
"001F7F1E1F001E227F3C220000217F3C2100001F7F3C1F00001D7F1E1D001E1B7F1E1B" & _
"0001D7F1E1D001E1D7F1E1D001E1B7F1E1B00001D7F1E1D00820E1B7F1E1B00001D7F1" & _
"1D001E1D7F1E1D001E1B7F1E1B00001D7F1E1D00820E1D7F1E1D00001F7F1E1F001E1F" & _
"F1E1F001E1D7F1E1D00001F7F1E1F00820E1D7F1E1D00001F7F1E1F001E1F7F1E1F001" & _
"1D7F1E1D00001F7F1E1F001E227F3C220000217F3C2100001F7F3C1F00001D7F1E1D00" & _
"E1B7F1E1B00001D7F1E1D001E1D7F1E1D001E1B7F1E1B00001D7F1E1D00820E1B7F1E1" & _
"00001D7F1E1D001E1D7F1E1D001E1B7F1E1B00001D7F1E1D00820EB4077800941D7F10" & _
"407770E941D00001F7F03B407761107750A941F0006B407740E07730A941F7F06B4077" & _
"11077107941F000AB4077010076F04941D7F0AB4076E10076D04941D00001F7F0DB407" & _
"C11941F0000B4076B10076A0E07691007681107671107661007650E076410076311076" & _
"1107610D076011075F10075E11075D11075C0D075B11075A00941D7F10B407590E941D" & _
"0001F7F03B407581107570A941F0003B407561107550A941F7F06B4075411075307941" & _
"000AB407520D075107941D7F0AB4075010074F04941D00001F7F0DB4074E11941F0000" & _
"4074D0D074C11074B0094227F10B4074A1107490D07480E94220000217F03B40747110" & _
"4610074511074407942100001F7F06B4074311074211074110074004941F00001D7F0D" & _
"4073F0D073E04941D000DB4073D11073C00941B7F10B4073B0E941B00001D7F03B4073" & _
"0D07390E941D0003B407381107370A941D7F06B4073611073507941D0006B407341107" & _
"307941B7F0AB4073210073104941B00001D7F0AB4073010072F04941D000DB4072E110" & _
"2D10072C0E072B10072A1107291107281007270E07261007251107241107231007220E" & _
"72110072011071F11071E00941B7F10B4071D0E941B0000B4071C00941D7F10B4071B0" & _
"941D0003B4071A1107190A941D7F03B407181107170A941D0006B4071611071507941B" & _
"F0AB407140D071307941B00001D7F0AB4071210071104941D000DB4071011070F0D070" & _
"11070D10070C11070B11070A0D07091107081007071107061107050D07041107031007" & _
"21107010D070000FF2F004D54726B0000049C00FF21010000B5000000200000C52E00B" & _
"077F000A00CB00953C3C28413C284100003C0000433C284300003E3C283E0000413C28" & _
"10000433C284300003C3C283C0000413C28410000433C284300003E3C283E0000413C2" & _
"410000433C284300003C3C28413C284100003C0000433C284300003E3C283E0000413C" & _
"8410000433C284300003C3C283C0000413C28410000433C284300003E3C283E0000413" & _
"28410000433C284300003C3C28413C284100003C0000433C284300003E3C283E000041" & _
"C28410000433C284300003C3C283C0000413C28410000433C284300003E3C283E00004" & _
"3C28410000433C284300003C3C28413C284100003C0000433C284300003E3C283E0000" & _
"13C28410000433C284300003C3C283C0000413C28410000433C284300003E3C283E000" & _
"413C28410000433C284300003C3C28413C284100003C0000433C284300003E3C283E00" & _
"0413C28410000433C284300003C3C283C0000413C28410000433C284300003E3C283E0" & _
"00413C28410000433C284300003C3C28413C284100003C0000433C284300003E3C283E" & _
"000413C28410000433C284300003C3C283C0000413C28410000433C284300003E3C283" & _
"0000413C28410000433C284300003C3C28413C284100003C0000433C284300003E3C28" & _
"E0000413C28410000433C284300003C3C283C0000413C28410000433C284300003E3C2" & _
"3E0000413C28410000433C284300003C3C28413C284100003C0000433C284300003E3C" & _
"83E0000413C28410000433C284300003C3C283C0000413C28410000433C284300003E3" & _
"283E0000413C28410000433C284300003B3C28403C284000003B0000423C284200003D" & _
"C283D0000403C28400000423C284200003B3C283B0000403C28400000423C284200003" & _
"3C283D0000403C28400000423C284200003B3C28403C284000003B0000423C28420000" & _
"D3C283D0000403C28400000423C284200003B3C283B0000403C28400000423C2842000" & _
"3D3C283D0000403C28400000423C284200003B3C28403C284000003B0000423C284200" & _
"03D3C283D0000403C28400000423C284200003B3C283B0000403C28400000423C28420" & _
"003D3C283D0000403C28400000423C284200003B3C28403C284000003B0000423C2842" & _
"0003D3C283D0000403C28400000423C284200003B3C283B0000403C28400000423C284" & _
"00003D3C283D0000403C28400000423C284200003B3C28403C284000003B0000423C28" & _
"200003D3C283D0000403C28400000423C284200003B3C283B0000403C28400000423C2" & _
"4200003D3C283D0000403C28400000423C284200003B3C28403C284000003B0000423C" & _
"84200003D3C283D0000403C28400000423C284200003B3C283B0000403C28400000423" & _
"284200003D3C283D0000403C28400000423C284200003B3C28403C284000003B000042" & _
"C284200003D3C283D0000403C28400000423C284200003B3C283B0000403C284000004" & _
"3C284200003D3C283D0000403C28400000423C284200003B3C28403C284000003B0000" & _
"23C284200003D3C283D0000403C28400000423C284200003B3C283B0000403C2840000" & _
"423C284200003D3C283D0000403C28400000423C28420000FF2F004D54726B000001D1" & _
"0FF21010000B6000000200000C64700B60746000A40CB0096437F8145B601030A01060" & _
"010A0F010E0801100A011608011810011B08011E0A01210701250F012908012B0A012E" & _
"901300F01330A01360901390801001396430000437F28430000457F28450000467F284" & _
"0000457F28450000437F28430000417F50410000457F28450000437F8120430000417F" & _
"84100003E7F283E00003C7F8104B6010308010510010809010B0801100801130801151" & _
"011808011B0F01200801230B012816012C08012E0A01301001331801360901382F013B" & _
"901392101330701260901100A01001C963C0083103C7F283C0000417F28410000437F6" & _
"B601020F01060A010A10010E08011109011509011909011B08011E0701210801250A01" & _
"846012B2701290A012B1E01280C011D0701100801050901000796430000437F2843000" & _
"457F28450000467F28460000457F28450000437F28430000467F28460000457F284500" & _
"0437F28430000467F28460000457F28450000437F28430000417F28410000437F28430" & _
"00457F284500003C7F8203B6010219010517010A10010D0A01100F01130801160B0118" & _
"8011B07011E1001201001230A012608012820012308011508963C0000B601020A01000" & _
"FF2F004D54726B000000E700FF21010000FF03012000B7000000200000C70600B70746" & _
"00A4BE830974A7F284A00004D7F284D00004E7F83104E00004E7F284E0000507F28500" & _
"00517F28510000507F285000004E7F284E00004C7F504C0000507F285000004E7F8120" & _
"E00004C7F284C0000497F28490000477F836047008310477F284700004C7F284C00004" & _
"7F83104E00004E7F284E0000507F28500000517F28510000507F285000004E7F284E00" & _
"0517F28510000507F285000004E7F284E0000517F28510000507F285000004E7F284E0" & _
"004C7F284C00004E7F284E0000507F28500000477F8360470000FF2F004D54726B0000" & _
"03A00FF21010000B8000000200000C87700B8077D000A00E710982B4581702B009D083" & _
"4F7837009B72117E820E1100D772114D820E110000FF2F004D54726B00002D4100FF21" & _
"10000B9000000200000C90000B90778000A408F009936481E36001E36431E360000364" & _
"1E36000036581E36001E36491E36001E363F1E36001E36491E360000363C1E36000036" & _
"81E36001E363C1E36001E36481E36001E36431E36000036461E36000036581E36001E3" & _
"491E36001E363F1E36001E36491E360000363C1E36000036581E36001E363C1E36001E" & _
"6481E36001E36431E36000036461E36000036581E36001E36491E36001E363F1E36001" & _
"36491E360000363C1E36000036581E36001E363C1E36001E36481E36001E36431E3600" & _
"036461E36000036581E36001E36491E36001E363F1E36001E36491E360000363C1E360" & _
"0036581E36001E363C1E36001E36481E36001E36430055641E55000036000036461E36" & _
"000365800567F1E56000036001E36490057691E570000360000567F1E560000363F1E3" & _
"0014534C0A36491E360000363C1453000A36000036581E36001E363C1E36001E36481E" & _
"6001E55640036431E36000055000036461E360000567F0036581E36000056001E57690" & _
"36491E360000570000567F1E560000363F1E36001E4D580036491E3600004D00004C3E" & _
"0363C1E3600004C000036581E36001E363C1E36001E36481E36001E55640036431E360" & _
"0055000036461E360000567F0036581E36000056001E57690036491E36000057000056" & _
"F1E560000363F1E36001E51610036491E360000363C1E36000051000050480036581E3" & _
"000050001E363C1E36001E36481E36001E55640036431E36000055000036461E360000" & _
"67F0036581E36000056001E57690036491E360000570000567F1E560000363F1E36001" & _
"51610036491E360000363C1E360000510000504C0036581E36000050001E363C1E3600" & _
"E36481E36001E36430055641E55000036000036461E360000365800567F1E560000360" & _
"1E36490057691E570000360000567F1E560000363F1E360014534C0A36491E36000036" & _
"C1453000A36000036581E36001E363C1E36001E36481E36001E55640036431E3600005" & _
"000036461E360000567F0036581E36000056001E57690036491E360000570000567F1E" & _
"60000363F1E36001E4D580036491E3600004D00004C3E00363C1E3600004C000036581" & _
"36001E363C1E36001E36481E36001E55640036431E36000055000036461E360000567F" & _
"036581E36000056001E57690036491E360000570000567F1E560000363F1E36001E516" & _
"0036491E360000363C1E36000051000050480036581E36000050001E363C1E36001E36" & _
"81E36001E55640036431E36000055000036461E360000567F0036581E36000056001E5" & _
"690036491E360000570000567F1E560000363F1E36001E51610036491E360000363C1E" & _
"60000510000504C0036581E36000050001E363C1E36001E36481E36001E36430055641" & _
"55000036000036461E360000365800567F1E56000036001E36490057691E5700003600" & _
"0567F1E560000363F1E360014534C0A36491E360000363C1453000A36000036581E360" & _
"1E363C1E36001E36481E36001E55640036431E36000055000036461E360000567F0036" & _
"81E36000056001E57690036491E360000570000567F1E560000363F1E36001E4D58003" & _
"491E3600004D00004C3E00363C1E3600004C000036581E36001E363C1E36001E36481E" & _
"6001E55640036431E36000055000036461E360000567F0036581E36000056001E57690" & _
"36491E360000570000567F1E560000363F1E36001E51610036491E360000363C1E3600" & _
"051000050480036581E36000050001E363C1E36001E36481E36001E55640036431E360" & _
"0055000036461E360000567F0036581E36000056001E57690036491E36000057000056" & _
"F1E560000363F1E36001E51610036491E360000363C1E360000510000504C0036581E3" & _
"000050001E363C1E36001E397F00237F00407A2240001A36501236000C3F6A00524612" & _
"F00055200072300003900003F7F0C3F00123F79153F000936500052461336000252006" & _
"36501536000952461C52003E36501336000B52461252000C407F2240001A3650143600" & _
"A3F6C005246123F00055200073F7F0B3F00133F7B133F000B365000524614360001520" & _
"273E7F0F3E000F3E5E123E000C3650153600093F680052460D3F000F5200023E7F163E" & _
"02636501236000C52461252000C407A2240001A36501236000C3F6A005246123F00055" & _
"00073F7F0C3F00123F79153F00093650005246133600025200633650004B1615360009" & _
"B000052461C5200024B1A1E4B00004B1E1E4B00003650004B441336000B4B000052461" & _
"52000C407F00377F004B7F00237F1E4B000440001A36501436000A3F6C005246123F00" & _
"55200073700002300003F7F0B3F00133F7B133F000B3650005246143600015200273E7" & _
"0F3E000F3E5E123E000C3650005158153600095100003F680052460D3F000F5200023E" & _
"F00516D163E0026510000365000506D1236000C50000052461252000C407A2240001A3" & _
"501236000C3F6A005246123F00055200073F7F0C3F00123F79153F0009365000524613" & _
"6000252006351500036501536000951000052461C52000250391E50001E36501336000" & _
"52461252000C407F2240001A36501436000A3F6C005246123F00055200073F7F0B3F00" & _
"33F7B133F000B36500052460055261436000152000955001E3E7F0055280F3E000F550" & _
"003E5E005534123E000C5500003650005552153600095500003F6800524600557F0D3F" & _
"00F5200025500003E7F163E002636501236000C52461252000C407A2240001A3650123" & _
"000C3F6A005246123F00055200073F7F0C3F00123F79153F0009365000524613360002" & _
"2006336500051581536000951000052461C520002516D3C510000365000506D1336000" & _
"50000052461252000C407F00347F00237F2240001A36501436000A3F6C005246123F00" & _
"55200072300003400003F7F0B3F00133F7B133F000B3650005246143600015200273E7" & _
"0F3E000F3E5E123E000C3650005150153600095100003F680052460D3F000F5200023E" & _
"F005039163E000850001E36500F265A0336000C260000524600265A0F260000265A035" & _
"000C260000407A00453900237F0037611645000845500440000A45001036501236000C" & _
"F6A0045390052460D4500053F00055200072300003700003F7F004539064500063F001" & _
"3F79004550153F000245000736500052461336000252000945391145000D45390A4500" & _
"445501645000836501536000945390052460E45000E52000245390A450014455014450" & _
"0A36501336000B45390052460A45000852000C407F0045391645000845500440000A45" & _
"01036501436000A3F6C0045390052460D4500053F00055200073F7F004539064500053" & _
"00133F7B004550133F000445000736500052461436000152000945391145000D3E7F00" & _
"5390A4500053E000F3E5E004550123E00044500083650153600093F680045390052460" & _
"3F000145000E5200023E7F0045390A45000C3E000845501445000A36501236000C4539" & _
"052460A45000852000C407A0045391645000845500440000A45001036501236000C3F6" & _
"0045390052460D4500053F00055200073F7F004539064500063F00123F79004550153F" & _
"00245000736500052461336000252000945391145000D45390A4500144550164500083" & _
"50004B16153600094B000045390052460E45000E5200024539004B1A0A4500144B0000" & _
"550004B1E1445000A4B00003650004B441336000B4B000045390052460A45000852000" & _
"407F004B7F004539164500084B000045500440000A45001036501436000A3F6C004539" & _
"052460D4500053F00055200073F7F004539064500053F00133F7B004550133F0004450" & _
"0736500052461436000152000945391145000D3E7F0045390A4500053E000F3E5E0045" & _
"0123E00044500083650153600093F680045390052460D3F000145000E5200023E7F004" & _
"390A45000C3E000845501445000A36501236000C45390052460A45000852000C407A00"

$var2 = "5391645000845500440000A45001036501236000C3F6A0045390052460D4500053F000" & _
"5200073F7F004539064500063F00123F79004550153F00024500073650005246133600" & _
"252000945391145000D45390A45001445501645000836501536000945390052460E450" & _
"0E52000245390A45001445501445000A36501336000B45390052460A45000852000C40" & _
"F0045391645000845500440000A45001036501436000A3F6C0045390052460D4500053" & _
"00055200073F7F004539064500053F00133F7B004550133F0004450007365000524600" & _
"5261436000152000955000045391145000D3E7F0045390055280A4500053E000F55000" & _
"3E5E004550005534123E00044500085500003650005552153600095500003F68004539" & _
"0524600557F0D3F000145000E5200025500003E7F0045390A45000C3E0008455014450" & _
"0A36501236000C45390052460A45000852000C407A0045391645000845500440000A45" & _
"01036501236000C3F6A0045390052460D4500053F00055200073F7F004539064500063" & _
"00123F79004550153F000245000736500052461336000252000945391145000D45390A" & _
"5001445501645000836501536000945390052460E45000E52000245390A45001445501" & _
"45000A36501336000B45390052460A45000852000C407F004539164500084550044000" & _
"A45001036501436000A3F6C0045390052460D4500053F00055200073F7F00453906450" & _
"053F00133F7B004550133F000445000736500052461436000152000945391145000D3E" & _
"F0045390A4500053E000F3E5E004550123E00044500083650153600093F68004539005" & _
"460D3F000145000E5200023E7F0045390A4500053E00003E640F3E00003E7F0045500F" & _
"E00003E640545000A3E00003E7F0036500F3E000336000C3E7F0045390052460A45000" & _
"3E000352000C237F00367F005055003761003D7F00237F0E5000003600073D0009365A" & _
"050550E500000360010365A005155003F770323000A3600023F000451000B365A003E7" & _
"0636000C3E000C230000370000367F005055003C7F00237F103600013C000950000436" & _
"A003C740C3600073C000B365A00515506230008360007510009365A0B360013367F005" & _
"55003F7F00237F0D5000053600003F000C365A005055003D780C3600035000053D000A" & _
"65A0051550D23000236000551000A365A003D740D3D0001360010367F005055003C7F0" & _
"237F0C5000053600023C000B365A005055003C4E093600083C000150000C365A005155" & _
"1360002510006230005365A0A360005365A0F505500237F00367F003D7F02360008500" & _
"043600073D0009505500365A0E36000250000E515500365A003F770323000A3600023F" & _
"00351000C365A003E790636000C3E000C505500237F00367F003C7F103600013C00045" & _
"0009365A003C740C3600073C000B515500365A06230008360007510009365A0B360013" & _
"05500237F00367F003F7F0C5000063F000036000C505500365A003D780C36000350000" & _
"3D000A515500365A0D23000236000451000B365A003D740D3D0001360010505500237F" & _
"0367F003C7F0C5000053600023C000B505500365A003C4E093600035000053C000D515" & _
"00365A0C510005360008230005365A0A360005365A0F5055003D7F00367F00237F0236" & _
"00C3600005000073D0009505500365A0E3600005000105155003F7700365A0323000A3" & _
"00023F000451000B3E7900365A0636000C3E000C5055003C7F00367F00237F10360001" & _
"C00095000043C7400365A0C3600073C000B515500365A06230008360007510009365A0" & _
"3600135055003F7F00367F00237F0D5000053F000036000C5055003D7800365A0C3600" & _
"35000053D000A515500365A0D23000236000551000A3D7400365A0D3D0001360010505" & _
"003C7F00367F00237F0C5000053600023C000B5055003C4E00365A093600083C000150" & _
"00C515500365A11360002510006230005365A0A360005365A0F505500367F003D7F002" & _
"7F023600085000043600073D0009505500365A0E36000250000E515500365A003F7703" & _
"3000A3600023F000351000C365A003E790636000C3E000C505500367F003C7F00237F1" & _
"3600013C0004500009365A003C740C3600073C000B515500365A062300083600075100" & _
"9365A0B360013505500367F003F7F00237F0C5000063600003F000C505500365A003D7" & _
"0C3600035000053D000A515500365A0D23000236000451000B365A003D740D3D000136" & _
"010505500367F003C7F00237F0C5000053600023C000B505500365A003C4E093600035" & _
"00053C000D515500365A003C7F0C5100033C0002360008230005365A003C640A360005" & _
"65A0F3C0000377F003D7F00237F00367F0050550236000C3600005000013700063D000" & _
"365A0050550E5000003600103F7700365A0051550323000A3600023F000451000B3E79" & _
"0365A0636000C3E000C3C7F00237F00367F005055103600013C00095000043C7400365" & _
"0C3600073C000B365A00515506230008360007510009365A0B3600133F7F00237F0036" & _
"F0050550D5000053600003F000C3D7800365A0050550C3600035000053D000A365A005" & _
"550D23000236000551000A3D7400365A0D3D00013600103C7F00237F00367F0050550C" & _
"000053600023C000B3C4E00365A005055093600083C000150000C365A0051551136000" & _
"510006230005365A0A360005365A0F5055003D7F00237F00367F023600085000043600" & _
"73D0009505500365A0E36000250000E5155003F7700365A0323000A3600023F0003510" & _
"0C3E7900365A0636000C3E000C5055003C7F00237F00367F103600013C00045000093C" & _
"400365A0C3600073C000B515500365A06230008360007510009365A0B3600135055003" & _
"7F00237F00367F0C5000063F000036000C5055003D7800365A0C3600035000053D000A" & _
"15500365A0D23000236000451000B3D7400365A0D3D00013600105055003C7F00237F0" & _
"367F0C5000053600023C000B5055003C4E00365A093600035000053C000D515500365A" & _
"C510005360008230005365A0A360005365A0F3D7F00237F00505500367F0236000C500" & _
"003600073D0009505500365A0E3600005000103F7700515500365A0323000A3600023F" & _
"00451000B3E7900365A0636000C3E000C3C7F00237F00505500367F103600013C00095" & _
"00043C7400365A0C3600073C000B515500365A06230008360007510009365A0B360013" & _
"F7F00237F00505500367F0D5000053600003F000C3D7800505500365A0C36000350000" & _
"3D000A515500365A0D23000236000551000A3D7400365A0D3D00013600103C7F00237F" & _
"0505500367F0C5000053600023C000B3C4E00505500365A093600083C000150000C515" & _
"00365A11360002510006230005365A0A360005365A0F5055003D7F00237F00367F0236" & _
"0085000043600073D0009505500365A0E36000250000E5155003F7700365A0323000A3" & _
"00023F000351000C3E7900365A0636000C3E000C5055003C7F00237F00367F10360001" & _
"C00045000093C7400365A0C3600073C000B515500365A06230008360007510009365A0" & _
"287F0B3600042873092800065055003F7F00237F00367F0C5000042800023600003F00" & _
"C5055003D7800365A00287F00267F0C3600035000053D0004260006515500365A00247" & _
"0128000C23000236000451000B3D7400365A002473092400043D00013600105055003C" & _
"F00237F00367F00287F0124000B5000053600023C00052800065055003C4E00365A002" & _
"5000247F093600035000042A00013C000D515500365A002A5000287F09240003510003" & _
"86E023600042A0003280001230005365A00265500287F09280001360005365A0028730" & _
"260000280006247F00407A00377900237F0236000728000B37000123000D4000383F6A" & _
"23F000C2400003F7F0C3F00123F79153F008235407F224000383F6C123F000C3F7F0B3" & _
"00133F7B133F00473E7F0F3E000F3E5E123E002A3F680D3F00113E7F163E0062407A22" & _
"000383F6A123F000C3F7F0C3F00123F79153F008235407F224000383F6C123F000C3F7" & _
"0B3F00133F7B133F00473E7F0F3E000F3E5E123E002A3F680D3F00113E7F163E006240" & _
"A224000383F6A123F000C3F7F0C3F00123F79153F008235407F224000383F6C123F000" & _
"3F7F0B3F00133F7B133F00473E7F0F3E000F3E5E123E002A3F680D3F00113E7F163E00" & _
"2407A224000383F6A123F000C3F7F0C3F00123F79153F008235407F224000383F6C123" & _
"000C3F7F0B3F00133F7B133F00473E7F0F3E000F3E5E123E002A3F680D3F00113E7F00" & _
"6110A261B052600052625023E0003260005262F0526000526390526000526430526000" & _
"264D05260005265705260005266105260005266B05260005267505260005267F052600" & _
"5237F00346100407A0036390526001936000440001A55640036351E3600005500003F6" & _
"003638123F000C230000340000360000567F003F7F0036460C3F00123600005600003F" & _
"9153F0009576900363A1E360000570000567F1E56000036321E360014534C0A363A005" & _
"581E510000360000362F1453000A360000364600516D1E36001E510000362F00506D1E" & _
"0000036001E407F0036391E36000440001A55640036351E3600005500003F6C0036381" & _
"3F000C360000567F003F7F0036460B3F00133600005600003F7B133F000B576900363A" & _
"E360000570000567F1E5600003E7F0036320F3E000F3600003E5E123E000C4D5800515" & _
"00363A1E3600005100004D00004C3E003F6800362F0D3F00113600004C00003E7F0050" & _
"9003646163E000836000050001E362F1E36001E363900407A1E36000440001A5564003" & _
"351E3600005500003638003F6A123F000C360000567F003646003F7F0C3F0012360000" & _
"600003F79153F0009576900363A1E360000570000567F1E56000036321E36001E51610" & _
"363A0051581E360000510000362F1E360000510000504800364600516D1E3600005000" & _
"E510000362F00506D1E50000036001E407F0036391E36000440001A55640036351E360" & _
"005500003F6C003638123F000C360000567F003F7F0036460B3F00133600005600003F" & _
"B133F000B576900363A1E360000570000567F1E5600003E7F0036320F3E000F3600003" & _
"5E123E000C516100515000363A1E3600005100003F6800362F0D3F0011360000510000" & _
"04C003E7F005039003646163E000850000050000036001E362F1E36001E407A0037610" & _
"363900237F1E36000440001A36350055641E5500003600003F6A003638123F000C2300" & _
"03700003600003F7F00364600567F0C3F00125600003600003F79153F0009363A00576" & _
"1E570000360000567F1E56000036321E360014534C0A363A0051581E51000036000036" & _
"F1453000A360000364600516D1E36001E510000362F00506D1E50000036001E407F003" & _
"391E36000440001A55640036351E3600005500003F6C003638123F000C3600003F7F00" & _
"67F0036460B3F00133600005600003F7B133F000B576900363A1E360000570000567F1" & _
"5600003E7F0036320F3E000F3600003E5E123E000C4D5800515000363A1E3600005100" & _
"04D00003F68004C3E00362F0D3F00113600004C00003E7F005039003646163E0008360" & _
"0050001E362F1E36001E407A0036391E36000440001A55640036351E3600005500003F" & _
"A003638123F000C360000567F003F7F0036460C3F00123600005600003F79153F00095" & _
"6900363A1E360000570000567F1E56000036321E36001E516100363A0051581E360000" & _
"10000362F1E360000510000504800364600516D1E36000050001E510000362F00506D1" & _
"50000036001E407F0036391E36000440001A55640036351E3600005500003F6C003638" & _
"23F000C360000567F003F7F0036460B3F00133600005600003F7B133F000B576900363" & _
"1E360000570000567F1E5600003E7F003632003764002A5000287F0F2800003700003E" & _
"0052A000A3600003E5E0024780F2400033E000C516100515000363A002A500024780F2" & _
"00002A000F3600005100003F6800362F003964002A5000287F0D3F0002390000280001" & _
"A000E360000510000504C003E7F005039003646002A500024780F2400002478022A000" & _
"3E00083600005000002400005000002A500024780F2400012A000E362F002A5000287F" & _
"F2800002878062A0009280000360000287F0F28000028780F2800002A5000247F00363" & _
"00237F003961112A000124000C3600002A50002466102A00052400092A500024660036" & _
"5112A00082400053600002A500036380F2A000F3900002300003600002A50003646002" & _
"7F142A000A36001E2E5000363A052800122E0007360000247F1E2A5000363201240017" & _
"A00063600002466092400152A5000247300363A005158162A0008510000360000362F0" & _
"2400153600002E5000364600287F00516D1A2E000436000328001B5100002A5000362F" & _
"0506D1B2A000350000036001E2A5000363900247F122400052A0007360000246615240" & _
"092A50003635002466172A000224000536000036381E3600002E5000287F003646182E" & _
"00228000436001E2A5000363A122A000C360000247F1E2A50003632012400132A000A3" & _
"0000267F182600062A5000515000363A0024730F2A000F5100003600002A5000362F09" & _
"400072A000E360000287F002A50005039003646112A00072800065000003600002A501" & _
"2A000E2A5000362F152A0009360000265518260006363900247F002A50112A00012400" & _
"C3600002466002A50102A00052400093635002466002A50112A0008240005360000363" & _
"002A500F2A000F3600003646002A5000287F142A000A36001E363A002E50052800122E" & _
"007360000247F1E3632002A50012400172A0006360000246609240015363A002473002" & _
"50005158162A0008510000360000362F092400153600003646002E5000287F00516D1A" & _
"E000436000328001B510000362F002A5000506D1B2A000350000036001E2A5000247F0" & _
"3639122400052A0007360000287F0F28000F2A5000247F003635172A00073600002478" & _
"03638092400153600002E5000287F0036460924000F2E000228000436001E2A5000247" & _
"00363A0F2400032A000C360000247F0F24000F2A50003632142A000A360000267F1826" & _
"0062A5000515000247F00363A0F2A000024780F5100003600002A5000247800362F092" & _
"00072A00082400063600002A5000503900364600287F092400082A000D360000500000" & _
"A5000287F092800072A000E2A5000362F0928000C2A000936000026550F26550926000" & _
"3961003178002A5000363900237F00247F112A00012400062600063600002A50002466" & _
"93100072A00052400092A50003635002466112A00082400053600002A500036380F2A0" & _
"0F2300003900003600002A5000364600287F142A000A36001E2E5000363A052800122E" & _
"007360000247F1E2A50003632012400172A00063600002466092400152A5000363A002" & _
"73005158162A0008360000510000362F092400153600002E5000364600287F00516D1A" & _
"E000436000328001B5100002A5000362F00506D1B2A000350000036001E2A500036390" & _
"247F122400052A00073600002466152400092A50003635002466172A00022400053600" & _
"036381E3600002E5000287F003646182E000228000436001E2A5000363A122A000C360" & _
"00247F1E2A50003632012400132A000A360000267F182600062A5000515000363A0024" & _
"30F2A000F5100003600002A5000362F092400072A000E360000287F002A50005039003" & _
"46112A00072800065000003600002A50102A000E2A5000362F152A0009360000265518" & _
"600062A5000363900247F112A000124000C3600002A50002466102A00052400092A500" & _
"3635002466112A00082400053600002A500036380F2A000F3600002A5000364600287F" & _
"42A000A36001E2E5000363A052800122E0007360000247F1E2A50003632012400172A0" & _
"063600002466092400152A5000363A002473005158162A0008360000510000362F0924" & _
"0153600002E5000364600287F00516D1A2E000436000328001B5100002A5000362F005" & _
"6D1B2A000350000036001E2A5000363900247F122400052A0007360000246615240009" & _
"A50003635002466172A000224000536000036381E3600002E5000287F003646182E000" & _
"28000436001E2A5000363A122A000C360000247F1E2A50003632012400132A000A3600" & _
"E2A5000515000363A0024730F2A000F5100003600002A5000362F092400072A000E360" & _
"00287F002A5000267F0050390036460F267F022A00072800063600005000002A500026" & _
"F09260000260006267F012A00082600062A5000267F00362F09260006267F062A00032" & _
"0006360000267F09260006267F09260006237F00376100347F0036390926001536001E" & _
"5640036351E36000055000036381E360000230000370000340000567F0036461E36000" & _
"56001E576900363A1E360000570000567F1E560000363200247F00237F00397F1E3600" & _
"4534C0A363A0051581E510000360000362F14530004240006360000364600516D1E360" & _
"1E510000362F00506D1E50000036000823000039001636391E36001E55640036351E36" & _
"00055000036381E360000567F0036461E36000056001E576900363A1E3600005700005" & _
"7F1E56000036321E36001E4D5800515000363A1E3600005100004D00004C3E00362F1E" & _
"600004C000050390036461E36000050001E362F1E36001E36391E36001E55640036351" & _
"36000055000036381E360000567F0036461E36000056001E576900363A1E3600005700" & _
"0567F1E56000036321E36001E516100363A0051581E360000510000362F1E360000510" & _
"00504800364600516D1E36000050001E510000362F00506D1E50000036001E36391E36" & _
"01E55640036351E36000055000036381E360000567F0036461E36000056001E5769003" & _
"3A1E360000570000567F1E56000036321E36001E516100515000363A002B780F2B0000" & _
"B780F2B0000360000510000362F002B780F2B000024780F240000360000510000504C0" & _
"503900364600267F0F26000F500000500000360000247F0F24000F362F1E3600002655" & _
"F26000026550F260000363900376100237F1E36001E36350055641E550000360000363" & _
"1E360000230000370000364600567F1E56000036001E363A0057691E57000036000056" & _
"F1E56000036321E360014534C0A363A0051581E510000360000362F1453000A3600003" & _
"4600516D1E36001E510000362F00506D1E50000036001E36391E36001E55640036351E" & _
"6000055000036381E360000567F0036461E36000056001E576900363A1E36000057000" & _
"567F1E56000036321E36001E4D5800515000363A1E3600005100004D00004C3E00362F" & _
"E3600004C000050390036461E36000050001E362F1E36001E36391E36001E556400363" & _
"1E36000055000036381E360000567F0036461E36000056001E576900363A1E36000057" & _
"000567F1E56000036321E36001E516100363A0051581E360000510000362F1E3600005" & _
"0000504800364600516D1E36000050001E510000362F00506D1E50000036001E36391E" & _
"6001E55640036351E36000055000036381E360000567F0036461E36000056001E57690" & _
"363A1E360000570000567F1E56000036321E36001E516100515000363A1E3600005100" & _
"0362F1E360000510000504C0050390036461E36000050000050000025640F25000F362" & _
"00257F0F25000F360000257F0F25000F36391E36001E36350055641E55000036000036" & _
"81E360000364600567F1E56000036001E363A0057691E570000360000567F1E5600003" & _
"321E360014534C0A363A0051581E510000360000362F1453000A360000364600516D1E" & _
"6001E510000362F00506D1E50000036001E36391E36001E55640036351E36000055000" & _
"36381E360000567F0036461E36000056001E576900363A1E360000570000567F1E5600" & _
"036321E36001E4D5800515000363A1E3600005100004D00004C3E00362F1E3600004C0" & _
"0050390036461E36000050001E362F1E36001E36391E36001E55640036351E36000055" & _
"00036381E360000567F0036461E36000056001E576900363A1E360000570000567F1E5" & _
"000036321E36001E516100363A0051581E360000510000362F1E360000510000504800" & _
"64600516D1E36000050001E510000362F00506D1E50000036001E36391E36001E55640" & _
"36351E36000055000036381E360000567F0036461E36000056001E576900363A1E3600" & _
"0570000567F1E56000036321E36001E516100515000363A1E360000510000362F1E360" & _
"00510000504C0050390036461E36000050000050001E362F1E36001EB9077800993639" & _
"0B907781007770007770E99360003B907760007761107750007750A99363506B907740" & _
"07740E07730007730A99360000363806B9077200077211077100077107993600003646" & _
"AB9077000077010076F00076F049936000AB9076E00076E10076D00076D0499363A0DB" & _
"076C00076C1199360000B9076B00076B10076A00076A0E07690099363200B907691007" & _
"80007680E99360003B907670007671107660007660A99363A00515806B907650007650" & _
"07640007640A99510000360000362F06B9076300076311076200076207993600003646" & _
"0516D0AB907610007610D0760000760079936000AB9075F00075F10075E00075E04995" & _
"0000362F00506D0DB9075D00075D1199500000360000B9075C00075C0D075B00075B11" & _
"75A00075A0099363910B907590007590E99360003B907580007581107570007570A993" & _
"3503B907560007561107550007550A99360000363806B9075400075411075300075307" & _
"936000036460AB907520007520D0751000751079936000AB9075000075010074F00074" & _
"0499363A0DB9074E00074E1199360000B9074D00074D0D074C00074C11074B00074B00" & _
"9363210B9074A00074A0E99360003B907490007490D07480007480E99515000363A03B" & _
"07470007471107460007460A99360000510000362F06B9074500074511074400074407" & _
"9360000503900364606B90743000743110742000742079936000050000AB9074100074" & _
"1007400007400499362F0DB9073F00073F0D073E00073E049936000DB9073D00073D11" & _
"73C00073C0099363910B9073B00073B0E99360003B9073A00073A0D07390007390E993" & _
"3503B907380007381107370007370A99360000363806B9073600073611073500073507" & _
"9360000364606B90734000734110733000733079936000AB9073200073210073100073" & _
"0499363A0AB9073000073010072F00072F049936000DB9072E00072E11072D00072D00" & _
"9363210B9072C00072C0E99360000B9072B00072B10072A00072A0E99363A03B907290" & _
"07291107280007280A99360000362F06B907270007270E07260007260A993600003646" & _
"6B90725000725110724000724079936000AB907230007231007220007220499362F0AB" & _
"0721000721100720000720049936000DB9071F00071F11071E00071E0099363910B907" & _
"D00071D0E99360000B9071C00071C10071B00071B0E99363503B9071A00071A1107190" & _
"07190A99360000363803B907180007181107170007170A99360000364606B907160007" & _
"6110715000715079936000AB907140007140D07130007130799363A0AB907120007121" & _
"0711000711049936000DB9071000071011070F00070F009936320DB9070E00070E1199" & _
"60000B9070D00070D10070C00070C0E99363A00514300513803B9070B00070B11070A0" & _
"070A0A99510000360000362F03B907090007091107080007080A993600005100003646" & _
"0503500502706B90707000707110706000706079950000050000036000AB9070500070" & _
"0D07040007040799362F0AB90703000703100702000702049936000DB907010007010D" & _
"70000070000FF2F004D54726B0000048D00FF21010000BA000000200000CA0F00BA076" & _
"000A6E009A43641E43000046641E4600004A641E4A000046641E46000045641E45001E" & _
"3641E4300815243641E43001E43641E43000046641E4600004A641E4A000046641E460"

$var3 = "0045641E45001E43641E4300820E3E641E3E000041641E41000043641E43000045641E" & _
"5000043641E43000041641E4100003E641E3E0081523E641E3E001E3E641E3E0000416" & _
"1E41000043641E43000045641E45000043641E43000041641E4100003E641E3E00820E" & _
"3641E43000046641E4600004A641E4A000046641E46000045641E45001E43641E43008" & _
"5243641E43001E43641E43000046641E4600004A641E4A000046641E46000045641E45" & _
"01E43641E4300820E3E641E3E000041641E41000043641E43000045641E45000043641" & _
"43000041641E4100003E641E3E0081523E641E3E001E3E641E3E000041641E41000043" & _
"41E43000045641E45000043641E43000041641E4100003E641E3E00820E43641E43000" & _
"46641E4600004A641E4A000046641E46000045641E45001E43641E4300815243641E43" & _
"01E43641E43000046641E4600004A641E4A000046641E46000045641E45001E43641E4" & _
"00820E3E641E3E000041641E41000043641E43000045641E45000043641E4300004164" & _
"E4100003E641E3E0081523E641E3E001E3E641E3E000041641E41000043641E4300004" & _
"641E45000043641E43000041641E4100003E641E3E00820E43641E43000046641E4600" & _
"04A641E4A000046641E46000045641E45001E43641E4300815243641E43001E43641E4" & _
"000046641E4600004A641E4A000046641E46000045641E45001E43641E4300820E3E64" & _
"E3E000041641E41000043641E43000045641E45000043641E43000041641E4100003E6" & _
"1E3E0081523E641E3E001E3E641E3E000041641E41000043641E43000045641E450000" & _
"3641E43000041641E4100003E641E3E00820E43641E43000046641E4600004A641E4A0" & _
"0046641E46000045641E45001E43641E4300815243641E43001E43641E43000046641E" & _
"600004A641E4A000046641E46000045641E45001E43641E4300820E3E641E3E0000416" & _
"1E41000043641E43000045641E45000043641E43000041641E4100003E641E3E008152" & _
"E641E3E001E3E641E3E000041641E41000043641E43000045641E45000043641E43000" & _
"41641E4100003E641E3E00EC7E43641E43000045641E45000043641E43000041641E41" & _
"0003E641E3E00820E48641E4800004A641E4A00004B641E4B00004A641E4A000048641" & _
"4800830643641E43000045641E45000043641E43000041641E4100003E641E3E00862A" & _
"3641E43000045641E45000043641E43000041641E4100003E641E3E00820E48641E480" & _
"004A641E4A00004B641E4B00004A641E4A000048641E4800830643641E43000045641E" & _
"5000043641E43000041641E4100003E641E3E00862A43641E43000045641E450000436" & _
"1E43000041641E4100003E641E3E00820E48641E4800004A641E4A00004B641E4B0000" & _
"A641E4A000048641E4800830643641E43000045641E45000043641E43000041641E410" & _
"003E641E3E0000FF2F004D54726B0000049E00FF21010000BB000000200000CB4C00BB" & _
"755000A508187009B43643C4300004A643C4A000046643C4600004A641E4A000045643" & _
"45000046641E4600004A641E4A000046641E46000043641E43000046641E4600004A64" & _
"E4A000046641E46000043643C4300004A643C4A000046643C4600004A641E4A0000456" & _
"3C45000046641E4600004A641E4A000046641E46000043641E43000046641E4600004A" & _
"41E4A000046641E46000041643C4100004A643C4A000046643C4600004A641E4A00004" & _
"643C45000046641E4600004A641E4A000046641E46000043641E43000046641E460000" & _
"A641E4A000046641E46000041643C4100004A643C4A000046643C4600004A641E4A000" & _
"45643C45000046641E4600004A641E4A000046641E46000043641E43000046641E4600" & _
"04A641E4A000046641E46000043643C4300004A643C4A000046643C4600004A641E4A0" & _
"0045643C45000046641E4600004A641E4A000046641E46000043641E43000046641E46" & _
"0004A641E4A000046641E46000043643C4300004A643C4A000046643C4600004A641E4" & _
"000045643C45000046641E4600004A641E4A000046641E46000043641E43000046641E" & _
"600004A641E4A000046641E46000041643C4100004A643C4A000046643C4600004A641" & _
"4A000045643C45000046641E4600004A641E4A000046641E46000043641E4300004664" & _
"E4600004A641E4A000046641E46000041643C4100004A643C4A000046643C4600004A6" & _
"1E4A000045643C45000046641E4600004A641E4A000046641E46000043641E43000046" & _
"41E4600004A641E4A000046641E4600BC0043643C4300004A643C4A000046643C46000" & _
"4A641E4A000045643C45000046641E4600004A641E4A000046641E46000043641E4300" & _
"046641E4600004A641E4A000046641E46000043643C4300004A643C4A000046643C460" & _
"004A641E4A000045643C45000046641E4600004A641E4A000046641E46000043641E43" & _
"00046641E4600004A641E4A000046641E46000041643C4100004A643C4A000046643C4" & _
"00004A641E4A000045643C45000046641E4600004A641E4A000046641E46000043641E" & _
"3000046641E4600004A641E4A000046641E46000041643C4100004A643C4A000046643" & _
"4600004A641E4A000045643C45000046641E4600004A641E4A000046641E4600004364" & _
"E43000046641E4600004A641E4A000046641E46000043643C4300004A643C4A0000466" & _
"3C4600004A641E4A000045643C45000046641E4600004A641E4A000046641E46000043" & _
"41E43000046641E4600004A641E4A000046641E46000043643C4300004A643C4A00004" & _
"643C4600004A641E4A000045643C45000046641E4600004A641E4A000046641E460000" & _
"3641E43000046641E4600004A641E4A000046641E46000041643C4100004A643C4A000" & _
"46643C4600004A641E4A000045643C45000046641E4600004A641E4A000046641E4600" & _
"043641E43000046641E4600004A641E4A000046641E46000041643C4100004A643C4A0" & _
"0046643C4600004A641E4A000045643C45000046641E4600004A641E4A000046641E46" & _
"00043641E43000046641E4600004A641E4A000046641E460000FF2F004D54726B00000" & _
"3600FF21010000BC000000200000CC3700BC0778000A0081A3109C1F7F011D7F781D00" & _
"71F00D8101F7F011D7F781D00771F0000FF2F004D54726B0000031300FF21010000BD0" & _
"0000200000CD2D00BD075F000A738280709D43641E43000045641E45000043641E4300" & _
"041641E4100003E641E3E00820E48641E4800004A641E4A00004B641E4B00004A641E4" & _
"000048641E4800830643641E43000045641E45000043641E43000041641E4100003E64" & _
"E3E00862A43641E43000045641E45000043641E43000041641E4100003E641E3E00820" & _
"48641E4800004A641E4A00004B641E4B00004A641E4A000048641E4800830643641E43" & _
"00045641E45000043641E43000041641E4100003E641E3E00862A43641E43000045641" & _
"45000043641E43000041641E4100003E641E3E00820E48641E4800004A641E4A00004B" & _
"41E4B00004A641E4A000048641E4800830643641E43000045641E45000043641E43000" & _
"41641E4100003E641E3E00843ABD077310077211077111077010076F11076E11076D10" & _
"76C11076B11076A100769110768110767100766110765079D43640ABD0764100763049" & _
"43000045640DBD0762119D450000BD0761009D436410BD07600E9D430000416403BD07" & _
"F11075E0A9D4100003E6406BD075D11075C079D3E000ABD075B10075A1107591107581" & _
"075711075611075510075411075311075210075111075011074F10074E11074D11074C" & _
"A9D486406BD074B11074A079D4800004A640ABD0749100748049D4A00004B640DBD074" & _
"119D4B0000BD0746009D4A6410BD07450E9D4A0000486403BD07441107430A9D480006" & _
"D074211074111074010073F11073E11073D10073C11073B11073A10073911073811073" & _
"10073611073511073410073311073211073110073011072F11072E10072D11072C1107" & _
"B009D436410BD072A0E9D430000456403BD07291107280A9D450000436406BD0727110" & _
"26079D43000041640ABD0725100724049D4100003E640DBD0723119D3E0000BD072210" & _
"72111072011071F10071E11071D11071C10071B11071A1107191007181107171107161" & _
"071511071411071310071211071111071010070F11070E11070D10070C11070B11070A" & _
"0070911070811070710070611070511070410070311070211070110070000FF2F004D5" & _
"726B0000017200FF21010000BE000000200000CE0800BE074B000A19AD009E377F0043" & _
"F3C3E7F0B43000237002F467F033E0039457F03460039437F10450068430078377F004" & _
"7F3C3E7F0C430030467F063700193E001D457F05460037437F09450033377F08430034" & _
"E7F3C437F3C4300003E0000370000357F00417F3C3C7F0A35000441002E457F0F3C002" & _
"437F09450033417F0D43006B410078357F00417F3C3C7F0A35000441002E457F0F3C00" & _
"D437F09450033417F0D43006B410078377F00437F3C3E7F0B43000237002F467F033E0" & _
"39457F03460039437F10450068430078377F00437F3C3E7F0C430030467F063700193E" & _
"01D457F05460037437F09450033377F084300343E7F3C437F3C4300003E00003700003" & _
"7F00417F3C3C7F0A35000441002E457F0F3C002D437F09450033417F0D43006B410078" & _
"57F00417F3C3C7F0A35000441002E457F0F3C002D437F09450033417F0D43006B41003" & _
"437F1E457F1E450000430000467F3E460000FF2F004D54726B000000E600FF21010000" & _
"F000000200000CF4F00BF077F000A4081FF00EF0040009F237F04EF003F04003E04003" & _
"03003C04003B04003A0400390300380400370400360400350300340400330400320400" & _
"103003004002F04002E04002D03002C04002B04002A040029030028040027040026040" & _
"2503002404002304002204002103002004001F04001E04001D03001C04001B04001A04" & _
"01903001804001704001604001503001404001304001204001103001004000F04000E0" & _
"000D03000C04000B04000A040009030008040007040006040005030004040003040002" & _
"30001049F230000FF2F00"
FileWrite(@ScriptDir&"\test.mid",Binary($var&$var2&$var3))

edited

Share this post


Link to post
Share on other sites



EIMI,

From that ever-useful, but seemingly unread by certain coders, Help file:

15. What are the current technical limits of AutoIt v3?

Maximum length of a single script line: 4,095

Try counting the line that gave the error......

Perhaps you need to break up your opcode a little more. >_<

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

What Melba23 said, but note that the variable can be much larger than 4095 characters, just not the script line. So if you concatenate the variable instead of the script line, it will work:

$var = "0x4D546864000000060001001100784D54726B000000F800FF03294D65616E20284169"
$var &= "E2774204E6F204869702D486F7020496E2054686120486F757365204D6978292000FF0"
$var &= "1841676520457870616E73696F6E205061636B204D7573696300FF021F436F70797269"

...<snip>

$var &= "01903001804001704001604001503001404001304001204001103001004000F04000E0"
$var &= "000D03000C04000B04000A040009030008040007040006040005030004040003040002"
$var &= "30001049F230000FF2F00"

>_<


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

thanks

Is something wrong here?

FileWrite(@ScriptDir&"\test.mid",Binary($var))

FileWrite makes mid file that is 2x bigger than original mid + media player cant play that mid


edited

Share this post


Link to post
Share on other sites

thanks

Is something wrong here?

FileWrite(@ScriptDir&"\test.mid",Binary($var))

FileWrite makes mid file that is 2x bigger than original mid + media player cant play that mid

It is not being written as a binary. Use FileOpen() with binary mode, and FileWrite() to the resulting handle, not the string path.

>_<


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

It is not being written as a binary. Use FileOpen() with binary mode, and FileWrite() to the resulting handle, not the string path.

>_<

No, that's not it.

E1M1's problem is more like this:

$var = "0x655"
FileWrite(@ScriptDir&"\test.mid",Binary($var))

And this is ok:

$var = "0x65"
FileWrite(@ScriptDir&"\test.mid",Binary($var))

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

It is not being written as a binary. Use FileOpen() with binary mode, and FileWrite() to the resulting handle, not the string path.

>_<

but how I can write that variable as binary?

I have midi file in that source and I want write it to hard disk.

Edited by E1M1

edited

Share this post


Link to post
Share on other sites

but how I can write that variable as binary?

Dog ate your help file?

$var = "0x0123456789ABCDEF" ; etc.
$sFile = @ScriptDir & "\test.mid"
$hFile = FileOpen($sFile, 16 + 2)
FileWrite($hFile,Binary($var))
FileClose($hFile)

>_<


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Dog ate your help file?

$var = "0x0123456789ABCDEF" ; etc.
$sFile = @ScriptDir & "\test.mid"
$hFile = FileOpen($sFile, 16 + 2)
FileWrite($hFile,Binary($var))
FileClose($hFile)

>_<

I tried it.

If I open that mid file with scite I still see 1 long humanredable line

0x4D546864000000...

my file is added as attatchment..


edited

Share this post


Link to post
Share on other sites

What Melba23 said, but note that the variable can be much larger than 4095 characters, just not the script line. So if you concatenate the variable instead of the script line, it will work:

$var = "0x4D546864000000060001001100784D54726B000000F800FF03294D65616E20284169"
$var &= "E2774204E6F204869702D486F7020496E2054686120486F757365204D6978292000FF0"
$var &= "1841676520457870616E73696F6E205061636B204D7573696300FF021F436F70797269"

...<snip>

$var &= "01903001804001704001604001503001404001304001204001103001004000F04000E0"
$var &= "000D03000C04000B04000A040009030008040007040006040005030004040003040002"
$var &= "30001049F230000FF2F00"

:(

wow. i didnt know that. Thanks.

learned something new today. >_<

Share this post


Link to post
Share on other sites

Nop, Autoit should write Binary by default if you wrap it around Binary()

yeah at least it did if I made notepad, but with script I attatched in my last post, It wont work


edited

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

This is not a VALID binary at all. Make sure you did not leave anything out.

Try changing the last line to $var &= "30001049F230000FF2F000"

Binary is only valid if the string is in HEX form and is in even count of char.

Sysex

Remixed by Steve

Boss sysex

Comfirmed >_< haha

Edited by athiwatc

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

This is not a VALID binary at all. Make sure you did not leave anything out.

Try changing the last line to $var &= "30001049F230000FF2F000"

Binary is only valid if the string is in HEX form and is in even count of char.

Sysex

Remixed by Steve

Boss sysex

Comfirmed >_< haha

U mean code in my attatchment?

edit my last line is

$var &= "30001049F230000FF2F00"

if u look in my attatchment

Edited by E1M1

edited

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

I tried it.

If I open that mid file with scite I still see 1 long humanredable line

0x4D546864000000...

my file is added as attatchment..

And what does one of your other .mid files look like? Are these supposed to be MIDI sound files? I don't get a SciTE-readable .mid file when I do this test:
; Create long text string
Global $sHexData = "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210" ; 64 hex char, 32 bytes
Global $sVar = "0x", $sFile, $hFile

For $n = 1 To 128
    $sVar &= $sHexData
Next

ConsoleWrite("$sVar =         " & $sVar & @LF & @LF)
ConsoleWrite("Binary($sVar) = " & Binary($sVar) & @LF)

Global $sFile = @ScriptDir & "\BinTest.mid"
Global $hFile = FileOpen($sFile, 16+2)
FileWrite($hFile, Binary($sVar))
FileClose($hFile)

If I open the resulting BinTest.mid file in SciTE the result is a geeked-up trashy looking line. Just what you would expect from an unformatted binary file.

>_<

P.S. I agree with athiwatc, you have an odd number of hex characters in the posted dim.au3 example file. Adding (or removing) one zero at the end may be all it takes to fix it. While you may get default file typing based on the type of the file data variable, I much prefer explicit declaration of the intended modes and would stick with FileOpen/FileWrite/FileClose for my own use.

:(

Edit: Tweaked error where "0x" was repeated inside the long hex string.

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

U mean code in my attatchment?

edit my last line is

$var &= "30001049F230000FF2F00"

if u look in my attatchment

So change it to $var &= "30001049F230000FF2F000" See the 0 different?

And yes in your attatchment, Autoit does not throw an error and it will just return the HEX without doing anything. So you need to make it even.

Edited by athiwatc

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

So change it to $var &= "30001049F230000FF2F000" See the 0 different?

And yes in your attatchment, Autoit does not throw an error and it will just return the HEX without doing anything. So you need to make it even.

if I do this WMP get's error

Here is code to split string

ClipPut(Binary(FileRead("aoe1.mid")))
;FileWrite(@ScriptDir&"\lol1.mid",ClipGet())
;$data = "sdfsdfddsed" & _
;"lol"
;ClipPut("qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890")

$string = ClipGet()
$other = ""
dim $new[1]
ReDim $new[Int(StringLen($string)/70) + 1]
For $i = 0 to Int(StringLen($string)/70)
$new[$i] = '$var &= "'&StringLeft(StringTrimLeft($string,($i*70)+$i),70) &'"'& @CRLF
$other = $other & $new[$i]
Next

ClipPut(StringTrimRight($other,6))

and here's another source returns same hex

ClipPut(Binary(FileRead("aoe1.mid")))
$string = ClipGet()
$sNewString = StringRegExpReplace($String, "(?s)(.{70})", "$1" & @CRLF)
ClipPut($sNewString)

and her's the midi

Edited by E1M1

edited

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

if I do this WMP get's error

Here is code to split string

ClipPut(Binary(FileRead("aoe1.mid")))
;FileWrite(@ScriptDir&"\lol1.mid",ClipGet())
;$data = "sdfsdfddsed" & _
;"lol"
;ClipPut("qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890")

$string = ClipGet()
$other = ""
dim $new[1]
ReDim $new[Int(StringLen($string)/70) + 1]
For $i = 0 to Int(StringLen($string)/70)
$new[$i] = '$var &= "'&StringLeft(StringTrimLeft($string,($i*70)+$i),70) &'"'& @CRLF
$other = $other & $new[$i]
Next

ClipPut(StringTrimRight($other,6))

and here's another source returns same hex

ClipPut(Binary(FileRead("aoe1.mid")))
$string = ClipGet()
$sNewString = StringRegExpReplace($String, "(?s)(.{70})", "$1" & @CRLF)
ClipPut($sNewString)

and her's the midi

If you are going to READ a binary file it is very important to use FileOpen() with binary mode because the binary data may happen to match any number of file headers incidentally, causing the data to be mis-typed.

$sFile = "aoe1.mid"
$hFile = FileOpen($sFile, 16)
$BinVar = FileRead($hFile)
FileClose($hFile)
$sString = String($BinVar)

Also, why are you involving the Clipboard at all in your FileRead()?

>_<

Edit: Added String() to demonstrate converting binary data to a hex string.

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

I got it work now my stringsplit was just too bad.

here's solution.

ClipPut(Binary(FileRead("aoe1.mid")))
$string = ClipGet()
$sNewString = StringRegExpReplace($String, "(?s)(.{70})", "$1" & @CRLF)

$array = StringSplit($sNewString ,@CRLF,1)
$string = ""
For $i = 1 To $array[0]
    $string &='$aoe1 &= "'&$array[$i]&'"'&@CRLF
Next    

ClipPut($string)

and

$aoe1 = "0x...."
$sFile = @ScriptDir & "\test.mid"
FileWrite($sFile,Binary($aoe1))

Thanks to trancexx for posting StringRegExpReplace()

Edited by E1M1

edited

Share this post


Link to post
Share on other sites

I got it work now my stringsplit was just too bad.

here's solution.

ClipPut(Binary(FileRead("aoe1.mid")))
$string = ClipGet()
$sNewString = StringRegExpReplace($String, "(?s)(.{70})", "$1" & @CRLF)

$array = StringSplit($sNewString ,@CRLF,1)
$string = ""
For $i = 1 To $array[0]
    $string &='$aoe1 &= "'&$array[$i]&'"'&@CRLF
Next    

ClipPut($string)

and

$aoe1 = "0x...."
$sFile = @ScriptDir & "\test.mid"
FileWrite($sFile,Binary($aoe1))

Thanks to trancexx for posting StringRegExpReplace()

In some alternative universe few months from now you will open that script and say: "lol, and no one said anything".

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0