incepator Posted February 13, 2013 Posted February 13, 2013 (edited) I use YMSGLib.au3 library. I have a question if anyone can help me, how can I send a file?I tried this way: but it does not work .... I send only the name, not the file.Local $var = FileOpenDialog("Select file", @WindowsDir & "\", "Images (*.*)", 1) TCPSend($socket,_YMSG_Client_PM($sFrom,$sDest,$var))UDF Thank you! Edited February 13, 2013 by incepator
BrewManNH Posted February 13, 2013 Posted February 13, 2013 Where did you get this UDF? Normally it's polite to link to the original thread so we don't have to go searching for something, when you've already found it. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
incepator Posted February 13, 2013 Author Posted February 13, 2013 Yes, it is. I put the link which links to that library.
BrewManNH Posted February 13, 2013 Posted February 13, 2013 I don't see anywhere in that UDF that allows the sending of attachments. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
incepator Posted February 14, 2013 Author Posted February 14, 2013 Even there is no way to send a file by this way? I find this odd, considering that this is UNF complex, with many functions... has anyone tried to do this?
incepator Posted February 24, 2013 Author Posted February 24, 2013 there is even implemented this function in this library?
kylomas Posted February 25, 2013 Posted February 25, 2013 Try this Local $var = FileOpenDialog("Select file", @WindowsDir & "\", "Images (*.*)", 1) TCPSend($socket,_YMSG_Client_PM($sFrom,$sDest,fileread($var))) kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
BrewManNH Posted February 25, 2013 Posted February 25, 2013 What's not working, it's not sending the file, or it's not sending it correctly? Not working doesn't tell anyone anything. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
Nessie Posted February 25, 2013 Posted February 25, 2013 I think that what do you want to do, it's impossibile to do with YMSGLib UDF. If you know C you can understand how the things works by downloading this library http://sourceforge.net/projects/libyahoo2/ , looking to libyahoo2.c file for yahoo_send_file function.Hi! My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s). My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all! My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file
incepator Posted February 26, 2013 Author Posted February 26, 2013 (edited) @BrewManNHnot send anything....@NessieI do not know how to work with those libraries.I do not know the programming language C.I thought there this function in library YMSGLib.au3Thank you! Edited February 26, 2013 by incepator
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