
Smitro
Active Members-
Posts
39 -
Joined
-
Last visited
Smitro's Achievements

Seeker (1/7)
0
Reputation
-
So I did some searching and found this... http://msdn.microsoft.com/en-us/library/office/aa223684(v=office.11).aspx As a result I made this. You're welcome to add it to the main file, hope it can be helpful to the community. If there is a better way of doing this please let me know. ;=============================================================================== ; ; Function Name: _PPT_SlideTextFrameSetIndent() ; Description: Sets the indent of a paragraph ; Parameter(s): $obj - Slide object ; $intTextFrame - Index of TextFrame on slide ; $intParagraph - Paragraph number to Indent ; $IndentLevel - Indent Level ; Return Value(s): On Success - Slide's text frame text set ; On Failure - @error = 1, Returns 0 ; Author(s): Smitro based on script by Toady (Josh Bolton) ; ;=============================================================================== Func _PPT_SlideTextFrameSetIndent(ByRef $obj, $intTextFrame, $intParagraph, $IndentLevel) If IsObj($obj) <> 1 Then SetError(1) Return 0 Else $obj.Shapes.Item($intTextFrame).TextFrame.TextRange.Paragraphs($intParagraph).IndentLevel = $IndentLevel Endif EndFunc
-
This is a great tool and helped my create some big slide shows. There is one thing I'm stuck on. How do I indent a point? For example. - Dot Point 1 - Sub Dot Point 1.1 I have tried @CRLF & @TAB but it just adds a Tab between the dot and the text. It doesn't bring the dot in. For example - Dot Point 1 - Sub Dot Point 1.1
-
Reading from additional Vista/Win7 Event Logs
Smitro replied to idbirch's topic in AutoIt General Help and Support
Did you find an answer to this? I'm trying to use one of these logs and can't figure it out. -
I think I might have found a way to do this... It can be logged in the event viewer. For Server 2008 R2 and Win7 you can log it here: Applications and Service Logs -> Microsoft -> Windows -> Print Service -> Operational So I need to be able to grab the information from there and import it into my database so I can play with the data. I've found _EventLog__Open() _EventLog__Read() and in the help, but how do I reference that log?
-
Hi all, I'm in the middle of writing a print queue monitor. I would like to be able to run this on our print server to be able to track who's printing large amounts and reduce the effect on the environment. I've done a fair chunck of it, but I'm finding that it's causing a bit of a load on the CPU. On average the 'spoolsv.exe' process sits at about 15-20% constantly when nothing is happening. I'm wondering if there is a way I can reduce this. I'm using the following code to access the print queue. ; Connect to Print Queue $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2") While 1 $AllPrintJobs = $objWMIService.ExecQuery ("SELECT * FROM Win32_PrintJob") ; Run through Print Jobs For $PrintJob In $AllPrintJobs ; Process any new jobs here Next Sleep (50) WEnd I've found that I have to catch the job several times in the queue. If I don't I can miss the total number of pages as the jobs spools. Is there another way of me getting the same information? Does the information go to another location after the print queue?
-
Perfect. Thank you!
-
Yes, but I need it to run update_time() every 2 seconds.
-
Only thing I'm stuck on is allowing the user to close the window. How do I make this work? If you hit the close button, nothing happens. While 1 Sleep (2000) update_time() $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
-
Thanks for the advice I'll give it a go.
-
Hi all, I'm wanting to build a simple app that counts down for about 20 mins and then plays a sound at the same time it should show the remaining time, and does the same thing over and over all day. I'm not sure what the best way to do this is. Idea 1: Set Timer. Sleep for 1 mins and check timer get status. Update Display. If Timer is found to equal 20 mins then play sound. Repeat. But will the timing be out using this method? Will the clock be waiting for the sound to finish playing before it's reset? Will the display be wrong because it takes time to process? Should the sleeps be ever 15 mins to be more accurate? Is there a better way to perform the same task?
-
Ok, I've given it a go, and all I seem to get is a "400 Bad Request (Invalid URL)" I've simplified it down to this untill I get it working. #include <HTTP.au3> $host = "intranet" $port = "80" $page = "" $vars = "action=upload" $url = $page&"?"&_HTTPEncodeString($vars) $socket = _HTTPConnect($host, $port) $post = _HTTPPOST($host, $page, $socket) $recv = _HTTPRead($socket,1) Any thoughts?
-
I all, I've been reading and reading... and I'm sure this can't be all this hard. I'd like to upload a file via http which will be recieved and managed using PHP. I'm guessing the best way would be to use the WinHTTP Functions. (http://www.autoitscript.com/forum/index.php?showtopic=84133&st=0) I get the besics of this, infact I've already written a program to send a post request and then used it's reply. But how do I send a whole file? So the basic script is this... #include "WinHTTP.au3" $hOpen = _WinHttpOpen() $hConnect = _WinHttpConnect($hOpen, "msdn.microsoft.com") $hRequest = _WinHttpOpenRequest($hConnect, "GET", "en-us/library/aa384101(VS.85).aspx") _WinHttpSendRequest($hRequest) _WinHttpReceiveResponse($hRequest) If _WinHttpQueryDataAvailable($hRequest) Then $header = _WinHttpQueryHeaders($hRequest) MsgBox(0, "Header", $header) EndIf _WinHttpCloseHandle($hRequest) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) What do I modify to get this sending a file?? The open request should be POST and not guest. And I'll need _WinHttpWriteData($h_openRequest, "somedata=something"). Can you help. (I tried to keep this post simple for everyone)
-
As per post above, I'd love it if someone could give us a POST example. I've tried, but with no luck. #include <http.au3> #include <array.au3> $host = "www" $port = "80" $page = "/test/post.php?test_get=got" $post_data = _HTTPEncodeString("data1=123") $socket = _HTTPConnect($host, $port) $get_req = _HTTPGet($host, $page, $socket) $post_req = _HTTPPost($host, $page, $socket, $post_data) $returned_data = _HTTPRead($socket) Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send($returned_data) When I run the above: 1. the GET variables work 2. The POST don't work 3. It only returns 7 characters of the page. I've tried changing the first line of the return to different charicters but it doesn't make and difference. Strangely though, if you set the page to a wrong location you'll get the full out put of a 404 error. This same problem occurs both when returning as an array and a string. Please help, I feel I'm so close! (Is this a false hope)
-
Hi all, I'm trying to make a screensaver that does the following: ; At the start of the screensaver $ie = Run ("C:\Program Files\Internet Explorer\iexplore.exe -k http://www.autoitscript.com") ; At the end of the screensaver ProcessClose ($ie) So basicly, it opens up a website in Kiosk mode. I've looked through a few of the screensaver examples but can't get any to work. Can someone please help me?
-
This is another one of those "I can't believe I spent a whole day working on that" moments. After trying all sorts of things all day long I finally worked it out. The machine I was using for testing acctually had a stuffed up Default user profile. I tried it on another machine and it worked without a problem. I'd acctually been testing on 2 computers, and both had stuffed default profiles, I presume this is from some software I tried out to see if it would do this for me before I wrote my own. So I coppied a new profile over the defaults and we're all sweet and working. If only I'd known before wasting a whole day on it.