Jump to content

newcoder

Members
  • Posts

    10
  • Joined

  • Last visited

newcoder's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thank you very much @kaotkbliss, your assistance and patience is very much appreciated. Your code got me on track and I can now continue with the rest of my project.
  2. $GUI_DISABLE is not available so I have @SW_DISABLE which may be my problem, but from what I saw in the extended style table I thought this was the correct choice. I also added several includes as I'm not sure which includes these variables yet. This snippet shows what I'm talking about - button1 is invisble and button2 is not disabled. #Include <Constants.au3> #include <GUIConstantsEx.au3> #include <ButtonConstants.au3> #include <WindowsConstants.au3> Dim $b1, $b2, $bx, $hGUI $hGUI = GUICreate("Test",200,200) $b1 = GUICtrlCreateButton("Button1",20,25,50,15,-1,@SW_DISABLE) $b2 = GUICtrlCreateButton("Button2",20,50) $bx = GUICtrlCreateButton(" Exit ",20,100) GUISetState() GUICtrlSetState($b2,@SW_DISABLE) While 1 $msg = GUIGetMsg() Select case $msg = "" case $msg = $b1 MsgBox(0,"","button 1") case $msg = $b2 MsgBox(0,"","button 2") case $msg = $bx Exit EndSelect WEnd
  3. Re-reading the posts I see your both showing $GUI_DISABLE instead of my @SW_DISABLE, which may be my problem. What is the value of $GUI_DISABLE?
  4. @kaotkbliss I had <GUIConstantsEx.au3>, but not <buttonConstants.au3> - I added it but it did not help. I had also tried guictrlsetstate to set the state - for me it isn't changing anything. @AppTux you have a variable your passing ($GUI_DISABLE) that I don't have, what is its value? Thanks for the quick responses.
  5. I would like to have a button grayed out until a certain condition is met; The following doesn't show any button, so I assume its invisible; $b1 = GUICtrlCreateButton("Button1",20,20,20,15,-1,@SW_DISABLE) What is the correct extended style to disable and then re-enable a button?
  6. Maybe I'm not understanding your problem, but from my view of the headers the client and server have the same time, but not the same timezone offset. The time for each is; Wed, 3 Dec 2008 17:49:49 -0600 Wed, 3 Dec 2008 17:49:49 -0000 which would result in a difference of 6 hours between the client header and the servers. If the server was really '-0600' different then the hours would be also be different by 6 hours. If I misunderstood, then I apologize and will be quiet.
  7. I'm sure I've seen a sample script on here somewhere, but I've searched all over and can't locate it now. There are lots of scripts that will send email - I don't want to send email, but receive it. We have a business application that sends email status updates to an email address where someone manually stores the information received. Instead of this manual process I'd like to point the business application at my own smtp server that would receive and process the messages automatically as they arrive. Does anyone recall an example script that will receive email?
  8. I can answer most of my own questions with online documentation and searching the forums, but I didn't see anything relevant in the forum and do not know what to took for in the documentation. I'd like to have a disabled save button that becomes enabled when the text in an edit control is changed. I can't use GUIOnEventMode as I still need to watch GUIGetMsg. I tried watching GUIGetMsg for the ControlID of the edit control which was almost usable, but it does not respond till the control losses focus instead of when it gets focus. Sorry I don't have any sample code, but I don't know how to do this in Autoit. What can I use to detect changes to the edit control? Thanks.
  9. Outstanding - works great. Thanks.
  10. This script was submitted a couple of years ago and looks great, but I'm finding its accuracy to be off a bit and its been way too long since doing any bitshift's to figure out why. The test will show True for addresses in the scope, but also returns true for items outside that should be False. The following should be False as the IP is outside of the scope 192.168.2.0-192.168.2.255 $test = _IPInRange("192.168.1.105", "192.168.2.0/24") Tests with some smaller subnets such as /29 seemed to work, but /25 and larger subnets failed. Does anyone know where the error is in this script or know of another way to determine if an IP is within a certain range?
×
×
  • Create New...