Custom Query
Results (55 - 57 of 3874)
Ticket |
---|
#56 |
Description |
Hi, GaryFrost openend a thread how to submit udfs. I searched through my snippets and found some pieces of code which I'd like to discuss whether they can become a macro/udf ... before submitting them btw. somebody creates a nice piece of code for achieving the goal. Before flaming me, YES I know they are not perfect. The code is just as examples!
1. Global $objWMIService = objget("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") Global $colSettings = $objWMIService.ExecQuery("Select * from Win32_OperatingSystem") For $objOperatingSystem in $colSettings $Type = StringMid($objOperatingSystem.Caption, 19) MsgBox(64, 'Ouput of Windows Type', "Type : "& $Type) Next MsgBox(0,"",_getDNS()) Func _getDNS() Local $dns_A = StringRegExp(StdoutRead(Run(@ComSpec & " /c nslookup", "", @SW_HIDE, 2)), '(?s)(?i)server: .*?\.(.*?)(?m:$|\r)', 1) If IsArray($dns_A) Then Return $dns_A[0] Return SetError(1) EndFunc
Mega |
#57 |
Description |
I am trying to automate a windows application which contains hyperlinks and i couldn't find any way to perform action on hyperlinks |
#58 |
Description |
Addition of the "BS_SPLITBUTTON" type button. http://msdn2.microsoft.com/en-us/library/bb775951(VS.85).aspx] This makes it possible to combine a button with a dropdownlist style. |