Jump to content

Recommended Posts

  • Replies 63
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted (edited)

If you can ever decide on something to script then maybe you could use this neat service that I just discovered: EtherCodes. It's a real time collaborative editor. Doesn't support AutoIt syntax highlighting though. I thought they said that you could chat there but I don't see it.

Newb Project

Edited by jaberwocky6669
Posted (edited)

If anyone wants to help us newbies, ive made a project on that ethercodes website, PM Me and ill send you the link

Thanks For The Help People ;):);):shocked:

Edited by SparkSoft

[center]First Ever Script/App[/center][center]Simple Battery Meter[/center]

Posted (edited)

I'm working on a project myself and as a newbie I'm asking for help ;)

I'm scripting my own version of the Firefox Preloader to work to my needs and would like to publish the sourecode for all to modify to theirs. :)

I welcome suggestions and improvements please.

[b]#NoTrayIcon 
#include<Process.au3>

Dim $Window_Status, $Breakdoloop, $Do

ShowProgress(ProgressOn("Firefox Preloader", "Firefox Loading . . .", "0 percent"))

ShowProgress(Progress(1, 15, 50))

If ProcessExists("firefox.exe") Then
    RunWait(@ComSpec & ' /c pskill.exe -t firefox.exe', '', @SW_HIDE)
EndIf

ShowProgress(Progress(15, 20, 50))

RunWait(@ComSpec & ' /c cscript.exe C:\windows\system32\replace.vbs "C:\firefox\localstore.rdf" "chrome://browser/content/browser.xul#main-window" "Deleted"', '', @SW_HIDE)

ShowProgress(Progress(20, 30, 50))

Run("firefox.exe /prefetch:1", "", @SW_MINIMIZE)

ShowProgress(Progress(30, 50, 50))
    
Do
    If ProcessExists("firefox.exe") Then
        $pid = WinGetProcess("[CLASS:MozillaUIWindowClass]") 
        If $pid = -1 Then
            $pid = "invalid"
        Else
            ShowProgress(Progress(50, 70, 50))
            Sleep(500)
            $Breakdoloop = 1
        EndIf
    EndIf

Until $Breakdoloop = 1

ShowProgress(Progress(70, 90, 50))

Do
    $state = WinGetState("[CLASS:MozillaUIWindowClass]", "")
    If BitAnd($state, 16) Then
        WinSetState("[CLASS:MozillaUIWindowClass]", "", @SW_HIDE)
        ShowProgress(Progress(90, 100, 80))
        Sleep(1000)
        ProgressOff()
        $Window_Status = 1
    EndIf

Until $Window_Status = 1

ProcessSetPriority("firefox.exe", 0)
ToolTip("-Firefox is Loaded. PID is " & $pid & ".", 920, 710, "Firefox Preloader", 1, 2)

Sleep(5000)

Func ShowProgress($Do)
    If 5 = 1 Then ; 5 = 5 On, 5 = 1 Off
        $Do  
    Else
        Dim $do_nothing
    EndIf
EndFunc


Func Progress($Progress, $To, $Sleep)
    For $i = $Progress to $To step 1
        Sleep($Sleep)
        ProgressSet( $i, $i & " percent")
        If $i = 100 Then ProgressSet( $i, $i & " percent", "Firefox is Loaded . . . Complete!")
    Next
EndFunc[/b]

I've never really used forums before so I don't really don't know how to put source in box or anything ;) nvm

I'm a real newbie so please excuse me.

Edited by decipher
Spoiler

censored.jpg

 

Posted

Whats with this ether code thingy ?? Its loading and loading and loading ... ;) O bdw ... So sparksoft ... the utility thingy is final then ?? the one u wish to pack with ur netbook b4 u give it to ya mom . So lets start working on it then .. its a sort of vacation for me now .. so lots of time :)

Posted

Ethercodes.com won't work with any IE based browsers, so that will eliminate a sizable portion of potential help. You might want to find another site that isn't so biased. Especially since they recommend, as one of the "approved" browsers, Safari which is one of the buggiest and least secure browsers out there. Not a glowing recommendation for any site when they recommend that one.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

Ethercodes.com won't work with any IE based browsers, so that will eliminate a sizable portion of potential help. You might want to find another site that isn't so biased. Especially since they recommend, as one of the "approved" browsers, Safari which is one of the buggiest and least secure browsers out there. Not a glowing recommendation for any site when they recommend that one.

I cant find antoher site Ive search and havnt found any that are as easier to use than this. Im using both IE and FireFox because hotmail doesnt work properly in firefox, but does in IE, and that ethercode doesnt work in IE but does in firefox ;) its pretty annoying that one website works in one browser and one works in another, its stupid

[center]First Ever Script/App[/center][center]Simple Battery Meter[/center]

Posted

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

Yeah SourceForge would probably be the best. How about Google Code?

I think that online collaberation code editor was kinda cool because we can chat on it, and learn from each other in realtime ;)

shame it doesnt work on IE though

[center]First Ever Script/App[/center][center]Simple Battery Meter[/center]

Posted

If you can ever decide on something to script then maybe you could use this neat service that I just discovered: EtherCodes. It's a real time collaborative editor. Doesn't support AutoIt syntax highlighting though. I thought they said that you could chat there but I don't see it.

Newb Project

http://getsatisfaction.com/ethercodes/topics/how_to_contribute_language_syntax
Posted (edited)

Im new so I dont know where to start.

What Idea should we start first. I was thinking of the program launcher first as thats the easiest and it will open the other programs up, then start to make the suite of apps.

Edited by SparkSoft

[center]First Ever Script/App[/center][center]Simple Battery Meter[/center]

Posted

The first thing a newbie should learn is syntax. Know how to use a loop, comparing, etc...

The second thing is algorithms. Know how to to manipulate arrays, what to do first, what to do next

After that is to learning how to apply functions.

Next is to learn GUI, interaction betweens controls.

The last is probably networking, memory editing and the use of dllcall to use many more functions.

Posted

The first thing a newbie should learn is syntax. Know how to use a loop, comparing, etc...

The second thing is algorithms. Know how to to manipulate arrays, what to do first, what to do next

After that is to learning how to apply functions.

Next is to learn GUI, interaction betweens controls.

The last is probably networking, memory editing and the use of dllcall to use many more functions.

I disagree.

;)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...