Jump to content

ozmike

Active Members
  • Posts

    87
  • Joined

  • Last visited

Recent Profile Visitors

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

ozmike's Achievements

  1. Hi myicq, sorry to get back so late The reason that you always get string is the keys are just labels the thing after the : is the object ! ie "Configuration" = string , the bit after colon is an object! This code below returns object. It hopefully also answers 2a your other question can you directly access the config -yes then get the keys as shown. $t = $jsObj.Pages.Configuration ConsoleWrite("$jsObj.Pages.configuration ->" & $t.type($t) & @CR) ; $t = $jsObj.Pages.item("Configuration") ConsoleWrite("$jsObj.Pages.configuration ->" & $t.type($t) & @CR) ; $keys = $jsObj.keys($t) for $k in $keys ConsoleWrite(">>>" & $k & " >>>   " ) Next btw the keys function does seem to return a lot of noise ..I got it off the net ..will have to look into it..
  2. Hi you have a syntax error in your example. Make sure you use a json parser eg. http://json.parser.online.fr/ as my udf assumes / doesn't tell you if its valid json. It could be modified to tell if valid json ...feel free to modify I think it needs an error handler.! Here is the code to get the 3rd record #include <OO_JSON.au3> $myjsondata = _OO_JSON_Read_File( "jsondata.txt") $oJSON = _OO_JSON_Init() $jsObj = $oJSON.parse($myjsondata) ; JSON encode key value ConsoleWrite("$jsObj.records.item(2).stringify() ;-> " & _ $jsObj.records.item(2).stringify() & @CR)
  3. My guess - You will need the source code - because you will have to make changes to get it to work in the windows store! most win 32 app will work on windows 10 - but to submit apps (exes?) to windows 10 store will need a recompile?. Any exes out there already - can't submit to the store as is probably .. whether an auto it script needs to be compiled inside Visual Studio or an exe can be submitted we will have to wait an see. I bet microsoft don't know yet .. early days.. MS plan to allow android and iphone apps in window 10 ..so its early days.!
  4. Hey could be interesting to the AutoIt devs out there Will win32 apps (autoit apps) work in the new windows 10 store? Early days yet won't be in the initial win 10 release... Note win32 apps are now called many things - desktop apps - CWA ( Classic Windows Apps - not country womens ..assoc. ) - Project C(entenial) apps These apps will not be sandboxed but NOT be allowed to run as admin , all files will be sandboxed installation handled through the store.. blog link How does this affect autoit - ? FYI following as not supported in Project C apps: “Windows NT Services”,“Things running in the kernel” (device drivers)“System Level Software” (anything not running in the user context)“Elevation”, meaning anything that causes a standard user to get a UAC prompt “will be blocked”.Using parts of other apps in your app, at least in version 1. John indicated that they would like to support extensibility and plug-ins, just probably not initially. The implication was that this might be a direct UWA thing and not specific to Project C, but we can’t be sure. following as supported in Project C apps: “COM”“WMI”“Networking”“Anything else a standard app does that isn’t in the system space”.I am guessing that there are a lot of other things that might end up in the ‘not supported’ list that you might have thought falls under the last item in the supported list but turns out is not supported, but we just don’t know yet: WMI ProvidersWindows Timed and Triggered Events (but they can write new UWA background triggers)Custom ETW ProvidersCOM localsystem (out of process) running as the system to avoid UAC promptsMaybe DCOMSoftware Clients,Application CapabilitiesShell Extensions, Browser Helper Objects, and the like FYI
  5. Hi do you know the exact change? I had a look a script breaking changes couldn't see anything about arrayInsert or in the change history am i looking in the right place. ok I see in the help file Array UDF was re-written. Functions and/or parameters have been changed, removed or added. A detailed list can be found here. thanks
  6. Ok give new verion 2 a try .. auto 3.12 the arrayInsert was broke (WHY!!!!!!)..so i included an arrayInsert from AutoIt v 3.8 ..seems to work.. Thanks for all your help ...my apols...why they break autoIT!!
  7. ok i'll have a look what i get a chance - it was tested win 7.. ok i've reproduced the problem..i was using v3.3.8.1..so if you want to have a play on that version...but i'll have to try and port it to the latest -fun and games!
  8. Hi more info .. ClipboardHistoryExample..see the console output ClipboardHistoryGUIexample. - will run History Viewer. Other than that what error are you getting what version of widows and autoit?
  9. Hi Here is a UDF which allows you to have more than 1 item in the Clipboard and handle binaries not just text!. Can handle ALL data types text or images or binaries HTML yada yada. Gives autoIT functionality that potentially AHK can do , multiple paste buffers ClipboardEx.UDF - ; Clipboard 'Extended' creates a memory copy of current clipboard, and adds meta data like size and type sense. Credits to J Rowes for some of this code. ClipboardHistory.UDF: Simple LIFO History. ClipBoardHistoryGUI.UDF : Clipboard History viewer for history - can view items in history (mouse over) use mouse click to select an ltem and put on clipboard. Any files with the word 'example' in the name will run. Enjoy Ok version 2 - works on autoIT v 3.12. w7 added another example file. ClipboardHistoryV2.zip
  10. Hi Don't know if this is the right place, Some feedback on the new forum.. When you view an UDF - you don't see attachment down load count? - gives a guide if script is worth downloading..very useful imho.. Under your user name - there used to be a my content - this has been moved to topics. Can we have a my content under our user name , my activites is what is there now,..if not no worries..
  11. Hi Again - Yes does error The web page of json path you are refering is for JAVA not javascript and it has been modified to support regular expressions. It is not the original version of json path. see JSON path's creater's web page the example you refer doesn't exist ! see http://goessner.net/articles/JsonPath/ so I guess..if you can find a js version that supports regex in javascript and then replace line in the OO_JSON.udf with the new version. ;$jsonPath_text = _OO_JSON_Read_File("jsonpath-0.8.0.js") $jsonPath_text = _OO_JSON_Read_File("jsonpath-newversion.js") Or enhance Jsonpath open source project! regex would be nice! https://github.com/s3u/JSONPath Thanks for picking that up
  12. Here is a work around - seems to be a bug? Deregister events and then re-register just before you leave.Seems you can't send a mouse click within a mouse trap! hope it helps. #include <MouseTrapEvent.au3> _BlockMouseClicksInput(1) while 1 sleep(500) WEnd Func _BlockMouseClicksInput($iOpt = 1) If $iOpt = 1 Then _MouseTrapEvent("XClick1", "_XClick1" ); click x1 - intercept user defined block Else _MouseTrapEvent("XClick1") ; deregister EndIf EndFunc func _XClick1() _BlockMouseClicksInput(0) MouseClick("left") sleep(100) Send("{DOWN}") sleep(100) Send("{ENTER}") Sleep(100) Send("{DOWN}") sleep(100) Send("{ENTER}") _BlockMouseClicksInput(1) endfunc
  13. The resource udf I think - lets you at compile time include the text file in the exe which the code can access instead of disk. So no files on disk only one exe. File Install puts files into the directory from the exe ( if i understand). Anyway what ever works best for you..
  14. Ok this is what you want ...i'll leave it to you to play with it... '?do=embed' frameborder='0' data-embedContent>> ; add to OO_JSON #AutoIt3Wrapper_Res_File_Add=json2.txt, rt_rcdata, JSON_TXT_2 #include "resources.au3" ; $json_text = _OO_JSON_Read_File("json2.txt") ; replace this line in oo_json.udf - do for each file, $json_text = _ResourceGetAsString("JSON_TXT_2")
×
×
  • Create New...