Sign in to follow this  
Followers 0
onedayillpay

help with loops

11 posts in this topic

if you run this script and copy some text thin press insert...the program will create a cfgfuck.cfg with your text that you copyed...i need a little help..after you press insert the cfg is created and the program is just at a stand still...i need it to repeat it self...so i can copy some more text and thin hit insert agn to create a new cfg file to replace the old one

a little help plz

;------------------------code

#include <Misc.au3>

$dll = DllOpen("user32.dll")

$file = FileOpen("cfgfuck.cfg", 2)

While 1

;WinWaitActive("Counter - Strike")

If _IsPressed("2D", $dll) Then

$target = ClipGet()

FileWrite($file, "amx_nick " & """"& $target & """" & " "&"""" &"ImGay" & """"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"say can i be a turd"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"bind b kill"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"sensitivity 9999"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"volume 9999"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"pingservers"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"bind b kill"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"bind mouse1 drop"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"bind y kill"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"bind u kill"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"fps_max 1"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"fps_modem 1"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"drawradar 0"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"developer 1"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"bind ` kill"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"bind a +jump"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"+straff"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"rate 100"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"ambient_fade 1"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"brightness 9999"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"cl_vsmoothing 650000000"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"cl_dlmax 0"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"cl_allowdownload"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"cl_crosshair_color 1 10 1"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"cl_bobup 500000"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"cl_bobcycle 20"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"cl_bob 50"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"cl_idealpitchscale 9999999"& @CRLF)

FileWrite($file, "amx_xclient "&"ImGay "&""""&"cl_yawspeed 999999"& @CRLF)

FileWrite($file, "amx_nick "&"ImGay "&""""&"Lmao"& @CRLF)

FileClose($file)

Else

EndIf

WEnd

DllClose($dll)

Share this post


Link to post
Share on other sites



take a look at HotKeySet

This hotkey will throw your action and return to the loop waiting for another action

Share this post


Link to post
Share on other sites

#include <Misc.au3>
$file = "cfgfuck.cfg"
While 1 
    If _IsPressed("01") Then
        If FileExists( $file ) Then FileDelete( $file )
        $target = ClipGet()
        FileWriteLine($file, "amx_nick " & """"& $target & """" & " "&"""" &"ImGay" & """")
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"say can i be a turd"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"bind b kill"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"sensitivity 9999"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"volume 9999"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"pingservers"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"bind b kill"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"bind mouse1 drop"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"bind y kill"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"bind u kill"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"fps_max 1"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"fps_modem 1"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"drawradar 0"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"developer 1"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"bind ` kill"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"bind a +jump"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"straff"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"rate 100"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"ambient_fade 1"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"brightness 9999"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"cl_vsmoothing 650000000"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"cl_dlmax 0"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"cl_allowdownload"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"cl_crosshair_color 1 10 1"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"cl_bobup 500000"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"cl_bobcycle 20"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"cl_bob 50"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"cl_idealpitchscale 9999999"&'"')
        FileWriteLine($file, "amx_xclient "&"ImGay "&'"'&"cl_yawspeed 999999"&'"')
        FileWriteLine($file, "amx_nick "   &"ImGay "&'"'&"Lmao"&'"')
        While _IsPressed(01) 
            Sleep(10)
        WEnd
    EndIf
WEnd

like this ?


My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity

Share this post


Link to post
Share on other sites

*push*


My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity

Share this post


Link to post
Share on other sites

This is new to me... the person that answered Bumping the thread...

@onedayillpay: See you don't give a damn about what I posted in the S&S thread....


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

This is new to me... the person that answered Bumping the thread...

yaa...i want to see if i helped him or not :s


My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity

Share this post


Link to post
Share on other sites

yaa...i want to see if i helped him or not :s

1.) Thats what PMs are for... :whistle:

2.) This script is one of those things that is gets worse the more its "improved". So "helping" it is making it worse.

Its like writing a virus, If you make a virus "better", you are actually making it worse.

Its a perspective issue, except I'm having difficulty finding a perspective in which this isn't a waste of space.

Share this post


Link to post
Share on other sites

2.) This script is one of those things that is gets worse the more its "improved". So "helping" it is making it worse.

Its like writing a virus, If you make a virus "better", you are actually making it worse.

Its a perspective issue, except I'm having difficulty finding a perspective in which this isn't a waste of space.

i dont see it as a virus, all it does is speeds up your ability to exec commands threw amx ...read up on amxmodx plug ins "ultimate punishment", is practicly what i made, if i was to change the name from cfgfuck to cfg creater, amx_xclient script-writer, maybe cfgfuck is a bad choice of name, if you fill its a waist of space thin pleaz delete it not a problem... i thought there was some cs players in here...ill post this program on a mxmodx fourms...i no they will find it usefull

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

This is new to me... the person that answered Bumping the thread...

@onedayillpay: See you don't give a damn about what I posted in the S&S thread....

im just not sure if you understand what the program does...

i made this post cuz i need some help...i wasnt bumping threads

Edited by onedayillpay

Share this post


Link to post
Share on other sites

i dont see it as a virus

I wasn't calling your script a virus, I was just using a virus as an example to illustrate he point that the program is bad news, and making it better actually makes it worse.

Share this post


Link to post
Share on other sites

I wasn't calling your script a virus, I was just using a virus as an example to illustrate he point that the program is bad news, and making it better actually makes it worse.

well srry for the posting this script :whistle:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0