
Norsestar
Active Members-
Posts
34 -
Joined
-
Last visited
About Norsestar
- Birthday 08/07/1988
Profile Information
-
Location
Piedmont, OK
-
Interests
cars, music, programming, and women
Norsestar's Achievements

Seeker (1/7)
0
Reputation
-
i've probably posted this several times and got no replies, so i'll try again in a 'less of a headache' way lol. basically what i'm trying to do is, when a button is pressed on my tab, i want the gui to read what's typed in the input box and do mathematical calculations accordingly and then display the resulting answer. i.e. when i click "ok" on the deposits tab, i want it to add that amount to the current amount stored in a text file and then save it. and when "ok" is clicked in withdrawals, subtract that amount, etc... as well, i'm trying to set it to be able to load up several different accounts to compare amounts, etc... the script is pretty much self explanatory since i have the complete gui display running, it's just lacking the functions. any help would be appreciated, thank you Manage_Your_Finances___Beta.zip
-
having trouble setting a button to load up information in the display boxes on my script... i have the buttons set already, but i haven't had any luck creating a function to make them read/write information that i've input into the input box. for example: i type $5.00 into the deposit input box and click ok. when i click ok, i want it to add $5.00 to the total amount and then display the resulting amount in the display box. and same for withdrawals, except to subtract $5.00 would also like to be able to have it write the information for different accounts and load said account upon selection. i.e. when i select "current" and click Load, i want it to load the information for the "current" account and save information to that one without overwriting other accounts and to be able to load the other account whenever i choose. my intentions are far more advanced than my knowledge it appears lol. i'm also looking to have a user create/login box to load up separate user accounts with their account information and have them be able to add/delete accounts from their list as well without interfering with different user's accounts, etc... attached is a baseline script that just gets the gui open, but no functions unfortunately Manage_Your_Finances___Beta.zip
-
i don't have a bank account anymore. As i'm about to join the Air Force, i'll be forced to close any current accounts and open one through the military. I was attempting to write it for personal use so i'll know how much to save towards a car, tv, house, etc... i'm not looking to write it to take a person's financial info from a bank and compiling it, i was mainly looking to make it add up user input values. i.e. if you want a theoretical balance after pre-planned expenditures then you could simply type it in and see what you'd be looking at 3 months ahead or however long you plan ahead, etc... if that makes any sense lol. like for me, i'll be making ~$2000/month - $700 for car payment/insurance/interest reduction, and $1300 leftover for savings. but i'm currently making ~$600/month before taxes, so i would have to write in the file to open up an account for military and an account for current incomes. i guess it's more of a "help you plan your financial future" program rather than a "balance your checkbook" program lol p.s. i tend to have trouble explaing stuff in a short time, but i hope this clears up my intentions
-
ok, well.. to begin with i guess. i'm trying to write this program to help me manage my finances. as of right now, all i have is the gui setup. i have 5 tabs on it: 1) Accounts 2) Transactions 3) Withdrawals 4) Deposits 5) Balance each tab, as labeled, has it's own purpose. 1) has a dropdown box to select an account with an 'ok' button which loads selected account. 2) has a button to bring up a list of pending/completed transactions. of course, you'd have to submit each transaction manually, but if you keep it up to date it's alot easier than writing it down in a check book. 3) basically just lists your most recent withdrawals stating whether it's pending or completed 4) same as #3 but instead, it lists your deposits 5) lists your current available balance and your estimated balance after your transactions/withdrawals/deposits etc... the problem i am encountering is that i'm having trouble putting together functions to make the buttons work. (i.e. Balance Tab: [Current available balance] - [withdrawal from 3/11/2008] + [deposit on 3/16/2008] = [updated balance] ) if that makes any sense. what i'm trying to do is tie that function in with the button on each tab. say for example, you enter $5.69 in the deposit tab and click ok, i'm wanting it to add $5.69 to the current available balance and display it in the main gui window. same for withdrawals, and transactions. on the transactions tab, i'm looking for it to show estimated balance before and after transactions go through. any suggestions would be much appreciated. i'll upload a .zip file with the .au3 script in it any questions you have, feel free to ask. i'm not looking for somebody to write it for me, just to help me understand how to write the requested functions Manage_Your_Finances.zip
-
anybody know where i can find a script to do this? the example script only returns non-hex values [i.e. 0-255] Thanks
-
oops, sorry about that guys. i forgot to throw in the .dll's you need. here they are zendows_modified_2.0.zip
-
the screen works on all 4 of my pc's, idk why it doesn't work on yours. i'll take a look at it when i dont have to look over my shoulder every 5 seconds. ps. sorry for the late response. pss. the login script came from another script i found, and as i say, i tweak around with them but still try to give credit where it's due. i left the original author's name in the script as credits. however, the loading screen i created. it's real simple to change whatever loading screen you want as described on the sample one. thanks for the kudos m8 EDIT: try this and see if the background image appears. i threw in a test .bmp file to to see if @scriptdir will show the image in your background. zendows_modified_2.0.zip
-
i've found a working login / create user function on the forums somewhere [i forget the exact link] and tried to throw together a script so you can select between create user and login existing user. the original only writes 1 user name / password, i'm wanting to be able to have multiple users, yet make it to where each time you create a user it will NOT overwrite the existing one. but that's not the error i'm getting. it keeps giving me an error: "Incorrect number of parameters in function call.: _LoginBox() here's the script #include <guiconstants.au3> hotkeyset ("{ESC}", "quit") func quit() exit 0 EndFunc guicreate ("Select one", 150, 100, -1, -1) $new = guictrlcreatebutton ("New User", 20, 20, 70) $exist = guictrlcreatebutton ("Existing User", 20, 50, 100) guisetstate(@SW_SHOW) while 1 $msg = guigetmsg() if $msg = $new Then guidelete() _createuser() elseif $msg = $exist Then guidelete() _LoginBox() EndIf WEnd ;=============================================================================== ; Creates a new user ;=============================================================================== Func _CreateUser() $gui = GUICreate("New User", 250, 130, -1, -1) $username = GUICtrlCreateInput("", 72, 42, 173, 21) $password = GUICtrlCreateInput("", 72, 70, 173, 21, $ES_PASSWORD) $okbtn = GUICtrlCreateButton("&OK", 90, 96, 75, 25, 0) $cancelbtn = GUICtrlCreateButton("&Cancel", 171, 96, 75, 25, 0) $Label1 = GUICtrlCreateLabel("Password:", 4, 72, 62, 17) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $Label1 = GUICtrlCreateLabel("Username:", 4, 44, 64, 17) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $Label2 = GUICtrlCreateLabel("Please enter a username and password to " & @CRLF & "create a new user.", 4, 4, 201, 30) GUICtrlSetState($okbtn, $GUI_DEFBUTTON) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Or $msg = $cancelbtn Exit Case $msg = $okbtn If GUICtrlRead($username) <> "" And GUICtrlRead($password) <> "" Then $plH = PluginOpen(@ScriptDir & "\MD5Hash.dll") IniWrite(@ScriptDir & "\settings.ini", "USER", "USERNAME", GUICtrlRead($username)) IniWrite(@ScriptDir & "\settings.ini", "USER", "PASSWORD", MD5Hash (GUICtrlRead($password), 2, True)) PluginClose($plH) ExitLoop Else Select Case GUICtrlRead($username) = "" And GUICtrlRead($password) = "" MsgBox(16, "Error!", "Username and Password cannot be blank!") Case GUICtrlRead($password) = "" MsgBox(16, "Error!", "Password cannot be blank!") GUICtrlSetState($password, $GUI_FOCUS) Case GUICtrlRead($username) = "" MsgBox(16, "Error!", "Username cannot be blank!") GUICtrlSetState($username, $GUI_FOCUS) EndSelect EndIf EndSelect WEnd GUIDelete($gui) EndFunc ;==>_CreateUser ;=============================================================================== ; ; Function Name: _LoginBox ; Description:: Create a basic login box with Username, Password, and a prompt. ; Parameter(s): Title - [Required] ; - The title of the Form ; Prompt - [Required] ; - The prompt for the user ; uDefault - [Optional] - Default Value = "" ; - The default vaue for the Username Input ; pDefault - [Optional] - Default Value = "" ; - The default vaue for the Password Input ; bBlank - [Optional] - Default Value = True ; - Set whether the password or username can be blank. ; - True = Cannot be blank ; - False = Blank is allowed ; Width - [Optional] - Default Value = 250 ; - The width of the Login Box ; Height - [Optional] - Default Value = 130 ; - The height of the Login Box ; Left - [Optional] - Default Value = Auto Center Screen ; - The positioning (Left) of the Login Box ; Top - [Optional] - Default Value = Auto Center Screen ; - The positioning (Top) of the Login Box ; Timeout - [Optional] - Default Value = -1 (No Timeout) ; - The timeout of the Login Box ; ShowError - [Optional] - Default Value = 0 (Do Not Show) ; - Sets whether prompts are displayed to the user with timeout. ; - 0 = Do not Show ; - 1 = Show ; Requirement(s): none ; Return Value(s): Success: ; - Sets @error to 0 (@extended = 0 See exeptions below) ; - Returns a 1D array with the following ; - [0] = Username ; - [1] = Password ; - Exeptions: ; - When bBlank is True and ; The timeout has been reached ; - @extended = 1 ; - @error = 0 ; Failure ; - Sets @error to 0 ; - Sets @extended to: ; - 1 - The Cancel or Exit Button was Pressed ; - 2 - The Login Box Timed Out. ; Author(s): Brett Francis (exodus.is.me@hotmail.com) ; Note(s): none ; ;=============================================================================== Func _LoginBox($title, $prompt, $uDefault = "", $pDefault = "", $bBlank = True, $width = 250, $height = 130, $left = -1, $top = -1, $timeout = -1, $ShowError = 0) Select Case $uDefault = -1 $uDefault = "" ContinueCase Case $pDefault = -1 $pDefault = "" ContinueCase Case $bBlank = -1 $bBlank = True ContinueCase Case $width = -1 $width = 250 ContinueCase Case $height = -1 $height = 130 ContinueCase Case $left = -1 $left = (@DesktopWidth / 2) - ($width / 2) ContinueCase Case $top = -1 $top = (@DesktopHeight / 2) - ($height / 2) ContinueCase EndSelect Local $retarr[2] $gui = GUICreate($title, $width, $height, $left, $top) $username = GUICtrlCreateInput($uDefault, 72, 42, 173, 21) $password = GUICtrlCreateInput($pDefault, 72, 70, 173, 21, $ES_PASSWORD) $okbtn = GUICtrlCreateButton("&OK", 90, 96, 75, 25, 0) $cancelbtn = GUICtrlCreateButton("&Cancel", 171, 96, 75, 25, 0) $Label1 = GUICtrlCreateLabel("Password:", 4, 72, 62, 17) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $Label1 = GUICtrlCreateLabel("Username:", 4, 44, 64, 17) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $Label2 = GUICtrlCreateLabel($prompt, 4, 4, 201, 17) GUICtrlSetState($okbtn, $GUI_DEFBUTTON) GUISetState(@SW_SHOW) $time = TimerInit() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE $case = 0 ExitLoop Case $msg = $okbtn If $bBlank = False Then $case = 1 ExitLoop Else If GUICtrlRead($username) <> "" And GUICtrlRead($password) <> "" Then $case = 1 ExitLoop Else Select Case GUICtrlRead($username) = "" And GUICtrlRead($password) = "" MsgBox(16, "Error!", "Username and Password cannot be blank!") Case GUICtrlRead($password) = "" MsgBox(16, "Error!", "Password cannot be blank!") GUICtrlSetState($password, $GUI_FOCUS) Case GUICtrlRead($username) = "" MsgBox(16, "Error!", "Username cannot be blank!") GUICtrlSetState($username, $GUI_FOCUS) EndSelect EndIf EndIf Case $msg = $cancelbtn $case = 0 ExitLoop Case TimerDiff($time) > $timeout And $timeout If $bBlank = False Then $case = 2 ExitLoop Else Select Case GUICtrlRead($username) = "" And GUICtrlRead($password) = "" $time = TimerInit() If $ShowError = 1 Then MsgBox(16, "Error!", "Username and Password cannot be blank!") Case GUICtrlRead($password) = "" $time = TimerInit() If $ShowError = 1 Then MsgBox(16, "Error!", "Password cannot be blank!") GUICtrlSetState($password, $GUI_FOCUS) EndIf Case GUICtrlRead($username) = "" $time = TimerInit() If $ShowError = 1 Then MsgBox(16, "Error!", "Username cannot be blank!") GUICtrlSetState($username, $GUI_FOCUS) EndIf Case Else If GUICtrlRead($username) <> "" And GUICtrlRead($password) <> "" Then $case = 3 ExitLoop EndIf EndSelect EndIf EndSelect WEnd If $case = 0 Then;Cancel/Exit Button Pressed GUIDelete($gui) Return SetError(1, 1, 0) ElseIf $case = 2 Then;Timed Out GUIDelete($gui) Return SetError(1, 2, 0) ElseIf $case = 1 Then;Ok Pressed $retarr[0] = GUICtrlRead($username) $retarr[1] = GUICtrlRead($password) GUIDelete($gui) Return SetError(0, 0, $retarr) ElseIf $case = 3 Then;Username Fields Not Blank, Timeout reached $retarr[0] = GUICtrlRead($username) $retarr[1] = GUICtrlRead($password) GUIDelete($gui) Return SetError(0, 1, $retarr) EndIf EndFunc ;==>_LoginBox any help would be appreciated, thank you in advance
-
long file names to short filenames
Norsestar replied to Norsestar's topic in AutoIt General Help and Support
awesome! it worked, thanks much -
anybody know the exact syntax for taking a long file / folder name and typing the short version of it? i.e. c:\Documents and Settings <-- long name c:\Docume~1 <-- short name but it's not working on Windows Server 2003 OR Windows XP Pro >< any suggestions what i might be doing wrong? Thanks
-
i've just finished throwing together a simple net sender, but i haven't been able to test it's functionality as im on a server 2003 computer right now and Net Send is disabled from the main server. but here's the file for you to take a look at. it's nothing fancy, just basic variables. will try to throw in a function in a few minutes. but i have to work on this shell for my friend. if you can test it out and let me know how it works, i'd appreciate the feedback. especially if it doesn't work, let me know and i'll tinker with it more.netview.au3
-
i've been tweaking around with your code m8, and i added a login screen to the source so you can create a single user and log them in in the future. i'm about to make another one that you can create multiple users, only problem i'm having is that it keeps overwriting the previous user. i'll probably have to use multiple .ini files until i can get it sorted out. i've uploaded a .zip file with a sample loading screen w/ fairly quick progressbar[you can change the speed. it's mainly there for the look] and the .au3 file with the md5hash.dll for login/create user functions. other than that, i didnt do much modifications as i have very little time. I changed the messagebox titles and if i remember correctly, that's about it. otherwise, it's about 90% untouched. been trying to get the start menu items to work, but to no avail. i can add them and make them work, they just dont open the correct object. p.s. ms paint works on my xp machine and notepad doesnt, but when i run it on my server 2003 pc, the opposite happens. notepad works, but mspaint doesn't. any way of getting around that and making it work? i also cant get any of the icons to load up the apps on my server machine like i can on my xp machine o.O Thanks Modified_Shell___Zendows_Version.zip
-
hmm... well, i took the different bits of code posted here and added a button to it. only thing i cant figure out now, is how to make that button bring up a menu when you click on it. kinda like a start menu lolz. any thoughts?
-
the exe works, but when i test the source it says "Error opening file: GUIComboBox.au3" and "Error opening file: WINAPI.au3" any thoughts?
-
my friend wrote something similar to this. it had a text box where you type in your message, and a dropdown box where you select a computer name [that is, after you type the computer name into a text file for it to read from], and it also had a third text box where you type in whatever you want, and it will show up as your computer name in a net send message. i.e. whatever is typed into the 3rd box is what shows up. it never displayed the actual computer name unless you typed it in. pretty handy for pranking on the teachers and students. they couldnt trace it back to us by computer name.. and never said anything to me about it. they probably can track it somehow, but that's not the point lol. basically, it was a fully functional net send guibox that disguises your computer name. i still have the .exe somewhere, but i dont have the .au3