Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 15:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Desktop sorting

Discussion on Desktop sorting within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 65
Received Thanks: 12
Cool Desktop sorting

Hi everyone , i'd like to share this script. (Tips and critics accepted)
HTML Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <File.au3>
#include <Array.au3>
#include <Toast.au3>
$N = 1
Global $Files  
$Form1 = GUICreate("Sorting machine", 153, 90, -1, -1, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_TOPMOST,$WS_EX_WINDOWEDGE))
$Button1 = GUICtrlCreateButton("Text", 0, 0, 75, 25)
$Button2 = GUICtrlCreateButton("Images", 77, 0, 75, 25)
$Button3 = GUICtrlCreateButton("Shortcuts", 0, 28, 152, 25)
$Exstention = GUICtrlCreateInput(".", 7, 56, 64, 24)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Button4 = GUICtrlCreateButton("Custom", 77, 56, 75, 25)
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		 Case $Button1
			DirCreate (@DesktopDir & "\Texts")
			$Files = _FileListToArray(@DesktopDir,"*.txt")
			$TF = $Files[0]
			$TFN = $Files[$N]
		 For $I = 1 To $TF Step 1 
			$TFN = $Files[$N]
			FileMove (@Desktopdir & "\" & $Files[$N],@DesktopDir & "\Texts\" & $Files[$N])
			$N = $N + 1
		 Next
			_Toast_Show(0,"","Copyed " & $TF & " file(s)",-3)
			_Toast_Hide()
			$N = 1   
		 Case $Button2
			DirCreate (@DesktopDir & "\Images")
			$Files = _FileListToArray(@DesktopDir,"*.png")
			$TF = $Files[0]
			$TFN = $Files[$N]
		 For $I = 1 To $TF Step 1 
			$TFN = $Files[$N]
			FileMove (@Desktopdir & "\" & $Files[$N],@DesktopDir & "\Images\" & $Files[$N])
			$N = $N + 1
		 Next
			_Toast_Show(0,"","Copyed " & $TF & " file(s)",-3)
			_Toast_Hide()
			$N = 1   
		 Case $Button3
			DirCreate (@DesktopDir & "\Shortcuts")
			$Files = _FileListToArray(@DesktopDir,"*.lnk")
			$TF = $Files[0]
			$TFN = $Files[$N]
		 For $I = 1 To $TF Step 1 
			$TFN = $Files[$N]
			FileMove (@Desktopdir & "\" & $Files[$N],@DesktopDir & "\Shortcuts\" & $Files[$N])
			$N = $N + 1
		 Next
			_Toast_Show(0,"","Copyed " & $TF & " file(s)",-3)
			_Toast_Hide()
			$N = 1   
		 Case $Button4
			DirCreate (@DesktopDir & "\Custom")
			$Files = _FileListToArray(@DesktopDir,"*" & GUICtrlRead ($Exstention))
			$TF = $Files[0]
			$TFN = $Files[$N]
		 For $I = 1 To $TF Step 1 
			$TFN = $Files[$N]
			FileMove (@Desktopdir & "\" & $Files[$N],@DesktopDir & "\Custom\" & $Files[$N])
			$N = $N + 1
		 Next
			_Toast_Show(0,"","Copyed " & $TF & " file(s)",-3)
			_Toast_Hide()
			$N = 1   
	  EndSwitch
	  
WEnd
Edit: I forgot to attach the UDF's file. Thanks alpines.
Attached Files
File Type: rar Toast.rar (6.6 KB, 4 views)
kimboy600 is offline  
Old 09/14/2013, 19:20   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Script has no use if you don't upload a .rar with the UDF.
alpines is offline  
Reply


Similar Threads Similar Threads
[help] Sorting structures...??
12/20/2012 - C/C++ - 2 Replies
Well, how can i sort structers according to one element of them?? struct PersonalData { int char *FirstName; char *LastName; char *Birthday; // in the format of 12/30/1978 int id;
another java problem about sorting a scheduling algorithm
09/28/2012 - General Coding - 2 Replies
i've tried to use 3 arrays which are System.out.println("enter number of process: "); int process = in.nextInt(); String name = new String; int ArrivalT = new int; int BurstT = new int; and then i've used for loop for inputs of name, BT and AT.
JAVA problem array sorting
09/28/2012 - General Coding - 1 Replies
i use three arrays where in System.out.println("Enter number of process: "); int process = in.nextInt(); String name = new String; int age = new int; double income = new double; bla bla bla so basically i used three arrays and a for loop and the outcome is this. (note: this is a user input)
[Tool] LoLEtal Sorting
03/29/2012 - League of Legends - 0 Replies
This is a little program I made to sort the accounts you want to bot. It compiles the list of all the completed accounts and accounts to check which ones are done or not and distribute the unfinished accounts among the bots. http://www.mediafire.com/?yyx0f8kfhbybkw1 Instructions: 1. Put the jar file in the folder with all the bots, like picture below; http://dl.dropbox.com/u/4962068/one.png 2. Run jar file, and it will tell you how many accounts unfinished;...
Sorting Everything out
04/22/2009 - Dekaron - 2 Replies
ok i had a friend who helped me put in my first hackes in when i played 2moons but now he got banned and dont play no more so i need help finding where things go i have unpacked dekaron, gameguardkiller and the laucher for it and the CE, but the only problem im having is that i cant seem to figure out where things go do i put the unpacked dekaron in the bin and the gameguardkiller in the gameguard folder? thats all im cofnused with if u have anyhting that can help me plzz post and tell me where...



All times are GMT +2. The time now is 15:03.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.