Search found 18 matches

by sanneedshelp
31 Mar 2024, 22:56
Forum: Ask for Help (v2)
Topic: parse json into submenu and sub-sub menus in v2 Topic is solved
Replies: 9
Views: 284

Re: parse json into submenu and sub-sub menus in v2 Topic is solved

ntepa Could you help me with one other issue that im running into, i can log new post but this is just continuation of the existing logic. Issue: when ever the json file has a large value , it is throwing an error menu is too large. in order to fix the issue i implemented below logic and added shor...
by sanneedshelp
30 Mar 2024, 17:37
Forum: Ask for Help (v2)
Topic: parse json into submenu and sub-sub menus in v2 Topic is solved
Replies: 9
Views: 284

Re: parse json into submenu and sub-sub menus in v2 Topic is solved

Thank you!! i was now able to compile successfully after using the new library that you gave and then win + n menu doesn't show up at all. attached Code , json.ahk and actual json #include C:\hotkey\json.ahk ; Read the JSON file jsonContent := FileRead("C:\hotkey\myjson1.json") ; Parse the JSON cont...
by sanneedshelp
30 Mar 2024, 07:36
Forum: Ask for Help (v2)
Topic: parse json into submenu and sub-sub menus in v2 Topic is solved
Replies: 9
Views: 284

Re: parse json into submenu and sub-sub menus in v2 Topic is solved

#include C:\hotkey\json.ahk


This is the one i have
https://github.com/cocobelgica/AutoHotkey-JSON/blob/master/JSON.ahk#L44


This is compiling through v1 but error when using v2 got below error
image.png
image.png (30.24 KiB) Viewed 246 times
Also when i compiled it through v1 got below error
image.png
image.png (18 KiB) Viewed 246 times
by sanneedshelp
29 Mar 2024, 12:46
Forum: Ask for Help (v2)
Topic: parse json into submenu and sub-sub menus in v2 Topic is solved
Replies: 9
Views: 284

parse json into submenu and sub-sub menus in v2 Topic is solved

i want to accomplish the same code but instead of hardcoding i want to read it from a json structure. please help ? working Code m := Menu() mainmenu := Menu() submenu1 := Menu() submenu2 := Menu() submenu3 := Menu() m.Add("mainmenu", mainmenu) mainmenu.Add("What is the Queston 1", submenu1) submenu...
by sanneedshelp
24 Mar 2024, 17:37
Forum: Ask for Help (v2)
Topic: always popup submenus on right side of window Topic is solved
Replies: 1
Views: 120

always popup submenus on right side of window Topic is solved

Hi , wanted to know if its possible to always populate the submenu to the right of the window and auto adjust its length ? i don't want to define coordinates as each person can have there own resolution and monitor size m := Menu() mainmenu := Menu() submenu1 := Menu() submenu2 := Menu() m.Add("urls...
by sanneedshelp
19 Mar 2024, 21:31
Forum: Ask for Help (v2)
Topic: syntax for map Topic is solved
Replies: 10
Views: 450

Re: syntax for map Topic is solved

@teadrinker Thank you very much sir!
by sanneedshelp
18 Mar 2024, 18:46
Forum: Ask for Help (v2)
Topic: syntax for map Topic is solved
Replies: 10
Views: 450

Re: syntax for map Topic is solved

Sorry very new to coding and if question seems dumb please apologies and i'm still learning... Thanks for all replies working code var := Map('value1', 'answer1','value2', 'answer2') m := Menu() submenu := Menu() For varname in var submenu.Add varname, funcgo m.Add 'Main menu', submenu funcgo(varnam...
by sanneedshelp
18 Mar 2024, 10:59
Forum: Ask for Help (v2)
Topic: syntax for map Topic is solved
Replies: 10
Views: 450

syntax for map Topic is solved

instead of this item := Map('value1', '(answer1)','value2', '(answer2)') msgbox item i want to do something like this . How can i achieve ? mapvar := ('value1', '(answer1)','value2', '(answer2)') item := Map(mapvar) msgbox item [Mod edit: Added [code][/code] tags and removed several randomly placed ...
by sanneedshelp
13 Mar 2024, 10:44
Forum: Ask for Help (v2)
Topic: create a block of text template with format
Replies: 2
Views: 118

Re: create a block of text template with format

Hi , i would like to merge these two pieces of code so that under Casenotes menu , for submenu template 1 , when i click on template 1 the block of text in the format is pasted over in the note pad or note pad ++ or active window? Could you help me to achieve this Also i have multiple templates tha...
by sanneedshelp
13 Mar 2024, 09:58
Forum: Ask for Help (v2)
Topic: create a block of text template with format
Replies: 2
Views: 118

create a block of text template with format

Hi , i would like to merge these two pieces of code so that under Casenotes menu , for submenu template 1 , when i click on template 1 the block of text in the format is pasted over in the note pad or note pad ++ or active window? Could you help me to achieve this #Requires AutoHotkey v2.0 item := [...
by sanneedshelp
12 Mar 2024, 12:35
Forum: Ask for Help (v2)
Topic: Menu item name too long error Topic is solved
Replies: 4
Views: 211

Re: Menu item name too long error Topic is solved

Understood my apologies thank you
by sanneedshelp
12 Mar 2024, 10:23
Forum: Ask for Help (v2)
Topic: Menu item name too long error Topic is solved
Replies: 4
Views: 211

Re: Menu item name too long error Topic is solved

Thank you Sir , This may be working but its not honoring the format. This is all in 1 line after its pasted. For example a template like below should be pasted in the same format , multiple lines ? is that possible i did search its says to used Sendinput instead of sendtext ... but that did not work...
by sanneedshelp
11 Mar 2024, 15:44
Forum: Ask for Help (v2)
Topic: Menu item name too long error Topic is solved
Replies: 4
Views: 211

Menu item name too long error Topic is solved

Hello , i'm trying to create a script to add email templates but i run into this menu item too large error , any workaround to be able to have alrge values for submenu or what alternatives i have ? MyMenu := Menu() Submenu0 := Menu() Submenu0.Add("I hope this email finds you well. I am writing to re...
by sanneedshelp
10 Mar 2024, 21:56
Forum: Ask for Help (v2)
Topic: how to paste the selcted content Topic is solved
Replies: 5
Views: 154

Re: how to paste the selcted content Topic is solved

tried using A_Clipboard still not working MyMenu := Menu() Submenu1 := Menu() Submenu1.Add("value1", MenuHandler) MyMenu.Add("main1", Submenu1) Submenu2 := Menu() Submenu2.Add("value2", MenuHandler) MyMenu.Add("main2", Submenu2) MenuHandler(Item, *){ A_Clipboard := Item Send "^c" ClipWait ; Wait for...
by sanneedshelp
10 Mar 2024, 20:00
Forum: Ask for Help (v2)
Topic: how to paste the selcted content Topic is solved
Replies: 5
Views: 154

how to paste the selcted content Topic is solved

Question: use case , what ever i select under submenu it should be pasted in the active window. Problem im having is pasting the selected content on a note pad or note pad++ it should display me value1 or value2 based on myselection but it isnt doing ... unsure what im doing wrong here . can any ple...

Go to advanced search