Jump to content

zeroman

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by zeroman

  1. I just wrote it. There may be some simpler versions. HotKeySet("{ESC}", "_Quit") HotKeySet("z", "_Go") AutoItSetOption("MouseClickDelay", 167) While 1 $Press = 0 WEnd Func _Go() If $Press = 0 Then $Press = 1 Else $Press = 0 EndIf While $Press = 1 $MousePos = MouseGetPos() MouseClick("primary", $MousePos[0], $MousePos[1], 6, 0 ) WEnd EndFunc Func _Quit() Exit EndFunc ;==>_Quit
  2. I think this should OK. Anyone can test it for me in a local OR network OR multiple printers? HotKeySet("{ESC}", "_Quit") $counter = 0 $intPreID = 0 while 1 $wbemFlagReturnImmediately = 0x10 $wbemFlagForwardOnly = 0x20 $colItems = "" $strComputer = "localhost" $Output="" $Output = $Output & "Computer: " & $strComputer & @CRLF $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2") $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_PrintJob", "WQL", $wbemFlagReturnImmediately + $wbemFlagForwardOnly) If IsObj($colItems) then For $objItem In $colItems If $objItem.JobID <> $intPreID Then ConsoleWrite("JobId: " & $objItem.JobId & @CRLF) $counter = $counter + 1 MsgBox(1,"",$counter) $intPreID = $objItem.JobID EndIf Next EndIf WEnd Func _Quit() Exit EndFunc ;==>_Quit
  3. To water: Thank you for your quick response, I've run the class but cant find needed information To 99ojo: Thanks. I just ran the .au3 by declaring some variables without the included. No problem I just want to show the number of printing(or print job?) per day. And save the numbers into a text file only. Not the information about print jobs.
  4. 1. It is a local printer which doesn't share with other PC 2. It is a thermo receipt printer (EPSON EU-T400) 3. I'm sorry that I don't know what is SNMP. How can I check the SNMP is enabled? If it is enabled, how can I get the statistics information? Thank you very much Chris YEUNG
  5. Hi guys, AutoIt is pretty good for developing self-use program. I would like to write a program which counts the print job that the computer execute everyday. And the data should be recorded in a text file. How could I monitor the printer (the only one) for the number of printing per day?? Thank you for your kindly response. Chris YEUNG
  6. water: You are great! It works perfectly! Thank you I will close the IE with some javascript in my web.
  7. To Authenticity: Thank you. Can I hide the navigation bar?? Because I want it to be used in somewhere like cafe kiosk. To zac23: Thank you. It works on my machine too. But I don't want a theater mode but a Kiosk mode. Thought the problem is still here. anyway. Thank you for both of your help~~
  8. Are there any other way to open an IE in kiosk Mode (full screen with not toolbar, addressbar or title bar,etc)??
  9. Thank your for your quick reply. I've tried the above script which is work. However, as I said before, the javascript function doesn't work if I use the above script to open IE. javascript in my page: --------------------------------------------- top.window.opener = top; window.open('','_parent',''); top.window.close(); window.open("http://www.google.com","", "toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizeable=0,fullscreen=1,left=0,top= 0"); ---------------------------------------------
  10. Dear all, How can I open an IE in Kiosk mode which is equal to "C:\Program Files\Internet Explorer\iexplore.exe" -k "http://www.autoitscript.com" Moreover, I have a javascript in my page to close current IE and open a new IE in full screen also. Is the suggest method work prefect for this javascript also?? thank you
  11. I'm sorry that I cannot catch the activation of test1.htm #include <IE.au3> $IE1 = _IECreate("http://localhost/test1.htm") _IELoadWait($IE1) Do ;; Until WinActive("test1 title - Internet Explorer") = 0 $IE2 = _IECreate("http://localhost/test2.htm") _IELoadWait($IE2) WinActivate ("test2 title - Internet Explorer")
  12. I wanna switching between two web site (http://loacalhost/tes1.htm AND http://localhost/test2.htm). Only one web site could be shown in the same time. For example, test1.htm shown, after it closes, test2 shows up. after test2 closed, test1 shows up. Can I do this ? I cant do it in a loop #include <IE.au3> $IE1 = _IECreate("http://localhost/test1.htm") _IELoadWait($IE1) If WinExists("test1 title") Then ;; Else $IE2 = _IECreate("http://localhost/test2.htm") _IELoadWait($IE2) Endif If WinExists("test2 title") Then ;; Else $IE1 = _IECreate("http://localhost/test1.htm") _IELoadWait($IE1) Endif
  13. I'm developing a Kiosk like system which use IE as a platform to show those web site I used a javascript in the web site to close the IE after using the system. I would like to ask if there is any method to monitor the IE and preform an action that when the IE closed then the system opens a new IE or preform other action?
×
×
  • Create New...