gil900

_SharedVar (IPC) - Share variables between Autoit and C++/Autoit directly on memory

17 posts in this topic




11 minutes ago, argumentum said:
HotKeySet('{ESC}','Exit1')

won't work for both :( , other than that, nice :) 
What would the max string length be to use ?

I know it does not work.
But I spend time on the hard part and I have no time for small things..

About your question -
I did not mention it: If the shared variable may at some point store string value that is bigger then the string that was assigned during the first declaration then you must  to declare the variable bit differently:

In _SharedVar_DeclareVar, in parameter $DataType you need to write the DataType manually.
Try 'char[255]'

Then when you write another string, it will be fine as long as the string smaller then 255 characters.

I have no power today to check it out more. It should work

1 person likes this

Share this post


Link to post
Share on other sites

Hi I just wanted to chime in that I am very interested in this idea and / or any spin off works.  Thank you very much for your pursuit of this goal.

Good luck :)

1 person likes this

I am not a lawyer.  (-_-) Xandy About  (^o^) Discord - Xandy Programmer

Share this post


Link to post
Share on other sites
13 minutes ago, Xandy said:

Hi I just wanted to chime in that I am very interested in this idea and / or any spin off works.  Thank you very much for your pursuit of this goal.

Good luck :)

Thanks.
I found a great breakthrough


I will continue to run on it tests on it in the following days when I have free time.
If I see that it works stable enough, I'm probably going to do  separate version of this function which will work much more effectively for Autoit and for the user.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Updated again.
I do not like to say this, but I have to:
likes are not enough.

I need comments.

I will now start working on version of this functions for C++ ( _SharedVar.cpp )

Edited by gil900

Share this post


Link to post
Share on other sites

Isn't this just a proof of concept and not something that is "production" viable?


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

5 hours ago, guinness said:

Isn't this just a proof of concept and not something that is "production" viable?

I did not understand the question.
Can you explain more the question?


What do you mean by saying  ' "production" viable' ?
Edit: I think that I understand but I hope I understand it wrong

Edited by gil900

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

To me production viable means, can it be relied on?  I've been very busy myself working on a multiclient game server and I might have a need of this to speed up sub processes performed by compiled scripts or even C++.  I've been busy but is there something I could help you with?  Maybe you could bring me up to speed with a teamviewer session or workflow videos.  But then that is time you're not doing this and like I said I am busy but you can let me know if that is something you'll want to do.

Edited by Xandy

I am not a lawyer.  (-_-) Xandy About  (^o^) Discord - Xandy Programmer

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Thanks for your suggestion. :) At the moment I do not need help.

Edited by gil900

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

Thanks for sharing! :thumbsup:

On 20/2/2016 at 5:47 AM, gil900 said:

I do not like to say this, but I have to:
likes are not enough.
I need comments.

Why? What is there to say really? :blink:

It either works or it doesn't, and people either like it or they don't.

To me, it is a thought provoking niche project.

I can see where it can come in handy due to speed and permissions issues over sharing a Registry entry or something like an INI file, but I'm not sure how many exactly have an immediate need for this, or are just like me, storing it away for that day? To make further comment now, you really need to be using it here and now.

And further to all that, I guess it is only useful where you are the author of all the programs that will be sharing the variable(s) ... or have access to the source codes of all ... so that limits things even further.

Don't get me wrong though, I'm glad for your hard work and that you shared this. :D

P.S. In all reality, you are lucky to get a Like, as many offerings here don't even get that or a 'Thank You' despite large numbers of downloads, etc ... and comments are even rarer unless a bug is found or understanding is difficult. :'(

Edited by TheSaint
1 person likes this

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

Thank you,
What I said about the likes..., on second thought I should not say this ..
My approach is changing. I do what I do for fun. I probably would continue to work on this project anyway..Probably in a week from now, I'll  finish to create c++  Version so c++ exe will able to share variables with autoit (using this implemented communication standard)it means that in theory you can for example write all the gui stuff in Autoit and the other in c and it will act like one program. This is my goal and it is fun to build the base for this.

Edited by gil900
2 people like this

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

So I had some free time today and I made small progress:
 

Spoiler

56d62cacac8b0_ccodeexample1.thumb.png.cd56d62cbca90f3_ccodeexample2.thumb.png.ca

 

Edited by gil900
1 person likes this

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

Updated: C++ Version released. Autoit version improved

Edited by gil900
1 person likes this

Share this post


Link to post
Share on other sites

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