Jump to content

haijie1223

Active Members
  • Posts

    68
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

haijie1223's Achievements

Wayfarer

Wayfarer (2/7)

6

Reputation

  1. This code also works fine, thank you, I didn't check the help file carefully.
  2. Local $oFireWall = ObjCreate("HNetCfg.FwPolicy2") ConsoleWrite($oFireWall.CurrentProfileTypes & @CRLF) ConsoleWrite($oFireWall.FirewallEnabled($oFireWall.CurrentProfileTypes) & @CRLF) Regarding Windows Firewall information detection, the results of the above code are correct, but the results of the following code are wrong. What‘s the problem with the following code? Local Const $CLSID_NetFwPolicy2 = "{E2B3C97F-6AE1-41AC-817A-F6F92166D7DD}" Local Const $IID_INetFwPolicy2 = "{98325047-C671-4174-8D81-DEFCD3F03186}" Local Const $TaskList = 'get_CurrentProfileTypes HRESULT(long*);' & _ 'get_FirewallEnabled HRESULT(long;short*);' Local $pNetFwPolicy2 = ObjCreateInterface($CLSID_NetFwPolicy2, $IID_INetFwPolicy2, $TaskList, True) Local $profileType = 0 Local $Ret = $pNetFwPolicy2.get_CurrentProfileTypes($profileType) ConsoleWrite('$Ret=' & $Ret & @CRLF) ConsoleWrite('$profileType=' & $profileType & @CRLF) Local $enabled = 0 Local $Ret = $pNetFwPolicy2.get_FirewallEnabled($profileType, $enabled) ConsoleWrite('$Ret=' & $Ret & @CRLF) ConsoleWrite('$enabled=' & $enabled & @CRLF)
  3. How to get the URLs and source codes of all web pages in Google Chrome that has been opened without switching pages? Tks #include "wd_core.au3" Global $sDesiredCapabilities, $sSession SetupChrome() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) ;how to get all tabs url and source text??? Func SetupChrome()     _WD_Option('Driver', 'chromedriver.exe')     _WD_Option('Port', 9515)     _WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\chrome.log"')     $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"debuggerAddress": "localhost:9222"}}}}' EndFunc   ;==>SetupChrome
  4. @Zedna Yes!It is!Thank you very much!
  5. Thank you for all friends! My question is how to create this kind of control by autoit。The control I’m talking about is like the Thotkey type in delphi。
  6. I know how to set the hotkey,but my question is how to create this kind control that the fuction I talk。
  7. 正在使用发音 Not _Isprssed function, I remember the code I saw before, is to create a new control type with createwindow api. There are no other complex detection operations.
  8. This control only displays the current key. After releasing the key, the last displayed key will be cancelled and the current key will be displayed again. I've seen the code of autoit creating this kind of control before, but now I can't find it, so I'll ask you for advice.
  9. Danp2,thank you。 But I don't want the function of hot keys, I want to know how to create this kind of control with autoit.
  10. @Danp2 The image is upload。I am Sorry about virus warning,this exe File compiled by me,It is have not virus 。this control is the same as VclHotkey Control。
  11. How to create this kind control by autoit?The Demo in the attach。 this control can show the hotkey current pressed.
  12. ConsoleWrite(FileGetVersion('ntdll.dll','FileVersion')&@CRLF) this?
×
×
  • Create New...