ConsultingJoe Posted July 11, 2006 Share Posted July 11, 2006 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 expandcollapse popup#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 More sharing options...
ConsultingJoe Posted July 12, 2006 Author Share Posted July 12, 2006 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 More sharing options...
Skrip Posted July 12, 2006 Share Posted July 12, 2006 I'll try it tommorow. 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 More sharing options...
gamepin126 Posted July 12, 2006 Share Posted July 12, 2006 Awesome, I'm gonna adapt this to a forum game I'm playing on another forum. Keep my points updated Link to comment Share on other sites More sharing options...
ConsultingJoe Posted July 12, 2006 Author Share Posted July 12, 2006 Awesome, I'm gonna adapt this to a forum game I'm playing on another forum. Keep my points updated 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now