faustf Posted November 3, 2012 Share Posted November 3, 2012 hi guy , i have a foto and want insert some tag inside , (like do this program fototagger) . in practic i must insert some javascript code inside the foto in esadecimal example : i have a foto,jpg , i open whit fototagger , insert a tag over , and save whit new name foto2.jpg , after this i open whit ultraedit , the foto2.jpg and look where past a code for tag , i understund how do (is simple ) but i wanna do the same directly whit autoit , is possible ?? ? thankzz Link to comment Share on other sites More sharing options...
Developers Jos Posted November 3, 2012 Developers Share Posted November 3, 2012 (edited) Javascript in a picture? Maybe you can try explaining it a little better and why? Edited November 3, 2012 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
faustf Posted November 3, 2012 Author Share Posted November 3, 2012 i try so download fototagger at this address http://www.fototagger.com/ is free and try fototagger open a foto.jpg insert tag and save whit foto2.jpg after saved if you do double clik over foto2.jpg , you can look a normal foto whit out tag but if you open foto2.jpg whit fototagger you can see a tag saved before. if you open foto2.jpg whit exadecimal editor like ultraedit , you can look a code in javascript of fototagger program i wanna insert the javascript whit out fototagger but whit autoit , is possible? ?? Link to comment Share on other sites More sharing options...
faustf Posted November 3, 2012 Author Share Posted November 3, 2012 sorry for mistake but all whit is with Link to comment Share on other sites More sharing options...
caleb41610 Posted November 4, 2012 Share Posted November 4, 2012 Post what you have so far Multi-Connection TCP Server Link to comment Share on other sites More sharing options...
faustf Posted November 4, 2012 Author Share Posted November 4, 2012 for the moment not have , nothing in au3 , th e procedure i had describe up Link to comment Share on other sites More sharing options...
caleb41610 Posted November 4, 2012 Share Posted November 4, 2012 for the moment not have , nothing in au3 , th e procedure i had describe upConsidering no one knows what you are talking about, you should try to accomplish this yourself and post the code you have when you hit errors. Multi-Connection TCP Server Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 As the format specification is not available on their website it will be hard work to determine how to store the tag information. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
faustf Posted November 4, 2012 Author Share Posted November 4, 2012 do this procedure for understund software required 1. http://www.fototagger.com/download.php?product=latest 2. ulrtraedit software 3. use one foto in your pc , (i call foto.jpg) instruction: open foto.jpg with fototagger insert a tag . save your foto whit foto2.jpg name open foto.jpg and foto2.jpg whit ultraedit look a difference the difference are this code : <rdf:RDF xmlns:ftg="http://www.cogitum.com/fototagger/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="http://www.cogitum.com/fototagger/"> <ftg:layer rdf:parseType="Collection"> <ftg:label ftg:UID="1"> <ftg:name>prova<br></ftg:name> <ftg:pos_x>325</ftg:pos_x> <ftg:pos_y>1051</ftg:pos_y> <ftg:width>99</ftg:width> <ftg:height>34</ftg:height> <ftg:region ftg:region_type="rect"> <ftg:region_left>752</ftg:region_left> <ftg:region_top>1081</ftg:region_top> <ftg:region_width>118</ftg:region_width> <ftg:region_height>119</ftg:region_height> </ftg:region> </ftg:label> </ftg:layer> <ftg:caption_x>10</ftg:caption_x> <ftg:caption_y>10</ftg:caption_y> <ftg:version>7</ftg:version> <ftg:matte ftg:matte_left="0" ftg:matte_right="1638" ftg:matte_top="0" ftg:matte_bottom="1229" /> <ftg:image_size_x>1638</ftg:image_size_x> <ftg:image_size_y>1229</ftg:image_size_y> <ftg:cap_text/> <ftg:image_size_x>1638</ftg:image_size_x> <ftg:image_size_y>1229</ftg:image_size_y> </rdf:Description> </rdf:RDF> in practic fototagger , injects the javascript code , in a part of foto is possible injects whit autoscript the code inside the foto ?? thakz Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 Unfortunately I don't have the time to download ultraedit, play with your pictures and present the solution. You need to determine where to insert this xml text. Is it at the end of the picture? If you know where to insert simply use FileOpen, FileRead, FileWrite, FileClose to create a copy of the picture. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
faustf Posted November 4, 2012 Author Share Posted November 4, 2012 no insert not at the end but use esadecimal marker is FFDB put the code after FF and last is FFDB , whit file FileOpen, FileRead .... is possible find esadecimal marker ?? Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 Sure. Read the whole picture into a variable using FileRead. Then use StringInStr to find the position of the marker. Split the variable in two parts at this position (Stringleft, StringMid) and combine all 3 parts to a new variable and write it to a file. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
faustf Posted November 4, 2012 Author Share Posted November 4, 2012 i tryed to do this only for understund Local $file = FileOpen("_DSC0195.jpg", 0) ; Check if file opened for reading OK ; Read in 1 character at a time until the EOF is reached Local $chars = FileRead($file) ; If @error = -1 Then ExitLoop MsgBox(0, "Char read:", $chars) FileClose($file) but messagebox giveme only first 4 carachter Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 Use MsgBox(0, "Char read:", BinaryToString($chars))to get the hex representation of the string. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
faustf Posted November 4, 2012 Author Share Posted November 4, 2012 but give me the same 4 carachter Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 Change the first line toLocal $file = FileOpen("_DSC0195.jpg", 16)so you read the file as binary. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
faustf Posted November 4, 2012 Author Share Posted November 4, 2012 the same Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 I used this script and got a long, long display of characters. Local $file = FileOpen("P1000545.JPG", 16) Local $chars = FileRead($file) MsgBox(0, "Char read:", $chars) FileClose($file) My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
faustf Posted November 4, 2012 Author Share Posted November 4, 2012 but whit this MsgBox(0, "Char read:", $chars) appear 0x0......... much more Link to comment Share on other sites More sharing options...
water Posted November 4, 2012 Share Posted November 4, 2012 That's the hexadecimal representation of your file. It's the only way to read the file - else it will stop at the first 0x00 character. That's why you see just 4 characters. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now