
MirnesC2
Active Members-
Posts
117 -
Joined
-
Last visited
Everything posted by MirnesC2
-
Ran it, nothing happened. Windows 7 x64, just a heads up.
-
You can also use @MSEC Milliseconds value of clock. Range is 00 to 999 @SEC Seconds value of clock. Range is 00 to 59 @MIN Minutes value of clock. Range is 00 to 59 @HOUR Hours value of clock in 24-hour format. Range is 00 to 23 @MDAY Current day of month. Range is 01 to 31 @MON Current month. Range is 01 to 12 @YEAR Current four-digit year @WDAY Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday. @YDAY Current day of year. Range is 1 to 366 (or 365 if not a leap year) $m = $MON $d = @MDAY $y = @YEAR $date = $m&"-"&$m&"-"&$y
-
Thanks for the reply Melba. I looked at MrCreatoR's UDF but it wont help me since you can't use $variables inside those tags. I searched the forum for RichEdit controls and read about 3-4 topics and I still couldn't really understand how it works, the example in the help files doesn't make much sense either. Is it possible for some here to make me an example script using RichText (or any other method that will work) using my example script above? (for the exit button I fixed it by using a switch statement xD )
-
Alright I am trying to get different colored lines using this this function but it doesn't seem to be working. It only takes up the color of the last line printed into the edit box. Also I tried Do, Until msg = $GUI_EVENT_CLOSE to exit the script once the exit button has been pressed but it doesn't seem to be working ( and yes i used $msg = GUIGetMsg() ) #include <GUIConstantsEx.au3> #include <Date.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <StaticConstants.au3> GUICreate("Buttons", 647, 302) $output = GUICtrlCreateEdit("", 0, 0, 647, 302, 0) GUICtrlSetBkColor(-1, 0x000000) GUISetState(@SW_SHOW) Global $output While 1 _print("line 1 = white", "0xFFFFFF", 1) _print("line 2 = red", "0xFF0000", 1) _print("line 3 = blue", "0x0000FF", 1) sleep(5000) WEnd Func _print($message, $color, $crlf) If $crlf = 1 Then $crlf = @CRLF Else $crlf = "" EndIf GUICtrlSetData($output, $message & $crlf, 1) GUICtrlSetColor(-1, $color) GUICtrlSetFont(-1,9,0,0,"Lucida Console") EndFunc
-
Someone de-compiled my program and had the exact source I made word by word? Is it possible to make it more secure, something for future updates? Also can someone post the de-compiler if they have it?
-
Ah, great! Thank you so much, I got it to work now.
-
It shows an example with combo box, I don't really understand it. Is it possible to make an example with label instead?
-
I got it working, thanks. One more problem though. Lets say I have the main gui/panel/frame. It has a label that says "hello". Now I got to 2nd gui/panel/frame and edit it to say "whats up" instead of hello. When I save and exit out the 2nd gui/panel/frame the label "hello" on main frame still says "hello" instead of "whats up". How can I fix that? How can make it update or reset the gui?
-
Oh!, Return... so simple, lol. I accidentally hit the - reputation button, but I went back to some of your others posts and hit the + to re-balance it. Sorry, they really need a confirmation window or undo button on that thing o.o Thank you!, and thanks for the call function tip.
-
Hi, well I have a code its set up something like this... ; some gui stuff here ; buttons, labels, bla bla While 1 $msg = GUIGetMsg() If $msg = $edit Then Call("EditPanel") EndIf If $msg = $save Then MsgBox(48, "Saved", "Save Completed", 10) Until $msg = $msg = $GUI_EVENT_CLOSE Func EditPanel() ;some gui stuff here ;other code bla bla If $msg = $close OR $msg = $GUI_EVENT_CLOSE Then GUIDelete("EditPanel") EndIf EndFunc It's basically a main GUI panel with a bunch of options such as... save and edit. When you press edit it opens a new window, all the new window gui and code is inside the function EditPanel(). Now I figured out how to delete the gui of the EditPanel() but it's still inside the function so the buttons from the main GUI menu still don't work. My questions is what do I add after GUIDelete("EditPanel") to exit the function EditPanel() and go back to the main menu/GUI. Or is there an easier way to do this?
-
Never mind, it works fine. It already does what I was looking for, I just messed up something in my code.
-
When you read an .ini it tells you what comes after the = sign Example [general] name=john The .ini file I need has it set up differently and I was wondering how I can get it to read it in this format instead [general] name = john name = "john"
-
Close / Stope button isnt working
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
How do I send a double right click? I looked in help files and couldn't find anything -
Close / Stope button isnt working
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
Heh, I don't think I would have ever thought of that. Thanks, +1rep to all who replied. -
I can't seem to figure out whats wrong, I tried moving it to a number of places and nothing worked. It's as if when ever it is spamming "hello world" its in its own world and ignores all the other code. #include <GUIConstantsEx.au3> $GUI = GUICreate("hello world", 150, 50) $startbutton = GUICtrlCreateButton("Start", 8, 10, 60) $stopbutton = GUICtrlCreateButton("Stop", 68, 10, 60) GUISetState(@SW_SHOW) Do $msg = GUIGetMsg() Select Case $msg = $startbutton Do Send("Hello world!") Until $msg = $stopbutton EndSelect Until $msg = $GUI_EVENT_CLOSE Another question separate from this one but in GUISetBkColor(0x00E0FFFF) The color, what format is that in? How can I find the code for other colors?
-
Read/write/save data from .ini?
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
Heh, this whole time I have been coming here and using the "preview post" while my code was in autoit tags to do that, lol. Thanks -
Read/write/save data from .ini?
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
Oh wow, these help files got everything in them -
Read/write/save data from .ini?
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
Where are the help files? I going to guess their in the auto it folder. *runs off to look -
How can I read, write, and save data from an .ini? I have a program that requires you to enter some data, but it would be a pain in the ass to enter all that data everytime you open it open. So is there anyway I can make it save that data when opened up?
-
trouble with timing keys and if statement
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
Never mind, I figured that part out. Could use help fixing stop button though. -
trouble with timing keys and if statement
MirnesC2 posted a topic in AutoIt General Help and Support
Alright, it's a bit hard to understand. Bare with me. Send("1") Check() Send("2") Check() Send("3") First the program sends the key "1" Okay so the point is for the user to enter a number which will be a time (in milliseconds) we call this [t]. So the background has a timer running that starts at 0, and if [t] is greater than or equal to [t] it should send the key. If it's not then it should continue on and the program should check again when it is ready. If it's not ready it should send the next ready key. I tried doing it with the code below, but it's not working. It just spams 1,2,3 and doesn't check if $time1 >= [t]. #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: Mirnes #ce ---------------------------------------------------------------------------- #include <GUIConstantsEx.au3> $botname = InputBox("Hello","Windows name?") $GUI = GUICreate($botname, 335, 370) $winname = GUICtrlCreateInput("", 20, 30, 120) $winsend = GUICtrlCreateButton("Send", 82, 55, 60) $input1 = GUICtrlCreateInput("", 215, 25, 95) $input2 = GUICtrlCreateInput("", 215, 52, 95) $input3 = GUICtrlCreateInput("", 215, 79, 95) $input4 = GUICtrlCreateInput("", 215, 106, 95) $input5 = GUICtrlCreateInput("", 215, 133, 95) $input6 = GUICtrlCreateInput("", 215, 160, 95) $input7 = GUICtrlCreateInput("", 215, 187, 95) $input8 = GUICtrlCreateInput("", 215, 214, 95) $custom1 = GUICtrlCreateInput("", 15, 127, 40) $custom2 = GUICtrlCreateInput("", 15, 154, 40) $custom3 = GUICtrlCreateInput("", 15, 181, 40) $custom4 = GUICtrlCreateInput("", 15, 208, 40) $time1 = GUICtrlCreateInput("", 55, 127, 90) $time2 = GUICtrlCreateInput("", 55, 154, 90) $time3 = GUICtrlCreateInput("", 55, 181, 90) $time4 = GUICtrlCreateInput("", 55, 208, 90) $startbutton = GUICtrlCreateButton("Start", 190, 325, 60) $stopbutton = GUICtrlCreateButton("Stop", 266, 325, 60) GUICtrlCreateLabel("Created by Mirnes, for the users of www.snoxd.net", 32, 280) GUICtrlCreateLabel("1", 190, 29) GUICtrlCreateLabel("2", 190, 58) GUICtrlCreateLabel("3", 190, 86) GUICtrlCreateLabel("4", 190, 112) GUICtrlCreateLabel("5", 190, 138) GUICtrlCreateLabel("6", 190, 166) GUICtrlCreateLabel("7", 190, 194) GUICtrlCreateLabel("8", 190, 220) GUICtrlCreateGroup("Active Window", 8, 8, 148, 80) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup("Time Settings", 175, 8, 148, 240) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup("Custom Keys", 8, 100, 148, 147) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup("Credits", 8, 260, 318, 50) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) $Pause = 0 While 1 $msg = GUIGetMsg() Select Case $msg = $startbutton While 1 Select Case $msg = $startbutton Call("Attack") Case $msg = $stopbutton ExitLoop EndSelect WEnd Case $msg = $stopbutton ExitLoop Case $msg = $GUI_EVENT_CLOSE GUIDelete() ExitLoop EndSelect WEnd #cs ---------------------------------------------------------------------------- Attack function #ce ---------------------------------------------------------------------------- Func Attack() Send("1") Check() Send("2") Check() Send("3") Check() EndFunc #cs ---------------------------------------------------------------------------- Hot key functions #ce ---------------------------------------------------------------------------- HotKeySet("{NUMPADADD}", "End") HotKeySet("{NUMPADSUB}", "Pause") Func Check() $key1 = GUICtrlRead($input1) $key2 = GUICtrlRead($input2) $key3 = GUICtrlRead($input3) $key4 = GUICtrlRead($input4) $key5 = GUICtrlRead($input5) $key6 = GUICtrlRead($input6) $key7 = GUICtrlRead($input7) $key8 = GUICtrlRead($input8) $cus1 = GUICtrlRead($custom1) $cus2 = GUICtrlRead($custom2) $cus3 = GUICtrlRead($custom3) $cus4 = GUICtrlRead($custom4) $cust1 = GUICtrlRead($time1) $cust2 = GUICtrlRead($time2) $cust3 = GUICtrlRead($time3) $cust4 = GUICtrlRead($time4) Local $timer = TimerInit() Local $timer1 = TimerDiff($timer) If $timer1 >= $key1 Then Send("1") EndIf If $timer1 >= $key2 Then Send("2") EndIf EndFunc Func End() Exit EndFunc Func Pause() If $Pause = 0 Then $Pause = 1 Else $Pause = 0 EndIf While $Pause = 1 Sleep(1) WEnd EndFunc #cs ---------------------------------------------------------------------------- End of code #ce ---------------------------------------------------------------------------- -
Yea, lol. I think Hawkwing might be on to something easier.
-
Wow, that's more code than my entre program itself. Lol.
-
Is there anyway to make it so the processes name is hidden as well? or so that you can change the processes name of an item?
-
How do I limit what is being put into an input box? For example if I only wanted numbers in one input box, only letters in one input box, no symbols, maximum/minimum characters, and etc. ?