Am having a hard time with scripts, even pre made ones aren’t working.
Am having a hard time with scripts, even pre made ones aren’t working.
I tried using the ‘always there bar’ script ( http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_always_there_bar) and I keep getting the error ‘can’t get positionY() of null’ what am I doing wrong?
]]>« Change the home page of a desktop (not the home desktop) (Previous Post)
(Next Post) Now on Play-Store ;-) »
< ![CDATA[
Follow the setup instructions. You probably skipped “IMPORTANT: you need to write the ID of the item you want to move”
]]>
< ![CDATA[
I did that but it’s still getting the same error
]]>
< ![CDATA[
what line gives you the error?
Are you sure u’r using the correct ID?
]]>
< ![CDATA[
its at line 11 “var barpos = bar.getPositionY()” so the id i found by going to items>Hierarchy>#020002: widget. so the id am using is 020002
]]>
< ![CDATA[
you should be using 0x020002
]]>
< ![CDATA[
now it works! thanks, but why 0x what does that mean?
]]>
< ![CDATA[
0x20002 = 131074
one is hexa the other base 10
]]>
< ![CDATA[
TrianguloY maybe you should update the script and use a label instead of the ID
]]>
< ![CDATA[
Lukas Morawietz I thought about it…yes, I’ll change that.
EDIT: Done
]]>
< ![CDATA[
see this is why i hate scripts….. i dont know any of that shit. why do you think i just copy/paste? that shit should already be done so i dont have to
]]>
< ![CDATA[
Curtis Sylvester Jr. It was already suggested to make templates for scripts, but it’s not yet possible… So you have to copy the script.
But really copying is not a big deal.
]]>
< ![CDATA[
copying the script isnt the issue, its editing scripts that im ranting about. if i knew where the hell to edit i wouldnt need to copy it in the first place. then i end up wondering why scripts dont work “well no shit dude you need to edit these parameters” where the hell is that? all i see is a bunch of pycho-einstein garbage.
]]>
< ![CDATA[
That’s why you have the “configuration” part at the beginning of the script. It tells you: edit here!
]]>
< ![CDATA[
Not sure if you are talking about my scripts.
I try to make them to not need to edit anything.
However before the getByLabel was added you needed to edit the id, now it is not necessarily, and the only things you need to edit is (if I say that) numbers, for example in my wheel, but the number to change is at the beginning…as easy as take paint and edit a picture.
]]>
< ![CDATA[
TrianguloY i was referring to the countless scripts that didnt work. i could never figure out why….. until reading posts like this very one. now im finding out i need a degree in klingon just to get them to work. theres a few that do work but then theres quite a few that dont.
]]>
< ![CDATA[
Curtis Sylvester Jr. As I say at every page in the wiki: please tell me if one of my scripts isn’t working for you!
]]>
< ![CDATA[
lmao i could Lukas Morawietz but what good would that do if i still need to learn klingon just to read the part i need to edit?
]]>
< ![CDATA[
Curtis Sylvester Jr. You don’t need. We already know. Just say the error you are getting ( “blabla in line 10 blabla”) and we will do whatever we could to fix it (write for you the modified script for example)
]]>
< ![CDATA[
TrianguloY thats another thing… what line number? half the time when i paste the script it looks like a comment on google plus…. only in whatever language the inventor made up. i end up feeling like a retard by the time its over with and it sucks
]]>
< ![CDATA[
‘ach tlhIngan Dun!
neH ghot tu’lu’. mej nID ‘oH chu’.
]]>
< ![CDATA[
OK I have a question, what if I want to use this script inside a panel? I’ve tried a bunch of stuff but none of it is working
]]>
< ![CDATA[
Nathan Davidson-Pilon Change the first line to
var desk=LL.getEvent().getContainer();
If that is not working, change it to
var desk=LL.getCurrentDesktop().getItemByLabel(yourPanelsName).getContainer();
Where yourPanelsName is the label of your Panel in which you want to use the script. (maybe you have to set a label first)
]]>
< ![CDATA[
I made this script in alpha versions, and never update it. I think it’s time to do.
…
Yes, theoretically if you change that first line into the event.container it should work in every container, remember to set this script in their position change event.
]]>
< ![CDATA[
I used the second one it worked perfectly, thanks alot
]]>
< ![CDATA[
Ok, I changed it both, in the wiki and here in Google+
There are some few improvements (now I use the tag of the item, instead of ‘self’)
Nathan Davidson-Pilon, if you want to ‘update’ it you need to know that now, the velocity the item is showed/hidded is configurable. The one you have has the velocity of showing set to 3, the other is 1.
If you are happy with the one you have, just leave it.
However, if you are planning to set it in two different places (with different items/containers) I recommend to update. You will be able to change the velocity too, as I said.
]]>
< ![CDATA[
Curtis Sylvester Jr. if you can’t handle scripts then dont use them. you end up feeling (and sounding) like a retard because this feature is intended for advanced users, hell there’s a setting for expert mode in LL, go ahead and uncheck that till you gain some respect for the community here.
]]>