Jump to content

AutoIt Forum Sig Updater


Recommended Posts

Now what you do is:

-you must be signed in with IE to the AutoIt Forum.

-you set the text, "[data]" where you want the data to appear.

-you then edit, "data.txt" to be what ever text you want.

-then set the dalay in the script, default is 10,000ms

-and run the script

NOTE: When you exit the script it will then replace the text from you sig to "[data]".

This script is great for easy news updates, count downs, what ever you want.

Let me know what you think, Thanks

#include <IE.au3>
AdlibEnable ( "error", 150 )

;;;;;;;;;VARS;;;;;;;;;
$text = "[data]";text to replace in the sig
$filename = @ScriptDir & "\data.txt";file to pull the text from
$delay = 10000;delay of sig set
;;;;;;;;;VARS;;;;;;;;;

$ie = _IECreate ( "http://www.autoitscript.com/forum/index.php?act=UserCP&CODE=22" , 0, 0 );site to edit sig
$old_text = $text
$orginal = $text
$file_text = $text
While 1
If $old_text <> $text Then
$file = FileOpen( $filename, 0 )
$file_text = FileRead( $file )
FileClose( $file )
EndIf
$form = _IEFormGetObjByName ( $ie, "REPLIER" );form name
$textarea = _IEFormElementGetObjByName ( $form, "Post" );text area name
$text = _IEFormElementGetValue ( $textarea );Get the value
$text = StringReplace( $text, $old_text, $file_text )
_IEFormElementSetValue ( $textarea, $text );Set the new value
_IEFormSubmit ( $form );Submit the sig
$old_text = $file_text
Sleep($delay)
WEnd

Func Onautoitexit()
    _IEQuit ( $ie );exit IE
    $ie = _IECreate ( "http://www.autoitscript.com/forum/index.php?act=UserCP&CODE=22" , 0, 0 );site to edit sig
    $form = _IEFormGetObjByName ( $ie, "REPLIER" );form name
    $textarea = _IEFormElementGetObjByName ( $form, "Post" );text area name
    $text = _IEFormElementGetValue ( $textarea );Get the value
    $text = StringReplace( $text, $file_text, $orginal )
    _IEFormElementSetValue ( $textarea, $text );Setting the new value
    _IEFormSubmit ( $form );Submit the sig
    _IEQuit ( $ie );exit IE
    FileClose( $file )
EndFunc

Func Error()
    If @error Then
    MsgBox( 0, "ERROR", "Unknown Error" )
    Exit
    EndIf
EndFunc

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Link to comment
Share on other sites

Has any one tried this???

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Link to comment
Share on other sites

I'll try it tommorow. :D Looks like it will work though

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Link to comment
Share on other sites

Awesome, I'm gonna adapt this to a forum game I'm playing on another forum. Keep my points updated :D

Thanks, Let me know how it works because it seems like it would be prone to bugs

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...