letsCodeMyLife Posted April 10, 2018 Posted April 10, 2018 (edited) I've a Server and a Client. The Client send's the result of _ScreenCapture_Capture("") . But it doesnt works when i try to Show it in a gui at the Server. Can you please paste a Little bit code how i can send a HBITMAP Handle via TCPSend() and how i can recv it correctly? Thanks for your help^^ PS: Sorry for bad english, i'm from germany^^ Edited April 10, 2018 by letsCodeMyLife
Xandy Posted April 10, 2018 Posted April 10, 2018 (edited) I think you need to covert the HBITMAP to binary string. Send and rebuild that. I'm pretty sure I've seen some examples probably by UEZ. There might be other ways too of course. Edited April 10, 2018 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Xandy Posted April 10, 2018 Posted April 10, 2018 My Lord, have a look at this post here: https://www.autoitscript.com/forum/topic/108145-screenshot-over-tcp/?do=findComment&comment=969161 Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
letsCodeMyLife Posted April 10, 2018 Author Posted April 10, 2018 Yes, I have recently converted it into a binary string. But how I can rebuild it?
Xandy Posted April 10, 2018 Posted April 10, 2018 That is probably in the link above. Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Xandy Posted April 10, 2018 Posted April 10, 2018 (edited) Also I think the TCPSend example in the help file shows how to transfer the data of any file and reconstruct again as same file on other end. You could use that then GUICTRLSetImage into the GUI. I'll look for the example I'm talking about. Edited April 10, 2018 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Xandy Posted April 10, 2018 Posted April 10, 2018 (edited) Example 2 shows how to send and create files with TCPSend and TCPRecieve: https://www.autoitscript.com/autoit3/docs/functions/TCPSend.htm You probably only need one of these methods atm. Either the memory with UEZ's example or the file transfer method. Edited April 10, 2018 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
letsCodeMyLife Posted April 10, 2018 Author Posted April 10, 2018 ok thats an nice example but the test window is empty.
Xandy Posted April 10, 2018 Posted April 10, 2018 Which example? I don't know what you mean yet. Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Xandy Posted April 11, 2018 Posted April 11, 2018 (edited) Look into my eyesYou will seeWhat you mean to meSearch your heartSearch your soulAnd when you find me there, you'll search no more Spoiler Don't tell me it's not worth tryin' forYou can't tell me it's not worth dyin' forYou know it's trueEverything I doI do it for you Spoiler Look into your heartYou will findThere's nothin' there to hideTake me as I amTake my lifeI would give it all, I would sacrifice Don't tell me it's not worth fightin' forI can't help it, there's nothin' I want more You know it's trueEverything I doI do it for you Spoiler There's no loveLike your loveAnd no otherCould give more loveThere's nowhereUnless you're thereAll the timeAll the way, yeah Look into your heart, baby Oh you can't tell me it's not worth tryin' forI can't… Edited April 11, 2018 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Moderators Melba23 Posted April 15, 2018 Moderators Posted April 15, 2018 (edited) DynamicRookie, Please read and digest this announcement before you post again. M23 Edit: And I see you have done it elsewhere too - stop it now! Edited April 15, 2018 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
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