
confutatis
Active Members-
Posts
32 -
Joined
-
Last visited
Everything posted by confutatis
-
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
When I run the VBscript, I get the error: "the specified module cannot be found"... So I guess my question is, how do I fix a broekn COM object? David -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Still haven't found a solution, so thought I would bring this back up to the first page in hopes that someone may have an idea about how I can fix this problem. David -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
I'd rather not have to reload XP. There has to be an answer. And as Larry Fine said as his head popped out from under the grass, "I'll find this or else!" David -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
And the script is working on all the other XP Pro machines I have here, so obviously, it's a problem with my PC only--so the question I can't seem to answer is--Where? David -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
So it must be some kind of security setting either in my local profile or the network profile. The search begins... David -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Thanks for the post...I just connected to my XP home computer and ran the shell.application script--and it worked. Apparently, this has something to do with XP Pro security. David -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Just bringing this back up front...wondering if anyone else has any ideas. I've been searching the Web for a solution and I have found some articles related to the shell.application object and XP SP2 security. Has anyone else read about this? Most of the articles mention something about Active Desktop needing to be enabled (but not necessarily running) in order for a programmer to use the shell.application object. Also, there's mention that NT must also have Active Desktop enabled to be able to use this object. Any thoughts, comments, solutions? David -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
No, still no object...I tried the same script on an NT machine and got the same error. -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Nope...but thanks for all the suggestion. -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Reinstalled as advised, but still getting the error that it's not an object variable...Unbelievable! -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Comes back with -2147024770 for the error code, and then the same error. Could this have anything to do with XP SP2 and security? -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Seems like I create any object but the Shell.Application object...UGH! -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Upgraded....still no go...Very frustrating. -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Comes back 3.1.1.75 -
My continuing brain freeze...
confutatis replied to confutatis's topic in AutoIt General Help and Support
Yeah, I'm using the beta version...Very odd. -
Hello again... Here's a simple script: $obj=ObjCreate("Shell.Application") $obj.Open ("C:\Program Files\") When I run the script, I get this error: $obj.Open("c:\program files\") $obj^ERROR Error: Variable must be of type "Object". I have no clue why it's telling me this. I'm running XP and the AutoIt beta. Please put a heat gun to my brain by telling me what I've done wrong. Thanks, David --As a matter of fact, I went to the AutoIt3 help documents under ObjCreate and tried running the example file and received the same error.
-
Resetting a GUICtrlCreateInput field
confutatis replied to confutatis's topic in AutoIt General Help and Support
That's it...Much obliged. David -
Hello to all, I know this must be a simple solution, but I just can't seem to find it. I have a script that asks the user for a date. I then test that date to be certain it's valid. If it's not, I'd like to reset the input field, bring focus back to it and let the user input it again. Here's the script: $time_cards=GuiCreate("Time Cards", 300, 200,(@DesktopWidth-300)/2, ((@DesktopHeight-200)/2)+10 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) GUISetState() $t_label = GuiCtrlCreateLabel("TIME CARDS UPDATED THROUGH: ", 10, 40, 190, 20, $SS_CENTER) $t_input_udate = GuiCtrlCreateInput("", 50, 70, 45, 20, $ES_NUMBER) GUICtrlSetLimit($t_input_udate,6) GuiCtrlSetState($t_input_udate, $GUI_FOCUS);start with cursor in this textbox $t_submit_button = GuiCtrlCreateButton("SUBMIT", 70, 150, 60, 25, $BS_CENTER) GuiCtrlSetState($t_submit_button, $GUI_DEFBUTTON) $t_cancel_button = GuiCtrlCreateButton("CANCEL", 160, 150, 60, 25, $BS_CENTER) while 1 $t_msg = GuiGetMsg() Select case $t_msg=$GUI_EVENT_CLOSE or $t_msg=$t_cancel_button Exit case $t_msg=$t_submit_button $t_udate=GUICtrlRead($t_input_udate) $t_udate=StringMid($t_udate,1,2)&"/"&StringMid($t_udate,3,2)&"/"&StringMid($t_udate,5,2) $t_val_udate="20"&StringMid($t_udate,7,2)&"/"&StringMid($t_udate,1,3)&StringMid($t_udate,4,2) if _DateIsValid($t_val_udate)=0 then GuiCtrlSetState($t_input_udate, $GUI_FOCUS) ContinueLoop endif ExitLoop EndSelect WEnd Advice would be greatly appreciated. David
-
Can a "Run(@comspec..." window be hidden?
confutatis replied to confutatis's topic in AutoIt General Help and Support
On the subject of the same script... When I go ahead and run this script, for some reason, the "plink.exe" process doe not terminate--I can still see it in Task Manager. Any ideas why it would not end along with the script? David -
Can a "Run(@comspec..." window be hidden?
confutatis replied to confutatis's topic in AutoIt General Help and Support
Hello and thanks for the reply... You know, I swear I tried that and it didn't work...I just tried again and now the window is hidden. Sorry for the waste of space for a question I had already answered. David -
Hello to all, I'd like to be able to run "plink.exe" using the command processor. The problem I'm having is I don't want the CMD window to be visible to the user while it's running. I can't figure out how to hide the window--if it's possible at all. Here's the code: #include <GUIConstants.au3> #include <file.au3> #include <string.au3> #include <date.au3> #include <constants.au3> ;#include <ie.au3> Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) $file1=FileOpen("\\evep\test$\pc_log.txt",1) $pc_name=@ComputerName $begin = TimerInit() Run(@ComSpec & " /C \\evep\test$\plink.exe -load "& '"ept via internet"'&" -l "&'"xxx"'&" -pw &'"xxxxx"'&"") sleep(15000) $dif = TimerDiff($begin)-15000 Send("6 {ENTER}") $rec1=$pc_name&"--->"&@TAB& $dif FileWriteLine($file1,$rec1) FileWriteLine($file1,"=================================================================="&@CRLF&@CRLF) FileClose($file1) I don't want the users to "get in the way" of the running plink command. Any ideas? David
-
Maximize and Show Window
confutatis replied to confutatis's topic in AutoIt General Help and Support
That did it...Thanks for the help! David -
Hello to all, Now that I was able to resolve my problem of minimizing my AutoIT menu to the tray, a smaller problem has popped up. I've included a piece of the code here: Select case $opt[0]="" ContinueLoop case $opt[0]=$GUI_EVENT_CLOSE exitloop case $opt[0]=$GUI_EVENT_MINIMIZE GUISetState(@SW_HIDE) Opt("TrayIconHide",0) while 1 $trayMsg=TrayGetMsg() If $trayMsg = $tlist_2 Then exitloop 2 EndIf If $trayMsg = $tlist_1 Then GuiSetState(@SW_SHOW) Opt("TrayIconHide", 1) exitloop EndIf WEnd The var $tlist_1 is a tray menu item which restores the window. The item selection pops up when the user right-clicks on the tray icon. But when the item is selected, instead of maximizing the window, the window minimizes to the standard task bar. Curiously, I set the default to this item (traySetItemState) and with a double-click to the tray icon, the window does maximize properly. I've tried changing the GuiSetState to basically every @SW_ macro to no avail. What am I missing here? Thanks for the help in advance, David
-
Specifically, what I'd like to do is minimize my GUI window to the system tray when the user clicks on the minimize button. David
-
Hello to all... I'm wondering if there is a way to minimize an AutoIT GUI window to the tray, instead of the task bar. This would make for less clutter. Regards, David