Billkoy3 Posted December 4, 2015 Share Posted December 4, 2015 Hi.I downloaded today AutoIt, so Im complete newbie (please be forgiving ) . Im trying to make my own program and I stucked in: Form1 is main window and it got Button called "Lista". I want to make function that while I Press button "Lista" it will open form2 in another window. Form2 is data source file: It will contain inputs from 1 - input180~. My script (form1) shall read info from form2. I searched on forum but I only found options like while pressed button it will exit form1 and CREATE form2. Thats the point. I want to make app, with will read info's from another forms and put this editable infos into game. My english is not good: I will put some pictures to make more understable what I mean. Mistake: It shall open Form 2/form 3/ form 4 (i write twice 3)/form 5 etc First of all. Is it possible to make it somehow in easier way?Im planning to build it like: when Press Start of Part1.Script will write in game data from column 1:write text from column1, check if value is > than text in column2. If yes continue, if no gotolane 2 and start everything from beggining but with values from lane 2.Lets say value is > - so it will continueIt will write value with contain column 3 first line.Then in x,y,z mouse spot press left mouse button (value in column 4) times. Its an example to show you guys what I mean. I already know how to do it. BUT:How make main program to be connected with Form2 and read value's from there?? I tried to add #include <Form2.au3>but then program open form2 instead of main form.Tried aswell func like "shellexecute/ run" but none of them worked as I wanted to. If its not possible I will just have to make everything in 1 script (this its easy to solve with Slideshow button and form with contains data)But... will it work properly while script will got 4000 + line's ? Or it had to be done in parts ? -.^Looking for answers! Link to comment Share on other sites More sharing options...
Zedna Posted December 4, 2015 Share Posted December 4, 2015 Definitelly look at this:https://www.autoitscript.com/wiki/Managing_Multiple_GUIs Billkoy3 1 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Billkoy3 Posted December 4, 2015 Author Share Posted December 4, 2015 Well, thanks. With this option I have to write everything in 1 script. Will it work well while it will got 4000+ line's ? I though that bigger files may work not good/slow due of big amount of data in it. I never used any programming language's. AutoIt is first, so that kind of question may be stupid for ya guys, but for me its important to know it! And to be sure if I understand it good. While I write everything in 1 script, I will be able to use data from other forms?for example:since guictrlread() is taking value's from form under with I write it (if I think good)can i set up parametrs like: $form2price = guictrlread($Input1)then in Form 1 use this parametr?Or $form2price will work just in 2nd form? Link to comment Share on other sites More sharing options...
Zedna Posted December 4, 2015 Share Posted December 4, 2015 4000 lines of code/data is not problem.Whole application with more forms is able to read/write data to/from any desired form. Billkoy3 1 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Billkoy3 Posted December 4, 2015 Author Share Posted December 4, 2015 Lova ya dude! Thanks for fast and helpful answers! Link to comment Share on other sites More sharing options...
Billkoy3 Posted December 7, 2015 Author Share Posted December 7, 2015 Whats wrong here?func bl() MouseClick($MOUSE_CLICK_LEFT, 701, 630, 2) controlsend("Tibia","","","{backspace}") controlsend("Tibia","","",$bl1) $kk = guictrlread($blmin1) $kkk = guictrlread($blmax1) $mem = _MemoryRead($pointer,$memaaa) ## (i put input in my window where I write manually actually address with I check everytime since no clue how to setup pointers - its np, check one per 1 open - twice a day)## $cena = $mem + 1 if $cena > $kk and $cena < $kkk Then MouseClick($MOUSE_CLICK_LEFT, 930, 647, 2) controlsend("Tibia","","",guictrlread($cena)) MouseClick($MOUSE_CLICK_LEFT, 1034, 619, ($blilosc1-1)) MouseClick($MOUSE_CLICK_LEFT, 1071, 620, 1) Else Sleep(2000) EndIf EndFunc Link to comment Share on other sites More sharing options...
Billkoy3 Posted December 8, 2015 Author Share Posted December 8, 2015 Anyone noticed any error? Program just crash while I open it. It compile without any errors. Program got atm 2700~ lane's. What should I change to make it work without problems? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 8, 2015 Moderators Share Posted December 8, 2015 (edited) Billkoy3,Script will write in game data from column 1:controlsend("Tibia","","","{backspace}") controlsend("Tibia","","",$bl1) $kk = guictrlread($blmin1) $kkk = guictrlread($blmax1) $mem = _MemoryRead($pointer,$memaaa)I get lots of game related hits when I search for "Tibia" - are you sure this question does not fall foul of the Forum rules?M23 Edited December 8, 2015 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 8, 2015 Moderators Share Posted December 8, 2015 Billkoy3,After our PM exchange:Yes, it is a gaming question and so is not allowed.No, I will not help you privately.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...
Moderators Melba23 Posted December 11, 2015 Moderators Share Posted December 11, 2015 Billkoy3,I now learn that you have been PMing MVPs asking for help with this script. As the script is quite clearly against the forum rules (no, I did not "misunderstand" what you are doing) they quite rightly have refused.Serious warning - if you step out of line again you will find yourself on the naughty step for some time. Please read the Forum rules to which I linked you above carefully and make sure you follow them from now on.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