Jump to content

Jack

Members
  • Posts

    2125
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    100%

Everything posted by Jack

  1. No but that would also work :P
  2. 4/10 Is that crown from something?
  3. This is a very simple script that checks your Ip address. Try it out Edit: Updated Script! New Link! I also released the source below. http://up.ht/1q2mtLB import java.awt.*; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; @ScriptManifest(author = "Jack", name = "Jack's IP Checker", version = 1.1, info = "Checks your IP", logo = "") public class IPChecker extends Script { String ip = ""; boolean error = false; boolean haveIp = false; private final Font myFont = new Font("Arial", 1, 16); public void onStart() { try { BufferedReader in = new BufferedReader(new InputStreamReader(new URL("http://jackhallam.net/checkip.php").openStream())); ip = in.readLine().split("<")[0]; in.close(); } catch (Exception e) { error = true; } if(ip.equals("")) error = true; haveIp = true; } public int onLoop() throws InterruptedException{ return 1000; } public void onPaint(Graphics2D g){ if(haveIp) if(error) drawStringWithStroke(g, "Error Finding IP Address", 10, 120, myFont); else drawStringWithStroke(g, "My IP Is: " + ip, 10, 120, myFont); } public void drawStringWithStroke(Graphics2D g, String s, int x, int y, Font f){ if(f!=null) g.setFont(f); g.setColor(Color.BLACK); g.drawString(s, x+1, y); g.drawString(s, x-1, y); g.drawString(s, x, y+1); g.drawString(s, x, y-1); g.setColor(Color.WHITE); g.drawString(s, x, y); } }
  4. Unless there is a power outage
  5. We need to add one that people wont be "offended" by then
  6. No it was not to praise you... It was to make fun of you...
  7. I still can't make a topic here: http://osbot.org/forum/forum/181-sdn-upload-requests/ I have an osbot git account. I have done everything. I even waited until the sdn was released. Now just open the section.
  8. Jack

    GUI

    http://java-program-sample.blogspot.com/2011/08/jlabel-positions.html JLabel.TRAILING
  9. http://osbot.org/forum/topic/53837-maldy-emoji/
  10. Jack

    :maldy: emoji

    VOTE ABOVE! Please @Maldesto! Its meant to be with a little bit of and Note: If you vote no, can you give a good reason why it should not be added?
×
×
  • Create New...