Zoldex Posted November 24, 2012 Share Posted November 24, 2012 That's wonderful! Thanks for sharing! Link to comment Share on other sites More sharing options...
PhoenixXL Posted November 24, 2012 Author Share Posted November 24, 2012 Perhaps,Its better to add a function rather that theUser to declare the global variables in their scriptThus,Updated the UDF ie added RemoteGmail_Startupplease check the first post My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
EmptySpace Posted November 24, 2012 Share Posted November 24, 2012 Thanks for updating. When I try to compile script made with remotegmail udf I get error "Invalid fileinstall() function" I cant understand what I must add to script. Other my codes works well. Link to comment Share on other sites More sharing options...
PhoenixXL Posted November 24, 2012 Author Share Posted November 24, 2012 (edited) Check Post Edited November 24, 2012 by PhoenixXL My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
EmptySpace Posted November 24, 2012 Share Posted November 24, 2012 Autoit3.exe is already in script dir. And where I should put that FileCopy? My code: (Sorry, autoit forum became very buggy. Cant click on autoit tags and so on.) #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Global $sUsername = "myemail" Global $sPassword = "password" Global $texttosend #include <RemoteGmail.au3> #region ### START Koda GUI section ### Form= GUICreate("Test", 300, 72, 296, 260) $Input1 = GUICtrlCreateInput("Put some text", 8, 8, 281, 21) $send = GUICtrlCreateButton("Send Gmail", 8, 32, 283, 25) GUISetState(@SW_SHOW) #endregion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $send $texttosend = GUICtrlRead($Input1) SendEmail2Gmail($texttosend, '', 0, 'Execute') EndSwitch WEnd Link to comment Share on other sites More sharing options...
PhoenixXL Posted November 24, 2012 Author Share Posted November 24, 2012 Download the Latest Version Thereafter this code will work for you #include <RemoteGmail.au3> RemoteGmail_Startup('username', 'password') GUICreate(@ScriptName, 300, 72, 296, 260) $Input1 = GUICtrlCreateInput("", 8, 8, 281, 21) $send = GUICtrlCreateButton("Send", 8, 32, 283, 25) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case -3 Exit Case $send $texttosend = GUICtrlRead($Input1) If SendEmail2Gmail($texttosend, '', 0, 'Testing')>0 Then ConsoleWrite ( '+> Success' & @CR ) Else ConsoleWrite ( '!> Failure' & @CR ) EndIf EndSwitch WEnd My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
EmptySpace Posted November 24, 2012 Share Posted November 24, 2012 Its good that you added RemoteGmail_Startup() And now I can compile scripts easly. Thanks for your hard work Link to comment Share on other sites More sharing options...
EmptySpace Posted November 24, 2012 Share Posted November 24, 2012 I dont understand why forum is so buggy. Edit wont work for me. When I start compiled script i ger error message "Autoit is not the workind dir" Link to comment Share on other sites More sharing options...
Chance Posted November 24, 2012 Share Posted November 24, 2012 It's because of this function right here. [size=4]Func CopyAutoit()[/size] ;Required for executing a script If FileExists('Autoit3.exe') Then Return Local $sAutoitExe If @Compiled Then ;_FileInstall(Bin_Aut3(), @WorkingDir & 'Autoit3.exe', 1) MsgBox (16, 'Error', 'Autoit is not at the WorkingDir' ) Else Return FileCopy($sAutoitExe, @WorkingDir & 'AutoIt3.exe', 1) EndIf [size=4]EndFunc ;==>CopyAutoit[/size] It looks really error prone of you ask me. Link to comment Share on other sites More sharing options...
EmptySpace Posted November 24, 2012 Share Posted November 24, 2012 Its works well after clicking ok at that msgbox. So if i would delete that msg box? Or phoenix have to update this? Link to comment Share on other sites More sharing options...
PhoenixXL Posted November 24, 2012 Author Share Posted November 24, 2012 (edited) If FileExists('Autoit3.exe') Then ReturnIf you receive the MsgBox then Autoit3.exe is not present in the WorkingDir [Default ScriptDir] Edited November 24, 2012 by PhoenixXL My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
EmptySpace Posted November 24, 2012 Share Posted November 24, 2012 So i have to put autoit3.exe in other pc where autoit isnt installed? What the fuck? Link to comment Share on other sites More sharing options...
EmptySpace Posted November 24, 2012 Share Posted November 24, 2012 Sorry, head not working today. I dont need this func cos I use this udf only for sending emails not for runing scripts or something. So I can delete that msgbox. (Edit dont works) Link to comment Share on other sites More sharing options...
PhoenixXL Posted November 24, 2012 Author Share Posted November 24, 2012 (edited) So i have to put autoit3.exe in other pc where autoit isnt installed? What the fuck?Two Solutions are thereKeep a FileInstall in your main script installing the Autoit Exe at the Working Dir [cannot be implemented directly in the UDF]Embed the Autoit exe in your script in the Binary Format [would raise Exe size to more than 1.5MB] - will do it after taking permissions Edited November 24, 2012 by PhoenixXL My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
EmptySpace Posted November 24, 2012 Share Posted November 24, 2012 Other problem. Gmail send emails which says that someone is trying to hijack my account. And I dont get any email becouse of that. Lol Link to comment Share on other sites More sharing options...
PhoenixXL Posted November 24, 2012 Author Share Posted November 24, 2012 I use this udf only for sending emailsIf thats the only reason you should look My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
Morthawt Posted November 27, 2012 Share Posted November 27, 2012 Will this work with a google apps account? I tried manually visiting the URL in this UDF to see but I could not get it to work with my @morthawt.com email address. It worked fine for my @gmail.com address though. Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
Morthawt Posted November 27, 2012 Share Posted November 27, 2012 This is what I tried: ConsoleWrite(InetRead("https://emailaddress@morthawt.com:MyPasswordHere@mail.google.com/mail/u/0/feed/atom", 1)) it does not work, same as the link in your UDF unfortunately. The problem is that URL works in both browsers I have tried. Why would it not work in Autoit? I even modified the user agent to replicate my browser and it still fails. Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
PhoenixXL Posted November 27, 2012 Author Share Posted November 27, 2012 (edited) The ATOM feed redirects the Email Id with the existing account if supported for example if you have a facebook id (email id) try with it, only the emails which are received to the gmail account associated with the facebook account are received it seems that the website you provided is supported by GOOGLE SITES but retrieving data from the same might not be accurate Hence its better to make a GMAIL Account and then use the UDF Edited November 27, 2012 by PhoenixXL My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
Morthawt Posted November 27, 2012 Share Posted November 27, 2012 lol so I would have to make a dedicated standard gmail account then. Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. 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