BALA Posted January 6, 2007 Posted January 6, 2007 Don't worry about the X and Y numbers, thats the coordinate for where the simulated click will take place. To set where the click will take place, click the position button, then click where you want the simulated click to take place. The coordinate is there merely for your benefit, so you know where you clicked. [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
lolord5 Posted January 6, 2007 Author Posted January 6, 2007 Ooooh thanks. Lol thats pretty handy. Alright thanks for everything man! Great job!!!!
BALA Posted January 6, 2007 Posted January 6, 2007 I don't know how it took three pages to debug all those simple bugs, but whatever If you ever need any modifications done, just ask me, I'll be happy to help [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Zedna Posted January 6, 2007 Posted January 6, 2007 @Bala In Func Position() you have GUICtrlCreateLabel() in While 1 Loop You should create that label at start and in While Loop only do GUICtrlSetData() Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search
BALA Posted January 6, 2007 Posted January 6, 2007 How will that help? *not trying to sound insulting, just curious* [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Zedna Posted January 6, 2007 Posted January 6, 2007 How will that help? *not trying to sound insulting, just curious*It's consuming memory resources. It's idea for optimization of your code for using less resources. Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search
BALA Posted January 6, 2007 Posted January 6, 2007 Ah, I see. Thanks [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Helge Posted January 6, 2007 Posted January 6, 2007 How that will help ? Well, first off, it's pretty retarded. You create a new label every time you want to change the text, when you can just update the already existing label with the new text. It's not only the proper way to do it, it's insanely logical when you know that it's possible. Secondly, if you make a habit out of doing it the way you did it, you will reach a point where your GUI will stop updating, due to the fact that it's exists a maximum number of controls in a GUI. When looking at the script below, you would expect it to create 5000 labels right, but it magically stops at the number 4096, which is mentioned in the limitations of AutoIt.GUICreate("", 300, 50) For $i = 1 To 5000 GUICtrlCreateLabel($i, 10, 10, 280, 30) Next GUISetState() Sleep(4000)
BALA Posted January 6, 2007 Posted January 6, 2007 A little late on the post eh? I was already aware of the labels being created over and over again, but thanks for the help anyways [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Helge Posted January 6, 2007 Posted January 6, 2007 (edited) Late ? Well, since you questioned Zedna's method and he only explained one reason for doing it his way, I though I could comment on the other sides of it, where the the maximum limit is one part of it. Plus I really felt like putting my drill to your brain, and try to make it obvious that it's extremely logical to not create another label, but update the text instead. Capiche ? Edited January 6, 2007 by Helge
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