Jump to content

hazed

Active Members
  • Posts

    43
  • Joined

  • Last visited

hazed's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Got it, Thank you, I had to figure out the what name of folder I wanted to access. All the examples had "*Outlook-UDF-TestTargetFolder.." So I was tryng to mimic it by doing "*Orders" when I only needed to do "Orders" Thank you, Now the fun begins
  2. Thank you, maybe my question is if my default mailbox is hazed@xxxx.com, but I also monitor Orders@xxxx.com as a second mailbox, what is the folder in _OL_itemfind This is where My issue is, what I was getting when I ran test were just data from hazed@XXXX.com, i believe.
  3. I think I want to run a script to check all unread mail in this Mailbox, each piece of mail has a web link in it that I need to open and print, then I want to take the subject of the mail and add a status like "-Printed 2/24/2012" to the end of subject. then mark it read.
  4. First, I might have missed this somewhere or I just don't get how to point to a certian mailbox, but What I'm trying to do is create a rule to run against a Shared Mailbox. Under my profile, I have 3 mailboxes, I want to create a rule to get all new mail in the mailbox and "process the requests". I can't seem to beable to figuire out how to get the folder infomation from the second mailbox.
  5. consolewrite(_WinAPI_GetFocus()&@tab& GUICtrlGetHandle($input[$x][62])& @tab&$ilParam&@lf) returns when I'm sitting on the control. 0x0012106E 0x00120ACE 0x00120ACE - which to me means that I ilParam = GUICtrlGetHandle($input[$x][62]) and not _WinAPI_GetFocus(). This isn't helping much. to put things into perpective. $input[$x][62] is the handle of the combo in tab($x) which tab is created only if needed and it's an exact duplicate of the previous Tab. (sort of like do you have more, here is page 2,3,4,5...etc) I guess when I create the comboboxes, I can create an array which maps the what the GUICtrlGetHandle() of each comboboxes in each tab when I create the tab. And then do an arraysearch or something similar to find which combobox I'm dealing with and use different WM_edit_changed() based upon the index. So comboarray[$x][1] = GUICtrlGetHandle($input[$x][60]) comboarray[$x][2] = GUICtrlGetHandle($input[$x][62]) comboarray[$x][3] = GUICtrlGetHandle($input[$x][72]). Since I know the $X, for $i=1 to 3 if comboarray[$x][$i] = ilparam then exitloop next .... Switch $iCode Case $CBN_CLOSEUP Case $CBN_KILLFOCUS WM_validate() Case $CBN_EDITCHANGE switch $i case 1 WM_edit_changed_combo1() case 2 WM_edit_changed_combo2() case 3 WM_edit_changed_combo3() endswitch EndSwitch or something like that.... wish I could find a better way.
  6. I'm trying to use $WM_command to do some creative Auto_complete in a combobox, This works when i Force $hWndCombo = GUICtrlGetHandle($input[$x][62]) where $input[$x][62] is the handle of the combo. What I would like is to reuse this code, for multple combo boxes, I can get windows id of the other windows using GUIGetCursorInfo, but not any of the combo boxes, they are always returned as 0. So How can get the ID of a the Combobox that my cursor is at?
  7. Well the solution is 3rd party drivers. (Free) SeaGullscientific.com has drivers for Label printers that work with Windows programs. The only issue I had is they print upside down from the Zebra universal drivers that work on XP. The 180 degree portrait needs to be selected on the default print setting. Everything now works the same on XP as it does Windows 7 as far as the printing goes. Again, thanks for the help and this UDF and .dll has made debugging this easier. Thank you.
  8. It's something with these zebra drivers, I used the "New" Zebra (MS certified) drivers on an XP x32 and I get the same thing, other than _printgetprinter returns the selected printer correctly. but for it to work, I am forced to Hit an "OK" on a _printsetPrinter. I'm not sure what's going on with this driver. The old XP drivers works beautiful. Is their a way to run _printsetPrinter automatically selecting [OK] (possibly all hidden) I know I'm grasping at straws, but this Zebra driver is terrible.
  9. I'm using Win7 X64. compiling Autoit code in 32bit Mode. The Zebra Drivers I believe (even though they are Microsoft Certified) Does not act correctly. You sample code where you select a printer, then check the printer you selected, always comes back as "None" if I chose Zebra, but comes back correctly when I choose the HP Laser Printer. I just find it strange, that it works if I force a SetPrinter command, but not a Selectprinter. I also find it strange that under XP x32 with old (non-Microsoft certified) drivers...the one that came with the printer works great. But I have to Modernize to the Windows 7 X64 world and these new zebra print drivers aren't working and Zebra hasn't given me much help, other than memtioning that the drivers passed "Microsoft Certification". I might try to load a machine with Win7 X32 and test, but that will take a day or two
  10. Martin~ I think I found a bug, which is why I'm having problems with the zebra drivers. I'll enclose my code: Func startprinter($cpy) $hp = _PrintDllStart($mmssgg);this must always be called first If $hp = 0 Then ConsoleWrite("Error from dllstart = " & $mmssgg & @CRLF) Exit EndIf $printername = $prtr $printer = _PrintSelectPrinter($hp, $printername, False) ;$printer = -1 If $printer = -1 Then _PrintSetPrinter($hp) EndIf _PrintStartPrint($hp, $cpy) $pght = _PrintGetpageheight($hp) - _PrintGetYOffset($hp) $pgwd = _PrintGetpageWidth($hp) ;- _PrintGetXOffset($hp) ; adjusted elsewhere EndFunc ;==>startprinter Notice the commented out "$printer = -1" line. Well the logic goes. I select the printer, $printername, The default printer setup is loaded if Select errors, then I open a SetPrinter Dialog. Startprint with a specified # of copies. What happens is, Printer is selected, defaults page settings are all messed up and Startprint only prints 1 copy, no matter what. If I uncomment the "$printer = -1" line and force a setPrinter dialog. and just select it, as _PrintSelectPrinter($hp, $printername, False) has it selected at this time. Prints the right number of copies and the Page settings are correct. If I'm doing something incorrect, please advise Thank you
  11. The Switch worked, if True then it sets the default printer, if False it just selects it. Still having issues with zebra window drivers...and Page size...etc.
  12. I have been using this for a long time to print labels, Kudos Just downloaded the November 2009 edition, to fix a label printer problem I was having in Windows 7 as I am trying to port my code to a Windows 7 environment (with bug fixes) The November 2009 edition, fixed my problem, but added another. For some reason _printselectprinter is changing my default printer to the printer of I want to print to. It's easy enough to program around this, but this doesn't match what the headers say _printselectprinter claims to do. This problem is not OS related as it broke in both XP and Win7. If you can fix this, I will appreciate it, The work around is to get _printgetprinter before selecting it, then select it back when down. Not pretty. Thank you
  13. Never Mind - I solved it. Not sure why, but I created a dummy hidden button on each tab but called ot the same, if I rem out that Dummy Button it all works. ;$button0 = GUICtrlCreateButton("dummy", 248 + $xx, 655, 100, 24) ;GUICtrlSetState(-1, $GUI_DEFBUTTON + $gui_hide) I tried to create the button the same way as the other 2 buttons, but it does the same thing. $b3[$t] = GUICtrlCreateButton("dummy", 248 + $xx, 655, 100, 24) GUICtrlSetState(-1, $GUI_DEFBUTTON + $gui_hide) If I set GUICtrlSetState($b3[$x], $GUI_DEFBUTTON) after I get currrent Tab it works. While 1 $Ntabs = _GUICtrlTab_GetItemCount($tab[0]) $x = _GUICtrlTab_GetCurSel($tab[0]) + 1 GUICtrlSetState($b3[$x], $GUI_DEFBUTTON) $nMsg = GUIGetMsg(1) Thanks
  14. What I am finding is that the "ENTER" key is not functioning on previous tabs on the big program. I do not use Hotkeys, and I even tried to use Hotkeyset("{enter}") to reset it and it didn't work. Any Other suggestions on how the CR is being disabled and how to force it. If I send you the Code, Well you will need a lot of cleaning up just to run it. It's tied to MSSQL with ini file and registry settings. So there will be a lot of remming out code. but I've tried remming out all the cases except the 2 cases like the help.au3 in the loop, but I find the same issue. I remmed out all code that won't run without the said envirornment. And this code doesn't work. The test that is repeatable is: Put anything into Asset # column hit [Enter] (should reply back with Works) Select [Next Sheet] optional ( Put Anything into Asset # column and hit [Enter] - show it works there ) Goto TAB 1 Put anything into Asset # column hit [Enter] ([Enter] will not work- Tab does though) Go Back to Tab 2 Put anything into Asset # column hit [Enter] (should reply back with Works) Have fun : itcs_v2.tst.au3
×
×
  • Create New...