Hi,
Is there a way to call programmatically the indentation tool for specified lines ?
call indentation tool
call indentation tool
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Re: call indentation tool
Don't know, but have you tried sendkeys( [Ctrl+i] ) in a PB tool?
indentation shortcut = [Ctrl+i].
indentation shortcut = [Ctrl+i].
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: call indentation tool
sendkeys Is it a win32 api function ?skywalk wrote:Don't know, but have you tried sendkeys( [Ctrl+i] ) in a PB tool?
indentation shortcut = [Ctrl+i].
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Re: call indentation tool
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: call indentation tool
Thx, I works great.
Now, I have to found a way to read PB editor preferences.
Now, I have to found a way to read PB editor preferences.
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Re: call indentation tool
Cool, just remember that the PB Preferences file is only completely updated after IDE is closed.
Like if you add files to the IDE, they are not updated in the preferences file.
Like if you add files to the IDE, they are not updated in the preferences file.
Add 2 files...Preferences wrote:[OpenedFiles]
Count = 5
Close IDE...Preferences wrote:[OpenedFiles]
Count = 5
freak said to use the PB_TOOL_FileList environment variable instead.Preferences wrote:[OpenedFiles]
Count = 7
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: call indentation tool
During the test, there was a conflict between Ctrl+C & Ctrl+Imsdn wrote:This function does not reset the keyboard's current state. Any keys that are already pressed when the function is called might interfere with the events that this function generates.
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool