Jump to content
Sign in to follow this  
Aces

Multiple Program Loader

Recommended Posts

Aces

This little tool allows you to save, load, and run up to 10 paths you input into the input boxes

Format for path: "C:\folder\file.exe"

Make sure you have quotations

Source Code:

CODE
;;;;;;;;;;;;;;;;;;;;;;;;

;;; MultiProgz v1.0 ;;;;

;;; Created by: Aces ;;;

;;;;;;;;;;;;;;;;;;;;;;;;

#include <GUIConstants.au3>

GUICreate("MultiProgz v1.0 - Created by: Aces", 800, 400)

$prog1 = GUICtrlCreateInput("", 100,20, 400,25)

$label1 = GUICtrlCreateLabel("First Path:", 20,25, 70,25)

$prog2 = GUICtrlCreateInput("", 100,55, 400,25)

$label2 = GUICtrlCreateLabel("Second Path:", 20,60, 70,25)

$prog3 = GUICtrlCreateInput("", 100,90, 400,25)

$label3 = GUICtrlCreateLabel("Third Path:", 20,95, 70,25)

$prog4 = GUICtrlCreateInput("", 100,125, 400,25)

$label4 = GUICtrlCreateLabel("Fourth Path:", 20,130, 70,25)

$prog5 = GUICtrlCreateInput("", 100,160, 400,25)

$label5 = GUICtrlCreateLabel("Fifth Path:", 20,165, 70,25)

$prog6 = GUICtrlCreateInput("", 100,195, 400,25)

$label6 = GUICtrlCreateLabel("Sixth Path:", 20,200, 70,25)

$prog7 = GUICtrlCreateInput("", 100,230, 400,25)

$label7 = GUICtrlCreateLabel("Seventh Path:", 20,235, 70,25)

$prog8 = GUICtrlCreateInput("", 100,265, 400,25)

$label8 = GUICtrlCreateLabel("Eighth Path:", 20,270, 70,25)

$prog9 = GUICtrlCreateInput("", 100,300, 400,25)

$label9 = GUICtrlCreateLabel("Ninth Path:", 20,305, 70,25)

$prog10 = GUICtrlCreateInput("", 100,335, 400,25)

$label10 = GUICtrlCreateLabel("Tenth Path:", 20,340, 70,25)

$infolabel = GUICtrlCreateLabel("Correct Path: C:\folder\file.exe with quotations", 525,300, 150,50)

$save = GUICtrlCreateButton("Save Paths", 525,20, 150,80)

$load = GUICtrlCreateButton("Load Paths", 525, 110, 150,80)

$run = GUICtrlCreateButton("Run Paths", 525, 200, 150,80)

GUISetState()

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

Exit

Case $msg = $save

save()

Case $msg = $load

load()

Case $msg = $run

prun()

EndSelect

WEnd

Func save()

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path1", "REG_SZ", GUICtrlRead($prog1))

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path2", "REG_SZ", GUICtrlRead($prog2))

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path3", "REG_SZ", GUICtrlRead($prog3))

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path4", "REG_SZ", GUICtrlRead($prog4))

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path5", "REG_SZ", GUICtrlRead($prog5))

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path6", "REG_SZ", GUICtrlRead($prog6))

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path7", "REG_SZ", GUICtrlRead($prog7))

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path8", "REG_SZ", GUICtrlRead($prog8))

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path9", "REG_SZ", GUICtrlRead($prog9))

RegWrite("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_pathten", "REG_SZ", GUICtrlRead($prog10))

EndFunc

Func load()

$regread1 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path1")

$regread2 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path2")

$regread3 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path3")

$regread4 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path4")

$regread5 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path5")

$regread6 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path6")

$regread7 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path7")

$regread8 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path8")

$regread9 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_path9")

$regread10 = RegRead("HKEY_CURRENT_USER\Software\multiprogz", "multiprogz_pathten")

GUICtrlSetData($prog1, $regread1)

GUICtrlSetData($prog2, $regread2)

GUICtrlSetData($prog3, $regread3)

GUICtrlSetData($prog4, $regread4)

GUICtrlSetData($prog5, $regread5)

GUICtrlSetData($prog6, $regread6)

GUICtrlSetData($prog7, $regread7)

GUICtrlSetData($prog8, $regread8)

GUICtrlSetData($prog9, $regread9)

GUICtrlSetData($prog10, $regread10)

EndFunc

Func prun()

If GUICtrlRead($prog1) <> "" Then

Run(GUICtrlRead($prog1))

EndIf

If GUICtrlRead($prog2) <> "" Then

Run(GUICtrlRead($prog2))

EndIf

If GUICtrlRead($prog3) <> "" Then

Run(GUICtrlRead($prog3))

EndIf

If GUICtrlRead($prog4) <> "" Then

Run(GUICtrlRead($prog4))

EndIf

If GUICtrlRead($prog5) <> "" Then

Run(GUICtrlRead($prog5))

EndIf

If GUICtrlRead($prog6) <> "" Then

Run(GUICtrlRead($prog6))

EndIf

If GUICtrlRead($prog7) <> "" Then

Run(GUICtrlRead($prog7))

EndIf

If GUICtrlRead($prog8) <> "" Then

Run(GUICtrlRead($prog8))

EndIf

If GUICtrlRead($prog9) <> "" Then

Run(GUICtrlRead($prog9))

EndIf

If GUICtrlRead($prog10) <> "" Then

Run(GUICtrlRead($prog10))

EndIf

EndFunc

DOWNLOAD BELOW HERE

MultiProgz_v1.0_by_Aces.zip


~~ AutoIt v3 Minion ~~Name: Kevin "Aces-X" MorrisOrganization: A C DevelopmentE-Mail: AcesX91@acecoding.netOS: XP Professional; Vista package~~ Released Software ~~CPU-Mach: Topic at acecoding.net ForumsProxyzBuddy: Beta testing at the moment, private onlyWHSTool: Not released to the public

Share this post


Link to post
Share on other sites
Aces

i think online game users that require several programs to function, like counter-strike, ventrilo, and mirc would find this useful.. hopefully.


~~ AutoIt v3 Minion ~~Name: Kevin "Aces-X" MorrisOrganization: A C DevelopmentE-Mail: AcesX91@acecoding.netOS: XP Professional; Vista package~~ Released Software ~~CPU-Mach: Topic at acecoding.net ForumsProxyzBuddy: Beta testing at the moment, private onlyWHSTool: Not released to the public

Share this post


Link to post
Share on other sites
smstroble

I cant say that i have a use for this program, however seems how you're learning AutoIt i would recommend looking at for loops and arrays as you can use them to make your program significantly shorter, its purely aesthetic however it knowing how to do it will make writing more complex code, especially code where something is done over and over but you still need to save the variables from each repeated command(s), much easier.


MUHAHAHAHAHA

Share this post


Link to post
Share on other sites
Sn0opy

I wrote something like that for a friend yesterday, but he's able to change the number of progs he starts^^

run("blah.bat",@scriptdir)

tadaa :rolleyes: But I think it's one of your firsts programs you posted here. Just learn some more Autoit to create greater programs^^

Share this post


Link to post
Share on other sites
smashly

Hi Aces, thanks for your efforts, nice work and keep it up :rolleyes:

I attached an updated version of your program in the gui help thread you started

Here

I didn't realize you had posted your code here at the time when I posted in the other thread.

Cheers

Share this post


Link to post
Share on other sites
TehBeyond

I'm not trying to bash anyone here... so please bear with me. This is not a direct insult to anyone, more of a comment on a general trend I have noticed recently. When someone (relatively) new posts some code, *please* do not say something to the effect of "this is worthless", "this doesn't do anything," "I already made this," or "what's the point?" Aces, and the other relatively new users are posting in part to learn more and in part to share what they have learned. Everyone was a beginner once, so please choose your words carefully.


I would have told you I have Alzheimer's, but I forgot.My Splendid-Tastic Blog

Share this post


Link to post
Share on other sites
Aces

thank you for your support :rolleyes:

I will continue working on this program soon, and come with new versions - until the program is perfected, and has more uses added into it.


~~ AutoIt v3 Minion ~~Name: Kevin "Aces-X" MorrisOrganization: A C DevelopmentE-Mail: AcesX91@acecoding.netOS: XP Professional; Vista package~~ Released Software ~~CPU-Mach: Topic at acecoding.net ForumsProxyzBuddy: Beta testing at the moment, private onlyWHSTool: Not released to the public

Share this post


Link to post
Share on other sites
Aces

60 downloads.. nice.


~~ AutoIt v3 Minion ~~Name: Kevin "Aces-X" MorrisOrganization: A C DevelopmentE-Mail: AcesX91@acecoding.netOS: XP Professional; Vista package~~ Released Software ~~CPU-Mach: Topic at acecoding.net ForumsProxyzBuddy: Beta testing at the moment, private onlyWHSTool: Not released to the public

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×