hypertyper
Active Members-
Posts
29 -
Joined
-
Last visited
hypertyper's Achievements
Seeker (1/7)
0
Reputation
-
HRC - HotKey Resolution Changer [Updated 2012-May-16]
hypertyper replied to KaFu's topic in AutoIt Example Scripts
Great update! It now works with restarts and everything. Thanks a lot for this nice little tool and the super quick updates! -
HRC - HotKey Resolution Changer [Updated 2012-May-16]
hypertyper replied to KaFu's topic in AutoIt Example Scripts
I've installed the new version, deleted the old ini and after a restart both hotkeys still point to the same resolution. I'm using VMware workstation which I assume is part of the problem. How about saving the relevant resolution with its hotkey in the ini file? That way the restart won't have an impact. It would be really cool if you could get it to work. If I have time I might have a look at the source code and see if I can come up with something... Danke -
HRC - HotKey Resolution Changer [Updated 2012-May-16]
hypertyper replied to KaFu's topic in AutoIt Example Scripts
I just double checked and it's not just the gui that's not updating. After the reboot the hotkeys remain, the resolutions both point to the current resolutions and the hotkeys don't work. I set the resolutions with their relevant hotkeys, then I reboot the VM and when I start HRC again, the hotkeys are still there but they both point to the current resolution. Maybe save the resolution with the hotkey? I'm not sure whether this is any different when using a normal PC rather than a VM. -
HRC - HotKey Resolution Changer [Updated 2012-May-16]
hypertyper replied to KaFu's topic in AutoIt Example Scripts
Love this tool. It seems that on my virtual machine though the resolution associated with a hotkey changes when I restart the PC. Can you don't save the resolution associated with a particular hotkey? It seems that it does actually work but it gets displayed differently on the GUI. Strange. Either way, that's all I need. It works, who cares what it looks like -
Thanks for your reply. You are right, error wasn't from this exact script. I was playing around with similar scripts and one had the "_" and the other didn't. However, running the exact script posted (with the edited error message) still doesn't work. When I put in you error check then I get the popup :| What gets used to create the obj? Any .net framework something along the lines? I've tried the script on another XP machine, same version, and it somehow worked. I have no idea what the difference is. It has nothing to do with the script so it must be something Windows related. edit: the PC where it works doesn't even have .net framework on it right now. It's a pretty fresh install so it's almost naked. I'm clueless. Thanks edit: It now works on the Laptop where I need it and I've changed nothing. This is so weird. I'm running the same executable getting different results. Say What???
-
==> Variable must be of type "Object".: $_ObjEmail.From = '"' & $_FromName & '" <' & $_FromAddress & '>' $_ObjEmail^ ERROR I'm using the following script which works on my Win7 machine but not my WinXP Laptop and that's where I need it. I don't get an error in Win7 and on XP it just doesn't work. What am I doing wrong? In another thread somebody had the same problem and resolved it by installing some files that were missing on his machine but he never replied about what it was. I couldn't find anything else on the topic. Thanks for your time. ; ;################################## ; Include ;################################## #Include<file.au3> Global $oMyRet[2] Global $oMyError = ObjEvent("AutoIt.Error", "ErrFunc") Dim $s_SmtpServer = "smtp.gmail.com" ; address for the smtp-server to use - REQUIRED Dim $s_FromName = "Peter Pan" ;IniRead(@ScriptDir & "\runmgr.ini", "SMTP", "FromName", "") ; name from who the email was sent Dim $s_FromAddress = "xxxx@gmail.com" ;IniRead(@ScriptDir & "\runmgr.ini", "SMTP", "FromAddress", "") ; address from where the mail should come Dim $s_ToAddress = "xxxx@gmail.com" ;IniRead(@ScriptDir & "\runmgr.ini", "SMTP", "ToAddress", "") ; destination address of the email - REQUIRED Dim $s_Subject = "test" ;IniRead(@ScriptDir & "\runmgr.ini", "SMTP", "Subject", "") ; subject from the email - can be anything you want it to be Dim $as_Body = "testboddy" ; the message body from the mail - can be left blank but then you get a blank mail Dim $as_BodyTemp = "huh" ; the temporary message body as the file is being read and compiled Dim $s_AttachFiles = "";@ScriptDir & "\capterrFail 28_01.txt" ; the file you want to attach - leave blank if not needed Dim $s_CcAddress = "";IniRead(@ScriptDir & "\runmgr.ini", "SMTP", "ccAddress", "") ; address for cc - leave blank if not needed Dim $s_BccAddress = "" ; address for bcc - leave blank if not needed Dim $s_Username = "xxxx@gmail.com" ;IniRead(@ScriptDir & "\runmgr.ini", "SMTP", "Username", "") ; username for the account used from where the mail gets sent - Optional (Needed for eg GMail) Dim $s_Password = "xxxxx" ;_StringEncrypt(0, IniRead(@ScriptDir & "\runmgr.ini", "SMTP", "Password", ""), $EncryptKey, 1) ; password for the account used from where the mail gets sent - Optional (Needed for eg GMail) Dim $IPPort = 465 ;IniRead(@ScriptDir & "\runmgr.ini", "SMTP", "Port", "") ; port used for sending the mail Dim $ssl = 1 ; use secure socket layer sending (ssl) "SMTP", "Port", "") ; port used for sending the mail _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, $s_AttachFiles, $s_CcAddress, $s_BccAddress, $s_Username, $s_Password, $IPPort, $ssl) Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, $s_AttachFiles, $s_CcAddress, $s_BccAddress, $s_Username, $s_Password, $IPPort, $ssl) ;Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Username = "", $s_Password = "",$IPPort=25, $ssl=0) $objEmail = ObjCreate("CDO.Message") $objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>' $objEmail.To = $s_ToAddress Local $i_Error = 0 Local $i_Error_desciption = "" If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress If $s_BccAddress <> "" Then $objEmail.Bcc = $s_BccAddress $objEmail.Subject = $s_Subject If StringInStr($as_Body,"<") and StringInStr($as_Body,">") Then $objEmail.HTMLBody = $as_Body Else $objEmail.Textbody = $as_Body & @CRLF EndIf If $s_AttachFiles <> "" Then Local $S_Files2Attach = StringSplit($s_AttachFiles, ";") For $x = 1 To $S_Files2Attach[0] $S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x]) If FileExists($S_Files2Attach[$x]) Then $objEmail.AddAttachment ($S_Files2Attach[$x]) Else $i_Error_desciption = $i_Error_desciption & @lf & 'File not found to attach: ' & $S_Files2Attach[$x] SetError(1) return 0 EndIf Next EndIf $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort ; authenticated smtp If $s_Username <> "" Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password EndIf If $Ssl Then $objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True EndIf ; update settings $objEmail.Configuration.Fields.Update ; send the message $objEmail.Send If @error Then SetError(2) return $oMyRet[1] EndIf EndFunc
-
Scite search window disappears after every search
hypertyper replied to hypertyper's topic in AutoIt General Help and Support
The replace function has exactly what I need. I didn't think to look in the replace tool when I was thinking of repeating a search. I guess there is the F3 shortcut otherwise. Thanks a lot for you tip. Problem solved! -
What a great program! So many cool features and tricks to learn. Thanks a lot for sharing!
-
I've spent too much time trying to figure this out and I'm getting nowhere with it. I have a toolbar of the type ToolbarWindow32 but the Autoit tool can't identify separate buttons within the toolbar. I've found an old thread with some library that I read dealt with these problems which has since then been integrated in Autoit, but I can't get it done. I'm also not entirely certain that what I'm trying to do is actually possible so I'd rather ask. I have this toolbar that I can't take apart any further with Au3info. Can I press a particular button on there? Thanks
-
Scite compiles to x64?!?
hypertyper replied to hypertyper's topic in AutoIt General Help and Support
I love the internet. How was I ever going to figure that out on my own?!? Thanks so much! Btw, I get a destination file error when I try to "just compile" it but beta compile worked on the first go. Just in case somebody else runs into trouble. -
I've just installed the full version of Scite for Autoit and during installation activated the option of using 64bit where possible and I regret it now. I was just trying to compile a one line RuAs script and it's twice the size it used to be and doesn't work on my old Laptop. I couldn't find any options to compile in 32bit mode. Any suggestions? I've tried the search and google and found nothing. Thanks
-
What options does AutoIt give to display text?
hypertyper replied to hypertyper's topic in AutoIt General Help and Support
Tooltip is a start. The best place in this case would be the start button area I guess but when I put it there and press start it disappears. I guess I could just have it refreshed every second or so. I assume that would be no effort for the pc?!? What I'd like to do is what TClock does but do it myself Any ideas? -
I've seen the standard msgBox and splashOn I think and I was wondering what else there is. Is it possible to display something at the bottom right of the taskbar where the logos of the running apps are? I want to write a little tool that displays the weekday somewhere so it's always visible because I tend to forget When you pull the taskbar to make it bigger it shows the weekday in there. I'd like to achieve that in one line. edit: other problem is sorted, question about how to display things remains. Thanks