
john925
Active Members-
Posts
50 -
Joined
-
Last visited
Everything posted by john925
-
3-state check boxes in listview/treeview
john925 replied to blindwig's topic in AutoIt GUI Help and Support
I'm also interested in this. I'd like something similar to backup software where a checked item means that all sub-items are checked, an unchecked item means that all sub-items are unchecked, and a greyed-out-but-checked item means that some but not all sub-items are checked. john -
So far I've just been an end user who loves AutoIt. I'm not anywhere close, but hope to contribute when I have the skills to do so. If there is a reasonable way to pursue violations of the GPL license that's my first choice for how you should respond. If not, it's up to you to decide what you're willing to put up with. I'd only want to see completely closed code if everything else fails to keep the enormous amount of work you and the other developers do from being ripped off. In your place I'd want to go with option three.
-
I'm using INetGetSize() and INetGet() on a twice daily basis to test for version updates (i.e. file size changes) and download new file versions as they become available. It may make a difference that the files I'm working with are all binary. In any case my downloads have been very reliable in the sense being discussed here. I have had INetGet() lock up indefinitely when it can connect to the server but doesn't have correct permissions to download the file. edit: fixed spelling errors edit #2: I'm fairly certain the problem is permissions but not 100% certain.
-
How are most of you running AutoIt?
john925 replied to stompbox's topic in AutoIt General Help and Support
Almost entirely compiled for distribution at work. -
I like CyberSlug's method. It's much shorter than the current names but still completely understandable.
-
Thanks JdeB! I was going to start writing my own versions of _DateAdd and _DateDiff but found this thread instead. I'm constantly amazed at how much you and the rest of the AutoIt community give of yourselves. john925
-
GUIRead("date control") return value
john925 replied to john925's topic in AutoIt GUI Help and Support
The solution is GUISendMsg(). The problem was finding the right parameters but I found them on Microsoft's MSDN web site. In this case I needed: GUISendMsg($control_handle, $message_constant, 0, "date format string") I copied an example out of the AU3 help to make a quick date control that outputs it's return value in a message box for testing. Without using GUISendMsg() the return value is: month day, year. Using GUISendMsG() the return value changed to: day-of-the-week, month day, year. A format string of "yyyyMMdd" would return the date in the exact format I need. Unfortunately, the message makes the control display the date in the same format so it would look odd. #include <GUIConstants.au3> $DTM_SETFORMAT = 0x1000 + 5 ;+50 instead of +5 for UniCode GUICreate ( "My GUI get date", 200,200,800,200) $date=GUICtrlCreateDate ("1953/04/25", 10,10,185,20 ) $n = GUISendMsg($date, $DTM_SETFORMAT ,0, "ddd, MMMM dd, yyyy") john925 -
GUIRead("date control") return value
john925 replied to john925's topic in AutoIt GUI Help and Support
Thank You! My long date format is different. I need to think about the hidden potential problem that was there all the time. The joys of customization! I suppose I can get the long date format string out of the registry to see what goes where. Thanks again, john925 -
I'm not sure if this is a bug or a Microsoft feature. A program I wrote last July broke when I updated Windows XP sp1 to sp2. I'm using a date control for input to set an expiration date. With sp1 installed using GUIRead() with the control returns a string containing the day of the week, the month, the day of the month, and the year. With xp2 installed the returned string only contains the month, the day of the month, and the year. I separate the components using stringsplit() and losing the day of the week as an array element was causing the problem. The program has to work with both sp1 and sp2 so I've updated it to test for the number of array elements then act accordingly. But should reading the date control do this? If it's a strictly Microsoft thing then a warning in the help entry for GUICtrlCreateDate() and/or GUIRead() would keep other people from having the same problem. john925 ps. I'm using a 103 beta version downloaded yesterday.
-
Can you get information about the mailserver by looking at the header from a piece of mail sent to you from this system?
-
While you can use 'blat -install' to create registry entries for blat to use you don't have to. Ezzetabi's function uses command line options that override the registry entries anyway. If the function is missing an option that Lotus Notes needs then it can be added to the function. Personally, I don't want all that information in the registry unless I'm the only person with access to the computer. john925
-
@ezzetabi I've successfully used _EmailSend() to send email through an SMTP server that requires authentication. john925
-
will ie open when a user is not logged in?
john925 replied to guru's topic in AutoIt General Help and Support
@guru I know console applications can run without any account being logged in. I run a .cmd script as a service on about fifteen Win2K servers. The script is a loop with a two minute pause that runs various console applications based on changing network conditions. If your problem with IE is caused by it having to open a GUI window then using a console based browser like lynx instead of IE might do what you want. john925 ps. The service runs under the system account. -
@ezzetabi Thanks! I've just come up with the need to send short emails from an autoit script and the SMTP server requires authentication. Your function should do exactly what I need! john925
-
@this-is-me Thanks! There was a mistake in how I was building the path to the graphic files. Once I saw it, it was embarassingly obvious. john925
-
I'm using three images in a menu using GUICtrlCreatePic(). The menu always works properly but the images aren't showing on three laptops I've tested it on and they aren't showing using Virtual PC 2004. (The graphics do show on the machine Virtual PC is running on under the native OS.) All the desktops and one laptop I've tested show the images. I've used both .jpg and .bmp files for the images. All machines are running WinXP Pro with SP2. I'm guessing the problem is with the graphics chipsets. The laptop that works is a dell with an nvidia chipset. I don't have the other laptops anymore but one was an ATI Radeon 7xxx chipset and another was a Trident chipset. Does anyone know anything about this problem? Thanks for any help you can give. john925
-
I've been using Crimson Editor but you're making Scite much too good not to switch! john925
-
Just want to add my voice to the chorus. This would be great! john925
-
Send RightCtrl ScrollLock key combination?
john925 replied to john925's topic in AutoIt General Help and Support
@msb5150 Look here for the registry settings: http://www.help2go.com/article149.html I guess I'll try a different approach. Thanks to all for your help. john925 -
Send RightCtrl ScrollLock key combination?
john925 replied to john925's topic in AutoIt General Help and Support
I should say what I'm trying to accomplish. I want to create a Blue Screen of Death on demand. You can create a registry key in Win2K and WinXP that allows you to blue screen by typing RightCtrl-ScrollLock twice. Wanting to do this must seem a bit odd, but it's to create a time limit on how long a bootable CD (Bart PE) can be used without it being obvious you can bypass the time limit by resetting the system clock. If you know another way to create a blue screen at will please let me know. john925 -
Send RightCtrl ScrollLock key combination?
john925 replied to john925's topic in AutoIt General Help and Support
@cowsmanaut Thanks for the suggestion. I've tried {SCROLLLOCK toggle} in place of {SCROLLLOCK} with no better result. john925. -
Send RightCtrl ScrollLock key combination?
john925 posted a topic in AutoIt General Help and Support
I'm trying to use send() to send a combination of the right Ctrl key and the scroll lock key twice in succession. My last attempt was: Send("{RCTRL down}{SCROLLLOCK}{SCROLLLOCK}{RCTRL up}") but I've tried as many combinations as I can think of. Anyone have a suggestion? Thanks, john925 -
Jon, Here's code similar to my application but without any functionality. It sets the second radio button to be selected then sets focus on the first input box. When I tab through the controls and get to the radio buttons the first radio button, not the checked radio button, has focus first. Continuing to tab moves focus through all the radio buttons in the group then on to another control. This behaviour changes after I select a radio button by 1) tabbing to it then pressing the space bar, 2) tabbing to the radio button group and selecting a radio button with the cursor keys, or 3) selecting a radio button by clicking on it. After actively selecting a radio button and tabbing out of the radio button group, tabbing back into the radio button group highlights the currently selected radio button rather than the first radio button, pressing tab again highlights the next non-radio button control. To use the keyboard to select a different radio button in the group you tab into the radio button group, which highlights the selected radio button, then use the cursor keys to move up and down through the radio buttons. I'd like to see the latter behavior all the time. My current workaround is to set focus on the radio button I want initially selected, send the {SPACE} key to select it, then set focus on the input box I want users to start in. Thanks for looking at this. john #cs - ### Generated by AutoBuilder 0.4 -- do not modify ### 394 278 0 1 0 0 0 0 1 0 2 0 0 0 0 3 0 0 group $group_1 Group 1 30 90 120 160 0 0 radio $radio_1 Radio 1 50 120 70 20 0 0 radio $radio_2 Radio 2 50 150 60 20 0 0 radio $radio_3 Radio 3 50 180 60 10 0 0 group -99 -99 1 1 button $button_1 Button 1 30 20 120 40 0 0 input $input_1 Input 1 200 20 160 30 0 0 input $input_2 Input 2 200 70 160 30 0 0 #ce - ### End of Dump ### ;Script generated by AutoBuilder 0.4 #include <GUIconstants.au3> ;#include <gui_include.au3> Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 392,273,(@DesktopHeight-392)/2, (@DesktopHeight-273)/2 , 0x04CF0000) $group_1 = GUISetControl("group", "Group 1", 30, 90, 120, 160) $radio_1 = GUISetControl("radio", "Radio 1", 50, 120, 70, 20) $radio_2 = GUISetControl("radio", "Radio 2", 50, 150, 60, 20) $radio_3 = GUISetControl("radio", "Radio 3", 50, 180, 60, 10) GUISetControl("group","",-99,-99,1,1) ;close group $button_1 = GUISetControl("button", "Button 1", 30, 20, 120, 40) $input_1 = GUISetControl("input", "Input 1", 200, 20, 160, 30) $input_2 = GUISetControl("input", "Input 2", 200, 70, 160, 30) GuiShow() GUISetControlEx($radio_2, $GUI_CHECKED) GUIwrite($input_1, $GUI_FOCUS) While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = 1 ;;; Case $msg = $group_1 ;;; Case $msg = $radio_1 ;;; Case $msg = $radio_2 ;;; Case $msg = $radio_3 ;;; Case $msg = $button_1 ;;; Case $msg = $input_1 ;;; Case $msg = $input_2 ;;; EndSelect WEnd Exit Ps. I'm not certain what the "Case $msg = 1" is doing in the while loop and have tried commentinging it out with no apparent change in how the application runs.
-
Last Update (I hope!)- I've got the most recent unstable AutoIt release now and tabs work properly in combination with GuiMsg(0). It also changed how my group of radio controls work. I have to shift focus to the first radio control (the one I want selected by default), send a space to select it, then shift focus to my first password input box (where I want the user to be when they start working). Then I start my main processing loop. The radio controls act oddly with tabs until after one of then has been actively selected. john
-
@Cyberslug I spoke too soon. I hadn't closed my application when I replied and then found I couldn't close it by clicking on the "X" in the top right corner of the window. I'll try again once I get the most recent unstable AutoIt release. @Valic Thanks for the information. I both compile and run my executible from within Crimson Editor and have it set to run the executible through cmd.exe. I wouldn't have thought to test it by double clicking on the executible. john