Jump to content

pcjunki

Active Members
  • Posts

    228
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

pcjunki's Achievements

  1. @Subz Thank you! that's exactly what i needed!!
  2. yes i did, in the help file, it refers to guictrlread, which is what i'm trying to do.
  3. I'm needing some assistance. I have a gui, that we use to help manage our computers and network stuff. i have radio buttons working that when selected, they pull data from text files, then i'm able to execute functions such as ping, and opening up a remote mmc to that pc ect ect I'm trying to add a new gui button($editradio), that when pressed (depending on which radio button is pressed) will open up the text file that goes with that radio button. here is my code (I've left allot of stuff out, and only put in what i felt is needed to help me accomplish this) #Region ###Remote push### $TabSheet1 = GUICtrlCreateTabItem("Remote Push") $Group1 = GUICtrlCreateGroup(" ", 18, 55, 180, 505, $WS_BORDER, $WS_EX_CLIENTEDGE) $Radio1 = GUICtrlCreateRadio("firstfloor", 25, 69, 113, 30) $Radio2 = GUICtrlCreateRadio("2ndfloor", 25, 98, 113, 30) $Group2 = GUICtrlCreateGroup(" ", 200, 56, 697, 641, $WS_BORDER, $WS_EX_CLIENTEDGE) $Label1 = GUICtrlCreateLabel("Computer", 216, 69, 233, 25) $input1 = GUICtrlCreateCombo("", 216, 92, 233, 25, BitOR($CBS_DROPDOWN, $WS_VSCROLL)) $PINGHOST = GUICtrlCreateButton("Ping", 216, 122, 91, 57) $MMC = GUICtrlCreateButton("Remote" & @CRLF & "MMC", 455, 122, 91, 57, $bs_multiline) $editradio = GUICtrlCreateButton("edit" & @CRLF & "list", 455, 415, 91, 57, $bs_multiline) GUICtrlCreateTabItem("") GUISetState(@SW_MAXIMIZE) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit #Region ###REMOTEPUSH### Case $Radio1 GUICtrlSetData($input1, "") $Readcityhall = FileRead("\\server1\scripts\1stfloor.txt") GUICtrlSetData($input1, StringReplace($Readcityhall, @CRLF, "|"),1) Case $Radio2 GUICtrlSetData($input1, "") $Readcityhall = FileRead("\\server1\scripts\2ndfloor.txt") GUICtrlSetData($input1, StringReplace($Readcityhall, @CRLF, "|"),1) #EndRegion ###Remote push### Case $PINGHOST $pc = GUICtrlRead($input1) Run(@ComSpec & ' /k ' & 'ping ' & $pc & ' -t') Case $MMC $pc = GUICtrlRead($input1) Run(@ComSpec & ' /c ' & 'compmgmt.msc /computer:\\' & $pc, "", @SW_HIDE) Case $editradio If GUICtrlRead($radio1) _IsPressed Then shellExecute("\\server1\scripts\1stfloor.txt") Else ElseIf
  4. i got it, i took the "|" out of the txt files everything is working, thanks skysnake and water
  5. i totally forgot about using "|" since that's what i have in my code to begin with...doh! @water when i use your code, it works, but there is a space between the computer names, and i have to scroll more (whines like a baby) GUICtrlSetData($input1, StringReplace($Readfloor1, @CRLF, "|"),1)
  6. sorry, i'm using combo $input1 = GUICtrlCreateCombo("", 216, 92, 233, 25, BitOR($CBS_DROPDOWN, $WS_VSCROLL))
  7. i'm editing a gui that has hard coded computer names in my autoit script, i'm now migrating to using txt files, so my gui will read txt files that contain the computer names. when i run my script, everything is in one line, and not showing how it is in the txt file, here is an example of my code file.txt pc1 pc2 pc3 and my autoit script... Case $Radio1 $Readfloor1 = FileRead("c:\file.txt") GUICtrlSetData($input1,$Readfloor1,1)
  8. this is an example of what we have printed out and used adhesive to the side of the computer tower that way when a user calls, they can give you more than just a computer name, they can give you what port they are plugged into, then you can logon to the switch and see if there is an active link or what not computer-name:PC345 ip:192.168.52.11 subnet:255.255.255.0 gateway:192.168.0.2 dns:192.168.0.10 Switch:192.168.52.1 Port:31 VLAN 500U, 200T
  9. print something out and duct tape it to the computer tower
  10. you can run the java installer from the windows command line, jre-8u101-windows-i586.exe /s
  11. first off, this isn't McDonalds, you can't just order up some code. What have you tried so far? post some examples That code you posted is over 2 years old by just looking through it, I'm sure gmail has changed some backend programming since then, which makes that example script obsolete. Seriously, I used to love coding and writing, but now I'm sick of it because people now days are just to freaking lazy to try it on their own. 2nd, Gmail has that password policy in effect for security reasons, which I will not get into, so I don't think any script or 3rd party software/program will allow you to go back and change your gmail password. my rant is over
  12. I was kind of in the same spot, I have a huge amount of music in my collection, on an external tb drive, but got tired of when I put songs on my cell phone, it wouldn't show up right with the artist, song title, ect ect ect several months ago, I ended up reloading my pc with Linux mint, cause I didn't like win10 at all, and found the program banshee music (kinda like iTunes) it organized all my music in a catalog, and I was able to write meta data etc etc well... that didn't really help you at all, just throwing something your way.
  13. gotcha, changed it and it worked, thanks!
  14. i'm having issue calling an exe with some parameters. I've downloaded winlogonview from www.nirsoft.net/utils/windows_log_on_times_view.html the parameters i'm passing to winlogonview.exe is /source 2 /server computer125 my autoit script is $pc = 'computer125' ShellExecute("\\server487\share\winlogonview\winlogonview.exe /source 2 /server " & $pc) any clues or ideas?
  15. searching and replacing text would be awesome! like in those pesky text boxes.
×
×
  • Create New...