Jump to content

I want to know how to assign a Shotcut Key to the PropertysTab window.


tgjang

Recommended Posts

Hi

I think it would be very user friendly if the IronCad PropertysTab window could apply a Shotcut Key.
Therefore, End user would be grateful if somebody could tell me how I can assign a Shotcut Key to the PropertyTab.
If it is not possible, I have to develop a program using AutoHotKey.

It's a similar story, but we've created an AutoHotKey programme for the "Ctrl+`" shotcut key to switching between the Scene Tab and Properties Tab, which is very useful as it saves us a lot of mouse clicks.

Thanks.

property_tab.png

Edited by tgjang
Link to comment
Share on other sites

I looked for the command, but couldn't find it.
So I tried to program it using AutoHotKey, but the only way to recognise the menu is by coordinates, so that's not possible either.

using_spy.png.f47a92db04593e22a66007034d6b6504.png2112839067_part_propertiesTab.thumb.png.c72b7becc7633182571dfa5a866c6cfe.png

Link to comment
Share on other sites

Hi Jang,

You can not pick anything with AHK from ahk_pid or ahk_id or Button's class because those are random. I went through a lot of frustration trying to figure this out.

You can only pick that from image search or find text(The library that seraching image by text). I've written code to open the Part Properties or Smart Painter in this way.

 

^F1:: ; Open ICS Properties dialog ;ICS&ICD SHOULD USE GRAY 210 TO CUT PROPERTIES... text
MouseClick, right
MouseGetPos, xpos, ypos
BlockInput, on
Sleep, 300
if (A_ScreenDPI = 96) {
	Text:="|<>*195$17.000zz1022zI5yc/xELuUjp1TW2044089UEHyUa11022047zs000U"
	if (ok:=FindText(X, Y, -1842-150000, 257-150000, -1842+150000, 257+150000, 0, 0, Text, , , , , , 6))
	{
	   FindText().Click(X, Y, "L")
	}
	else {
		Sleep, 300
		Text:="|<>*195$17.000zz1022zI5yc/xELuUjp1TW2044089UEHyUa11022047zs000U"
		if (ok:=FindText(X, Y, -1842-150000, 257-150000, -1842+150000, 257+150000, 0, 0, Text, , , , , , 6))
		{
		   FindText().Click(X, Y, "L")
		}
		else {
			Sleep, 300
			Text:="|<>*195$17.000zz1022zI5yc/xELuUjp1TW2044089UEHyUa11022047zs000U"
			if (ok:=FindText(X, Y, -1842-150000, 257-150000, -1842+150000, 257+150000, 0, 0, Text, , , , , , 6))
			{
			   FindText().Click(X, Y, "L")
			}
			else {
				Sleep, 600
				Text:="|<>*195$17.000zz1022zI5yc/xELuUjp1TW2044089UEHyUa11022047zs000U"
				if (ok:=FindText(X, Y, -1842-150000, 257-150000, -1842+150000, 257+150000, 0, 0, Text, , , , , , 6))
				{
				   FindText().Click(X, Y, "L")
				}
				else {
					Sleep, 600
					Text:="|<>*195$17.000zz1022zI5yc/xELuUjp1TW2044089UEHyUa11022047zs000U"
					if (ok:=FindText(X, Y, -1842-150000, 257-150000, -1842+150000, 257+150000, 0, 0, Text, , , , , , 6))
					{
					   FindText().Click(X, Y, "L")
					}
					else {
						MsgBox, 48, This dialog will be close 5seconds later, Failed to find Properties icon. Report it to me, 5
					}
				}
			}
		}
	}
}
else if (A_ScreenDPI = 120) {
}
else if (A_ScreenDPI = 144) {
}
else {
MsgBox, 48, Hi, Your current screen DPI is not supported!`nAsk about this msg to Bertrand Kim!`nExiting... , 4
}
BlockInput, off
MouseMove, %xpos%, %ypos%
return

^F2:: ; Open Parameters dialog
MouseClick, right
MouseGetPos, xpos, ypos
Sleep, 500
BlockInput, on
if (A_ScreenDPI = 96) {
	Text:="|<>*199$13.DzY1zzDzbznztYYzyN9DzaGHztU"
	if (ok:=FindText(X, Y, -1842-150000, 257-150000, -1842+150000, 257+150000, 0, 0, Text))
	{
	   FindText().Click(X, Y, "L")
	}else {
    MsgBox, 48, This dialog will be close 5seconds later, Failed to find Parameters icon. Report it to me, 5
	}
}
else if (A_ScreenDPI = 120) {

}
else if (A_ScreenDPI = 144) {

}	
else {
MsgBox, 48, Hi, Your current screen DPI is not supported!`nAsk about this msg to Bertrand Kim!`nExiting... , 4
}
BlockInput, off
MouseMove, %xpos%, %ypos%
return

^F3:: ; Open SmartPaint dialog
MouseClick, right
MouseGetPos, xpos, ypos
Sleep, 400
BlockInput, on
if (A_ScreenDPI = 96) {
	Text:="|<>*151$14.00U040100U0E1c0w0S0D07k1w0y0T0DU2"
	if (ok:=FindText(X, Y, -1842-150000, 257-150000, -1842+150000, 257+150000, 0, 0, Text))
	{
	   FindText().Click(X, Y, "L")
	}else {
    MsgBox, 48, This dialog will be close 5seconds later, Failed to find SmartPaint icon. Report it to me, 5
	}
}
else if (A_ScreenDPI = 120) {

}
else if (A_ScreenDPI = 144) {

}	
else {
MsgBox, 48, Hi, Your current screen DPI is not supported!`nAsk about this msg to Bertrand Kim!`nExiting... , 4
}
BlockInput, off
MouseMove, %xpos%, %ypos%

 

Kim

Link to comment
Share on other sites

Thanks. Kim

I tried converting your autohotkey 1.0 program to autohotkey 2.0 version and it didn't work, so I put it on hold.
 IronCAD developers 
1. Part Properties Tab,
2. Scene, Properties tab toggle,

The above 2 menu's shotcut key function should be added to IronCAD.

 

Link to comment
Share on other sites

  • 3 weeks later...
On 7/22/2023 at 9:47 AM, tgjang said:

I tried converting your autohotkey 1.0 program to autohotkey 2.0 version and it didn't work, so I put it on hold.

Hi Jang,

Maybe that is a library issue. I used some libraries work on AHK v1.

image.png.3e61790d170c5e86fb537d5e0e79bc24.png

Anyways...why did you try that? I think there is no huge merit using AHK v2 for now 

 

Kim

Edited by Bertrand Kim
Link to comment
Share on other sites

Thank you kim.

It doesn't work with AutoHotKey Version 2.0

It would be much faster and simpler for the IronCAD developer to provide a shotcut key function.
Although I'm not sure when they will add it.

Link to comment
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...