balala wrote: ↑April 16th, 2023, 6:08 pm
I meant that usually users takes a skin and start altering it, in order to get it as they want it to be. I said about the original code that I don't like it. But that has been written by an experienced user. You altered it in your way and the result is alright, so the original Lock Screen skin has been the one you started with (I assume).
No, Actually I had written ten of my own, they were far from finished, but when I started adding vbs files (which I have put on hold for the moment) I realised that this would not be a good idea if kids got their fingers on them, I have grandchildren who love to sit on my lap and bash the computer keyboard. So I realised I wanted to put a child-lock of some sort on my project, started looking for ideas and found the broken rainlock. Even then it was a nightmare to try and understand how it worked, never mind fix it, If I had found that one first it would pf probably put me off TBH. (Even now it gives me a headache, I find it hard to follow, the logic jumps all over the place, and its using IF IFMatch IFNot etc, none of which are in any of my skins Execute Commands etc.(Not the type of Execute you can remove either.) (Even more now I added some stuff to it).
I attached my latest version in case you want to look at it, you already have the image.
There is something you could help me with if you are feeling generous ??? (Said he hopefully)
I'M using the code below to launch the Childlock.ini, from all my other skins, which are all in the same directory ("Stargates\Remote-idle") "EXCEPT Childlock.ini which is in "Stargates\Childlock" Childlock.ini
Code: Select all
[LockButton]
Meter=Button
ButtonImage=#@#Buttons\Lock.png
X=291
Y=153
W=46
H=46
MouseOverAction=[!SetOption MeterString-Footer-2 FontColor "209,206,113,255"][!SetOption MeterString-Footer-2 Text "LOCK COMPUTER"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption MeterString-Footer-2 FontColor "0,0,0,255"][!SetOption MeterString-Footer-2 Text "#Footer-Message-2#"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=!ToggleConfig "Stargates\Childlock" "Childlock.ini"
Only the last line matters IMHO, but I Included the whole thing just in case.
I Tried using
LeftMouseUpAction=!ActivateConfig "Stargates\Childlock" "Childlock.ini" BUT it wont work, (Different directory, I assume). So have to use !ToggleConfig, Which works perfectly, no errors or warnings, BUT (AND HERE IS THE PROBLEM) I always have to click the button twice.
I would like to only click the button once.
IF that's not possible I have thought of a "workaround" and that's a message to appear after the first click saying "Click again to lock your computer"
I have tried pretty hard but so far cannot do either of these things. So ATM I'm stuck with two clicks (NOT A DOUBLE CLICK- has have about half a second between them). The work around would make it look intentional, in case you accidentally clicked the lock button.
Any insight "Oh Wise One"
If you have a spare 5 mins check my revised code, I think you will approve.
Keith
You do not have the required permissions to view the files attached to this post.