-
Posts
228 -
Joined
-
Last visited
Everything posted by pcjunki
-
@Subz Thank you! that's exactly what i needed!!
-
yes i did, in the help file, it refers to guictrlread, which is what i'm trying to do.
-
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
-
i got it, i took the "|" out of the txt files everything is working, thanks skysnake and water
-
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)
-
sorry, i'm using combo $input1 = GUICtrlCreateCombo("", 216, 92, 233, 25, BitOR($CBS_DROPDOWN, $WS_VSCROLL))
-
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)
-
Easiest way for users to find their machine name
pcjunki replied to legend's topic in AutoIt General Help and Support
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 -
Easiest way for users to find their machine name
pcjunki replied to legend's topic in AutoIt General Help and Support
print something out and duct tape it to the computer tower -
how to automate Java Installer
pcjunki replied to Muhammad_Awais_Sharif's topic in AutoIt General Help and Support
you can run the java installer from the windows command line, jre-8u101-windows-i586.exe /s -
Gmail password change script.
pcjunki replied to HellRanger's topic in AutoIt General Help and Support
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 -
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.
-
gotcha, changed it and it worked, thanks!
-
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?
-
searching and replacing text would be awesome! like in those pesky text boxes.
-
Starting AutoIt Script in Domain
pcjunki replied to srokar's topic in AutoIt General Help and Support
if your in a domain, call the exe in a login script in active directory. -
[Closed] How to Start and Stop a Network Connection?
pcjunki replied to Zohar's topic in AutoIt General Help and Support
dang... I didn't see that, I don't have a xp machine here at work, wonder if it's different, but I don't think so -
[Closed] How to Start and Stop a Network Connection?
pcjunki replied to Zohar's topic in AutoIt General Help and Support
lets see a screenshot when you run the command netsh interface set interface name="local area connection" admin=disable we need to see the cmd error -
[Closed] How to Start and Stop a Network Connection?
pcjunki replied to Zohar's topic in AutoIt General Help and Support
you only ran "netsh interface set interface" try running (copy as is) netsh interface set interface name="local area connection" admin=disable -
[Closed] How to Start and Stop a Network Connection?
pcjunki replied to Zohar's topic in AutoIt General Help and Support
in your original post you asked to enable/disable the nic called "Local Area Network" did you try the code I posted at all? -
[Closed] How to Start and Stop a Network Connection?
pcjunki replied to Zohar's topic in AutoIt General Help and Support
Run(@ComSpec & ' /c ' & 'netsh interface set interface name="local area connection" admin=disable')Run(@ComSpec & ' /c ' & 'netsh interface set interface name="local area connection" admin=enable') -
Play a Video when the computer is locked?
pcjunki replied to nlgma's topic in AutoIt General Help and Support
maybe make it into a screensaver? -
How to do frequency and sound program
pcjunki replied to akira2891's topic in AutoIt General Help and Support
or buy some glue traps sorry it's friday