vkrisz81 Posted April 14, 2015 Share Posted April 14, 2015 hello. is there is 2 program, prog 1 and prog 2, and prog1 makes a form where you can find elements like label, text, how can i point from prog2 to prog1 form label called "label1"? as i saw autoit window info cant detect it's name, only it's id. thats more than nothing but .. how can i change for example from prog2 the prog1 made form label1 background? ty Link to comment Share on other sites More sharing options...
MikahS Posted April 14, 2015 Share Posted April 14, 2015 Can you give us an example and/or what you are trying to automate? Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 14, 2015 Author Share Posted April 14, 2015 i can copy here my form but there is yet only 1 label. and i want to reach from my other autoit program this label and for example change its background.. to communicate this 2 program by this form simple form with a label. but i dont know what or how should i step first to reach from my other program this label.. and its parameters Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 14, 2015 Author Share Posted April 14, 2015 my problem is, i have to guicreate befor i use any gui command but gui already exists.. how should i link existing guii handle to my program? Link to comment Share on other sites More sharing options...
MikahS Posted April 14, 2015 Share Posted April 14, 2015 (edited) WinGetHandle I can interact with a program I made in AutoIt, with all the labels and buttons. Can you maybe show us the program you are trying to interact with, and by that I mean maybe a small reproducer script that would have the same method of creation you used. Edited April 14, 2015 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 14, 2015 Author Share Posted April 14, 2015 here is the form, as i said very simple: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Form2", 405, 294, 302, 218) $Label1 = GUICtrlCreateLabel("Label1", 64, 64, 180, 121) GUICtrlSetFont(-1, 26, 800, 0, "Tahoma") GUICtrlSetColor(-1, 0x000000) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd this is form.au3 and i would like to reach this label1 from my form_handle.au3 program but.. i cant find out how can i ref to this while gui alive i would like to change parameter like background of label field or caption parameter Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 14, 2015 Author Share Posted April 14, 2015 so ok i found from outer program the form2 window, but dui statements need a pre declared guicreate handle.. or ? Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 14, 2015 Author Share Posted April 14, 2015 i tried it $window=WinGetHandle("Form2") if @error then ConsoleWrite("hiba"&@error) GUISetState(@SW_HIDE,$window) but form does not hide.. window pick up handle data but gui statement does not work.. Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 14, 2015 Author Share Posted April 14, 2015 so there is no any who can solve this very difficult problem ok ty guys.. Link to comment Share on other sites More sharing options...
MikahS Posted April 14, 2015 Share Posted April 14, 2015 (edited) There is a 1 hour time limit on bumping your own threads. We all don't live on the forum. We have lives, thank you very much. Instead of helping I responded to your message (you could say I was helping), and with that I'm off to work. EDIT: By the way, There could be many other solutions to your problem, don't give up. Edited April 14, 2015 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 14, 2015 Moderators Share Posted April 14, 2015 Forum courtesy actually dictates 24 hours before bumping, not 1 hour. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 14, 2015 Author Share Posted April 14, 2015 ty for share it with me! Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 14, 2015 Author Share Posted April 14, 2015 i dont bump or what are you talking about, i just thought this should be a very simple problem like any trivial statement and i am only stupid that i could not find, not a compley question.. so i thought if there is no immediate trivial anbswer there will not be later neither (perfect english ) so live your live, i have too, this is why i cant wait for hours or days to answers, and this is why i ask only a few word answerr questions.. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 14, 2015 Moderators Share Posted April 14, 2015 Wonderful attitude, I can tell you will go far... MikahS and MuffettsMan 2 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 15, 2015 Author Share Posted April 15, 2015 ty boss, as i can see i had right, there is no answer and there will not be answer.. i really thought you pros (mvps, masters, programmers) will be a little bit more responsible for forum questions.. i think this was a really easy and short and stupid question for you pros, from me stupid kid, and there is no answer.. as you said, wonderful attitude.. ^^ anyway good luck for your next hard work personally: i just visited your created udfs and programs, very usefulls! grat but for me (and for others who cant get answer for their questions) what should do while they dont get the help for their very early questions and doubts.. i know you and other pros was born by holding books in their arms, i did not.. i sry it but i could not do it so i can only ask from pros, but usually no answer.. so really thank you! Link to comment Share on other sites More sharing options...
vkrisz81 Posted April 15, 2015 Author Share Posted April 15, 2015 admin should delete this topic because there were no answer.. and there will not be. so topic useless ty Link to comment Share on other sites More sharing options...
Zedna Posted April 15, 2015 Share Posted April 15, 2015 Look at ControlGetHandle() Also search this forum and/or web for "interprocess communication". Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 15, 2015 Moderators Share Posted April 15, 2015 vkrisz81,looking through this thread I see that the sole irritant within it has been yourself. You have made multiple bumps of your own thread (there is an "Edit" button on each post - look to the left of the "Quote buttons); decided that your question is so important that everyone must drop everything and respond to it, regardless of the fact that we are all volunteers and you have absolutely no right to any form of help at all; and finally thrown your toys out of the cot when you decided that no-one was going to answer, despite the fact that you have given almost no information about the 2 scripts between which you wish to share data. Basically you are the problem. Now I suggest you do as Zedna has suggested and search for the many threads dealing with interprocess communication - my personal favourite is trancexx's "MailSlot". What you want to do is not difficult - if you had approached the thread with a different mindset you would probably have it all solved by now. So over to you to post in a more reasonable manner and no doubt get some help - or continue in your present vein and continue to get ignored. Your choice - please choose wisely. M23 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 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