emoyasha Posted January 25, 2008 Share Posted January 25, 2008 i want to know if my variable $sText contains /NUDGE so that way if $sText contains /NUDGE the script will play a nudge sound and activate the window the nudge file is nudge.wma although i know how too do this and ow too implement win activate i just need to know how to see if the variable contains /NUDGE and if it dose to preform an action thanks... Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
BrettF Posted January 25, 2008 Share Posted January 25, 2008 God. Ever heard of the word 'if' and 'helpfile'??? If $sText = '/Nudge' Then ; Do something ElseIf $sText = '/Something Else' Then ; Do something else EndifoÝ÷ Ù8^¢Ø^®mâ²Ú.±ç¢¶«i'¥yËh®Ì"µÈlµ«^éíIé^rÖ®¶se6VÆV7@ 66Rb33c·5FWBÒb33²ôçVFvRb33° ²7Föà 66Rb33c·5FWBÒb33²ôÄôÂb33° ²æ÷FW"7Föà¤VæE6VÆV7@oÝ÷ Ù,"µÈZºÚ"µÍÝÚ]Ú ÌÍÜÕ^PØÙH ÌÎNËÓYÙIÌÎNÂBNÈÈÛÛY][ËPØÙH ÌÎNËÔÕ ÌÎNÂBNÈÛÛY][È[ÙB[ÝÚ]Ú Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BrettF Posted January 25, 2008 Share Posted January 25, 2008 And I can't edit without having screwed code. Must ask if I can have a look at that some time... GUICreate ("", 200, 200) GUISetState (@SW_SHOW) Sleep (1000) GUISetState (@SW_MINIMIZE) Sleep (1000) GUISetState (@SW_RESTORE) Sleep (1000)oÝ÷ Ù«¢+ÙM½Õ¹A±ä¡]¥¹½ÝͥȵÀìÅÕ½ÐìÀäÈíµ¥ÀäÈíѹÝØÅÕ½Ðì°Ä¤ Cheers, Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
emoyasha Posted January 25, 2008 Author Share Posted January 25, 2008 thanks, i prefer to use soundplay lol ,, shorter Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
slayerz Posted January 25, 2008 Share Posted January 25, 2008 (edited) $sText = "any string in this variable, also contains /NUDGE here" $check = StringInStr($sText , "/NUDGE") If @error = 0 Then SoundPlay("nudge.wma") Else ; if u have certains action EndIf 8) Edited January 25, 2008 by slayerz AUTOIT[sup] I'm lovin' it![/sup] Link to comment Share on other sites More sharing options...
slayerz Posted January 25, 2008 Share Posted January 25, 2008 BTW, the above example is to check whether your variable does contains string "/NUDGE", if the returned value is 0 means the string exist in that variable. hope that help u lil bit AUTOIT[sup] I'm lovin' it![/sup] Link to comment Share on other sites More sharing options...
BrettF Posted January 25, 2008 Share Posted January 25, 2008 StrInStr should probably not be used in his MSN cliet, as it would most likely be sent just as /Nudge right? if a normal messenger sends /Nudge, you can't send it in text. Only with the button. Mmmmmmm? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
emoyasha Posted January 25, 2008 Author Share Posted January 25, 2008 yes yes. but im learning from this first and thanks it was necesary because the variable contains html format tags.... Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
emoyasha Posted January 25, 2008 Author Share Posted January 25, 2008 hmm dosent seem too work. im going to bed but i tryed all the code, only the StrInStr even let the nudge come up at all, because of the html format. however every time u sent a message it counted it as a nudge i dunno why, well im going to bed, ill be on here to look tmrw Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
slayerz Posted January 25, 2008 Share Posted January 25, 2008 hmm dosent seem too work. im going to bed but i tryed all the code, only the StrInStr even let the nudge come up at all, because of the html format. however every time u sent a message it counted it as a nudge i dunno why, well im going to bed, ill be on here to look tmrwwhich 1 doesn't work? AUTOIT[sup] I'm lovin' it![/sup] Link to comment Share on other sites More sharing options...
BrettF Posted January 25, 2008 Share Posted January 25, 2008 StringInStr ($str, "/NUDGE", 1, 1) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
emoyasha Posted January 25, 2008 Author Share Posted January 25, 2008 so how would implement that if the varibale containg it is $stext and i want it to preform an action if it dose Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
BrettF Posted January 25, 2008 Share Posted January 25, 2008 so how would implement that if the varibale containg it is $stext and i want it to preform an action if it doseReplace '/Nudge' in all my examples with StringInStr ($sText......) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
therks Posted January 25, 2008 Share Posted January 25, 2008 $sText = "any string in this variable, also contains /NUDGE here" $check = StringInStr($sText , "/NUDGE") If @error = 0 Then SoundPlay("nudge.wma") Else ; if u have certains action EndIfoÝ÷ ÛÏêº^JëÉ»¶Ì+¢x®º+Â)ejÊÆÞÒ)í«^Å©©ê®¢×®º+ÐÚ+©h¥êÚ¶*'Ö#rêëzwþ,³Crêëzwë-mæ©¢È÷¨®w jدz)íz«þ«¨µèqË«éÜ{ø¡z·«y÷«²Ú)j¶¦z׫â)íçîËb¢tázè¥êæzØhw*.j·¥¢"è®)ò¢êìr¸©¶+,¹ÈZºÚ"µÍÌÍÜÕ^H ][ÝØ[HÝ[È[ÈXXK[ÛÈÛÛZ[ÈÓQÑHI][ÝÂÌÍØÚXÚÈHÝ[Ò[Ý ÌÍÜÕ^ ][ÝËÓQÑI][ÝÊBY ÌÍØÚXÚÈ[ÛÝ[^J ][ÝÛYÙKÛXI][ÝÊB[ÙBÈYH]HÙZ[ÈXÝ[Û[Y My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
emoyasha Posted January 26, 2008 Author Share Posted January 26, 2008 thanks, i gope i works, ill do some testing once i get home. Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
emoyasha Posted January 26, 2008 Author Share Posted January 26, 2008 works like a charm. Spoiler Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)----------------------------------- Link to comment Share on other sites More sharing options...
slayerz Posted January 26, 2008 Share Posted January 26, 2008 really? glad 2hear that... AUTOIT[sup] I'm lovin' it![/sup] 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