
User751139
Active Members-
Posts
44 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
User751139's Achievements

Seeker (1/7)
0
Reputation
-
Help with removing X line in text
User751139 replied to User751139's topic in AutoIt General Help and Support
Thanks fellas! -
Hello, I'm hoping someone can help me finish this: Basically need to have autoIT remove the Last and the 4th last line off a log file as it contains personal info. I can get the last line removed, but can't figure out what I need to do for the 4th last: This works so far to remove the last line: #include <Constants.au3> #Include <File.au3> $sLogPath = 'Debug.txt' #include <Array.au3> #include <Word.au3> $iCount = _FileCountLines($sLogPath) _FileWriteToLine($sLogPath, $iCount, '', 1) $s = FileRead ("Debug.txt") MsgBox ($MB_SYSTEMMODAL,"Log file contents",StringMid($s,StringInStr($s,@CRLF,$STR_CASESENSE,-15)+1)) Eg of log file below: Line 1 Line 2 Line 3 Line 4 <-- need to remove 4th last line Line 5 Line 6 Line 7 <-- removes last line The log file above doesn't always have 7 lines, sometimes there's a few hunded. But the main goal is the same: Always need to remove the last and the 4th last line. Thank you
-
Thanks, What changes can I do to write a different output to the text? Eg: If I selected "callThis" from the dropdown and saved. It would wite "This was saved" in the text file. Much appreciate if someone can advise
-
Thank you!
-
#include <GUIConstantsEx.au3> #include <Misc.au3> #include <GUIConstants.au3> #include <WindowsConstants.au3> ; Set ENTER to run the _Action function when pressed HotKeySet("{ENTER}", "_Action") ;-----------HOTKEYS------------- Global $g_bPaused = False ; +!d = Shift + ALT + D HotKeySet("+!F", "_OptionalMenu1") HotKeySet("+!P", "_OptionalMenu2") HotKeySet("+!R", "_OptionalMenu3") HotKeySet("+!T", "_OptionalMenu4") ; Shift-Alt-d HotKeySet("+!S", "_OptionalMenu5") ; CTRL + S HotKeySet("+!W", "_OptionalMenu6") ; Shift-Alt-d HotKeySet("+!D", "_OptionalMenu7") ; CTRL + S Example() Func Example() GUICreate("Test GUI", 715,410) ; will create a dialog box that when displayed is centered GUISetBkColor(0x00ececec) GUISetFont(9, 70) GUICtrlCreateTab(10, 10, 697, 390) GUICtrlCreateTabItem("Main Menu") GUICtrlCreateLabel("label0", 30, 80, 50, 20) GUICtrlCreateButton("OK0", 20, 50, 50, 20) GUICtrlCreateInput("default", 80, 50, 70, 20) GUICtrlCreateTabItem("Tab 1") GUICtrlSetState(-1, $GUI_SHOW) ; will be display first GUICtrlCreateLabel("Choice 1:", 20, 40, 150, 20) GUICtrlCreateCombo("", 20, 60, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK", 175, 59, 50, 25) ;------------------------------------------------- GUICtrlCreateLabel("Choice 2:", 20, 90, 150, 20) GUICtrlCreateCombo("", 20, 110, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 175, 109, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) ;------------------------------------------------- GUICtrlCreateLabel("Choice 3:", 20, 140, 150, 20) GUICtrlCreateCombo("", 20, 160, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 175, 159, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) ;------------------------------------------------- GUICtrlCreateLabel("Choice 4:", 20, 190, 150, 20) ;speedUpOptions GUICtrlCreateCombo("", 20, 210, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 175, 209, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) ;------------------------------------------------- GUICtrlCreateLabel("Choice 5:", 20, 240, 150, 20) ;speedUpOptions GUICtrlCreateCombo("", 20, 260, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 175, 259, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) GUICtrlCreateLabel("Choice 7:", 20, 290, 150, 20) ;speedUpOptions GUICtrlCreateCombo("", 20, 310, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 175, 309, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) GUICtrlCreateLabel("Choice 8:", 20, 340, 150, 20) ;speedUpOptions GUICtrlCreateCombo("", 20, 360, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 175, 359, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) GUICtrlCreateLabel("Choice 9:", 250, 40, 190, 20) ; 2nd Collumb 1st Row GUICtrlCreateCombo("", 250, 60, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 405, 59, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) GUICtrlCreateLabel("Choice 10:", 250, 90, 190, 20) ; 2nd Collumb 2nd Row GUICtrlCreateCombo("", 250, 110, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 405, 109, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) ;------------------------------------------------- GUICtrlCreateLabel("Choice 11:", 250, 140, 190, 20) ; 2nd Collumb 3rd Row GUICtrlCreateCombo("", 250, 160, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 405, 159, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) ;------------------------------------------------- GUICtrlCreateLabel("Choice 12:", 250, 190, 190, 20) ; 2nd Collumb 4th Row GUICtrlCreateCombo("", 250, 210, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 405, 209, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) ;------------------------------------------------- GUICtrlCreateLabel("Choice 13:", 250, 240, 190, 20) ; 2nd Collumb 5th Row GUICtrlCreateCombo("", 250, 260, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 405, 259, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) ;------------------------------------------------- GUICtrlCreateLabel("Choice 14:", 250, 290, 190, 20) ; 2nd Collumb 6th Row GUICtrlCreateCombo("", 250, 310, 150, 120) GUICtrlSetData(-1, "Trids|CyberSlug|Larry|Jon|Tylo|guinness", "Jon") ; default Jon GUICtrlCreateButton("OK1", 405, 309, 50, 25) ;GUICtrlCreateLabel("- Choice of your ship", 260, 59, 170, 50) ;------------BOT MENU------------- GUICtrlCreateLabel("OPTIONAL MENU", 560, 40, 100, 50) ; 3rd Collumb 1st Row ; Action button $_OptionalMenu1 = GUICtrlCreateButton("Optional Menu 1 [ SHIFT + ALT + F ]", 490, 58, 205, 25) ; Mouse coord button $_OptionalMenu2 = GUICtrlCreateButton("Optional Menu 2 [ SHIFT + ALT + P ]", 490, 108, 205, 25) ; Mouse coord inputs $_OptionalMenu3 = GUICtrlCreateButton("Optional Menu 3 [ SHIFT + ALT + T ]", 490, 160, 205, 25) ; Mouse coord inputs $_OptionalMenu4 = GUICtrlCreateButton("Optional Menu 4 [ SHIFT + ALT + R ]", 490, 208, 205, 25) ; Mouse coord inputs $_OptionalMenu5 = GUICtrlCreateButton("Optional Menu 5 [ SHIFT + ALT + S ]", 490, 258, 205, 25) ; Mouse coord inputs $_OptionalMenu6 = GUICtrlCreateButton("Start Optional Menu 6", 490, 308, 205, 25) ; Mouse coord inputs ;----------------------------------------- GUICtrlCreateTabItem("tab2") GUICtrlCreateLabel("label2", 30, 80, 50, 20) GUICtrlCreateButton("OK2", 140, 50, 50) GUICtrlCreateTabItem("") ; end tabitem definition GUICtrlCreateLabel("My test GUI :)", 490, 358, 205, 25) GUISetState(@SW_SHOW) Local $idMsg ; Loop until the user exits. While 1 $idMsg = GUIGetMsg() If $idMsg = $GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc ;==>_Action Here's what's done so far, I need to make it so that whatever option I select from the dropdown list, it saves it as a text file with the (selected) text from the dropdown menu. -Some of the buttons need to add the list in order such as: (If I select 3 different names and save them 3 times) John Lary Trids Thank you -Some of the Optional Menu buttons on the right need to open any of the saved text files with the set Hotkey. Thank you for your assistance
-
Thanks for the help, looks like this is what I'm looking for: but when i choose an item from the drop down, it's not saving that option but saving all 3:
-
This is the closest that I can find in terms of saving the files from input: but i'm looking to make predefined items
-
Greetings, I was hoping if someone can help me design a template that I can modify. It's hard for me to describe so i have a picture to help me explain. I'm looking to basically create a GUI that will have multiple tabs with many list of items, once I check the selection I like it'll save the choice to a text file name of choice. I've read and saw some gui examples but just not able to tie in the buttons and make it all work. If not the checkbox, even a drop down menu would be best. Here's a GUI that i took off the net and edited in paint: https://i.imgur.com/4WNveje.png Thanks for reading, and looking forward to a response
-
edited - wasn't aware it can't be posted here. Not very active on the forum
-
User751139 reacted to a post in a topic: Notify - New version 17 Mar 22
-
Thank you, much appreciate it!
-
@Melba23 Fantastic script i'm still using it to this day to run many tasks. Is there a way to make the texts on the boxes into clickable URLs? Thanks!
-
help with appending (nping)
User751139 replied to User751139's topic in AutoIt General Help and Support
I know I'm brining up a super old thread. But I just ran into this tool after years.. and need to use this again. Anyone able to tell me how I can make the script count the total IP's pinged? As of now: nping 192.168.1.20-40 > networklog.txt (eg: this has 20 machines) nping 192.168.1.130-140 >> networklog.txt (eg: this has 10) will give me the correct results of each ranges however I need to know how many in total was pinged from both of the ranges above (totalling 30 machines) I hope that makes sense :S -
Thank you. Working flawlessly!
-
I've the the different notification for everything I do here at work..except i needed 25 different notification. As of now my screen can only fit 19. It's only 6 off so not the end of the world and I can live with out it...Just wondering if it was possible that's all. Thanks
-
Understod, but is it possible to reduce the size of the boxes to be very tiny so i can squeeze more tabs?