Jump to content

Photo

[Question] How do you make SBSettings Toggles if your a Windows User?


  • Please log in to reply
22 replies to this topic

#1
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline
I want to know, a simple way (there has to be a way to make a basic as f toggle) to make an SB Settings Toggle in/on Windows.

What do I use to compile a .dylib? What if I just want to toggle to change Brightness (yes I know it exists) or toggle a setting (any setting, jailbreak or stock), how would I write like a plist or something for that?

It can't be sooo hard every single SBSettings Toggle is written in C++/Objective C, that's just ridiculousness...

Thanks for all the help!


P.S: Yes I know of BigBoss's tutorial, but again: I don't know C++/Obj C & disagree that, that is the ONLY way to make them.


******************************************************
Questions answered:

How do I write a .dylib?
Do I need a .dylib?

Well for 1 dylibs can not be made on Windows and.
2 I dont believe that sbsetting toggles use dylibs.


It's time!


#2
Mr. Android

Mr. Android

    Mod God

  • Staff
    Graphics
  • Posts1,404
Offline
Well for 1 dylibs can not be made on Windows and 2. I dont believe that sbsetting toggles use dylibs. Dont know much more then that. Sorry. :/

#3
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline

Well for 1 dylibs can not be made on Windows and 2. I dont believe that sbsetting toggles use dylibs. Dont know much more then that. Sorry. :/


that's f-in tarded on apples side :/ or linux/microsoft's xD you should be able to make any kind of file on any kind of OS.

also: well then, you answered one of my questions.


now I need to know: how to make a toggle that just changes a setting from on to off, off to on?

i figure if I find the name of the com.dev.app then it should work, but what else do i type down, and in what kind of a file do i put it in?


would a simple .plist work?

It's time!


#4
brc0703

brc0703

    The Hat Club

  • Platinum
    Submitter
  • Posts2,340
  • iDeviceiPhone 5S
  • Firmware8.1.2
Offline
find SBSettings Scripty package in cydia.. its lets you make a toggle that runs a bash script to do whatever you want.. it has a bug in the Info.plist key "ShouldTransitionOut = 1" that will crash sbsettings.. need to change it to "ShouldTransitionOut = 0" for it to work.. theres a thread around here somewhere with more info about it..
Posted Image





if this helped hit the + ------------------------->


#5
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline
Again: thanks man lol

I'll post back here if I have any problems

It's time!


#6
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline
Well I'm checking it out: and there's a .dylib...

I also don't know what to do to the .plist to make it toggle my setting

It's time!


#7
prp-e

prp-e

    Newbie

  • Member
  • Posts17
  • iDeviceiPod Touch 4
  • Firmware6.0.1
Offline
Please give me a link of bigboss tour ;)

#8
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline

Please give me a link of bigboss tour ;)

http://insanelyi.com/topic/5488-sbsettings-toggle-for-script/page__view__findpost__p__45576

It's time!


#9
brc0703

brc0703

    The Hat Club

  • Platinum
    Submitter
  • Posts2,340
  • iDeviceiPhone 5S
  • Firmware8.1.2
Offline
the toggle will execute a script that performs the task you want to do.. i dont remember the specifics but you need to write a bash shell script that goes in the commands directory of SBSettings and configure the plist to run it
Posted Image





if this helped hit the + ------------------------->


#10
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline
well I'm going to work on that & eventually write a step-by-step guide

It's time!


#11
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline
How do I make it toggle a setting?ike wifi on? But for a jailbreak tweak?

It's time!


#12
Boss

Boss

    ..

  • Administrator
    Coder
    Tester
  • Posts21,762
  • iDeviceiPhone 6+
  • Firmware8.4
Offline

How do I make it toggle a setting?ike wifi on? But for a jailbreak tweak?


The default SBSettings toggles are written in Obj-C/C http://thebigboss.or...ngs-toggle-spec

BRC's method requires you to know bash.

1433253944__boss_sig_2015.png


#13
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline
again: how to i set it off to toggle a preference lol

i dont "know" bash but i know how to execute it

It's time!


#14
Boss

Boss

    ..

  • Administrator
    Coder
    Tester
  • Posts21,762
  • iDeviceiPhone 6+
  • Firmware8.4
Offline

again: how to i set it off to toggle a preference lol

i dont "know" bash but i know how to execute it


Not exactly sure since I haven't used what BRC is referring to. I have heard of it though.

1433253944__boss_sig_2015.png


#15
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline
well do you know how to toggle preferences with bash?

It's time!


#16
Boss

Boss

    ..

  • Administrator
    Coder
    Tester
  • Posts21,762
  • iDeviceiPhone 6+
  • Firmware8.4
Offline
toggle what preference ?

1433253944__boss_sig_2015.png


#17
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline
any preference. let's say I want to make a custom wifi toggle (i know there is one, but how did they do that)

It's time!


#18
Boss

Boss

    ..

  • Administrator
    Coder
    Tester
  • Posts21,762
  • iDeviceiPhone 6+
  • Firmware8.4
Offline
Well you can't do that with bash, that toggle would be written in Obj-C/C. BRC's method you can execute a bash script, If you wanna do more than that it'll need to be C :)

Well you might be able to toggle it with bash say if a cmd existed that could toggle wifi then sure you could execute that cmd in the script.

1433253944__boss_sig_2015.png


#19
Persephone

Persephone

    Novice

  • Member
  • Posts70
  • iDeviceiPhone 4
  • Firmware5.1.1
Offline
I really want a toggle for ScreenDimmer. I emailed Yllier about it but he hasn't replied yet. Is it hard to learn Object-C? Not really big on techy things like languages.

#20
RypeDub

RypeDub

    Banned

  • Banned
  • Posts2,525
Offline
Well I'm be making some! I don't care if I don't know the language. I understand the concept of programming languages.

Im gonna download a C compiler and get to work!

It's time!