I have encountered a problem. In the previous postings, through the help of many enthusiastic friends, I can implement the IE browser control in the dialog box.
However, clicking on a web link from within the browser opens with a browser installed on the system, for example, Google Chrome...
I want to implement the following function
Let the link open from the popup window (do not open it from other browsers installed on the system). In addition, the popup window closes to close. When I close the main window, the popup window closes automatically.
I hope someone can help me with guidance. Thank you very much. Any suggestions and opinions are welcome.
1. When the e-book is opened, the default full-screen display (without title bar and border)
2. When I press hot key F11, I can switch between full screen and standard mode
I found some flash full-screen code but I don't know how to add it to QM
//Open sets focus on full-screen Stage.focus
fscommand("fullscreen","true");//Close the code fscommand("quit");
//Or add a right-click menu control
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var item:ContextMenuItem = new ContextMenuItem("full");
myMenu.customItems.push(item);
function fullScreen(evt:ContextMenuEvent):void
{
if (item.caption == "full")
{
fscommand("fullscreen","true");
item.caption = "quit full";
}
else
{
fscommand("fullscreen","false");
item.caption = "full";
}
}
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,fullScreen);
contextMenu = myMenu;
I hope to give me some examples or suggestions, thanks in advance
http://fs.focusky.com.cn/wmindmap/jhgh/ftkf/index.html
IE browser control can not load the web page, but can be opened directly in IE browser, the problem is very strange, I hope the developers can help me verify, thanks
04-20-2018, 04:28 PM (This post was last modified: 04-20-2018, 04:31 PM by Kevin.)
The provided link opened in web browser control for me .. Took a long time but it opened . You May need to run this function since the website is flash based as the browser control runs by default in ie7 compatibility mode
;Ensures that web browser controls of this program (QM or your QM-created exe) can use features of current Internet Explorer version (CSS3, HTML5 etc).
;REMARKS ;By default, web browser controls work in compatibility mode with Internet Explorer 7. IE 8/9/10/11 features are unavailable. ;This function sets this registry value, if it is missing or different: ;;;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION:<ThisProgram.exe>=<CurrentInternetExplorerVersion> ;Error if this process is not running as administrator. ;You can call this function before ShowDialog if the dialog contains an ActiveX control SHDocVw.WebBrowser. Or call it once.
if(_iever<8)ret str e.getfilename(ExeFullPath1) ;out e int t v=_iever>>8*1000 ;out v lpstr k="SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" if(rget(t e k HKEY_LOCAL_MACHINE)and t=v)ret ;out t if(!rset(v e k HKEY_LOCAL_MACHINE))endERR_ADMIN
04-20-2018, 06:32 PM (This post was last modified: 04-20-2018, 06:34 PM by win.)
(04-20-2018, 04:28 PM)Kevin Wrote: The provided link opened in web browser control for me .. Took a long time but it opened . You May need to run this function since the website is flash based as the browser control runs by default in ie7 compatibility mode
;Ensures that web browser controls of this program (QM or your QM-created exe) can use features of current Internet Explorer version (CSS3, HTML5 etc).
;REMARKS ;By default, web browser controls work in compatibility mode with Internet Explorer 7. IE 8/9/10/11 features are unavailable. ;This function sets this registry value, if it is missing or different: ;;;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION:<ThisProgram.exe>=<CurrentInternetExplorerVersion> ;Error if this process is not running as administrator. ;You can call this function before ShowDialog if the dialog contains an ActiveX control SHDocVw.WebBrowser. Or call it once.
if(_iever<8)ret str e.getfilename(ExeFullPath1) ;out e int t v=_iever>>8*1000 ;out v lpstr k="SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" if(rget(t e k HKEY_LOCAL_MACHINE)and t=v)ret ;out t if(!rset(v e k HKEY_LOCAL_MACHINE))endERR_ADMIN
Thank you for your help, after adding the above function, generate exe file, I can open the link
1. When the e-book is opened, the default full-screen display (without title bar and border)
2. When I press hot key F11, I can switch between full screen and standard mode
Now that only the full screen of the two issues is not resolved, I can not control the flash full screen before loading the dialog box? I hope someone can provide some suggestions and ideas, thanks
Flash by design does not allow fullscreen when loading(security risk)
you can however do a couple things to achieve the desired effect
this adds keyboard hotkey F11 to dialog itself and will toggle between full screen and programmed size
opens in full screen
all the functions needed listed below
you have some of these already but listed here for complete example
;Moves or resizes dialog controls when you resize the dialog. ;Call this function from dialog function, before sel message.
;hDlg, message - hDlg, message. ;controls - space-separated list of controls. ;;;Syntax for a control: IdActionDirection ;;;;;Id - control id. ;;;;;Action - m (move) or s (resize). ;;;;;Direction - h (horizontally) or v (vertically) or none (horizontally and vertically).
;Ensures that web browser controls of this program (QM or your QM-created exe) can use features of current Internet Explorer version (CSS3, HTML5 etc).
;REMARKS ;By default, web browser controls work in compatibility mode with Internet Explorer 7. IE 8/9/10/11 features are unavailable. ;This function sets this registry value, if it is missing or different: ;;;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION:<ThisProgram.exe>=<CurrentInternetExplorerVersion> ;Error if this process is not running as administrator. ;You can call this function before ShowDialog if the dialog contains an ActiveX control SHDocVw.WebBrowser. Or call it once.
if(_iever<8)ret str e.getfilename(ExeFullPath1) ;out e int t v=_iever>>8*1000 ;out v lpstr k="SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" if(rget(t e k HKEY_LOCAL_MACHINE)and t=v)ret ;out t if(!rset(v e k HKEY_LOCAL_MACHINE))endERR_ADMIN
(04-20-2018, 07:19 PM)Kevin Wrote: Flash by design does not allow fullscreen when loading(security risk)
you can however do a couple things to achieve the desired effect
this adds keyboard hotkey F11 to dialog itself and will toggle between full screen and programmed size
opens in full screen
all the functions needed listed below
you have some of these already but listed here for complete example
;Moves or resizes dialog controls when you resize the dialog. ;Call this function from dialog function, before sel message.
;hDlg, message - hDlg, message. ;controls - space-separated list of controls. ;;;Syntax for a control: IdActionDirection ;;;;;Id - control id. ;;;;;Action - m (move) or s (resize). ;;;;;Direction - h (horizontally) or v (vertically) or none (horizontally and vertically).
;Ensures that web browser controls of this program (QM or your QM-created exe) can use features of current Internet Explorer version (CSS3, HTML5 etc).
;REMARKS ;By default, web browser controls work in compatibility mode with Internet Explorer 7. IE 8/9/10/11 features are unavailable. ;This function sets this registry value, if it is missing or different: ;;;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION:<ThisProgram.exe>=<CurrentInternetExplorerVersion> ;Error if this process is not running as administrator. ;You can call this function before ShowDialog if the dialog contains an ActiveX control SHDocVw.WebBrowser. Or call it once.
if(_iever<8)ret str e.getfilename(ExeFullPath1) ;out e int t v=_iever>>8*1000 ;out v lpstr k="SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" if(rget(t e k HKEY_LOCAL_MACHINE)and t=v)ret ;out t if(!rset(v e k HKEY_LOCAL_MACHINE))endERR_ADMIN
Thank you very much, this is a great example
I don't understand some of the code. I need a period of programming learning. Thank you again for your kind help.
04-20-2018, 10:45 PM (This post was last modified: 04-20-2018, 10:59 PM by win.)
After pressing the F11 hot key, the window is not completely full screen, there are borders around, how to set the border style to none? thanks
The flash control has a border around it, I didn't find the property of this control
QM can run java script in the code? I did not find in the template, help is not found, is there a relevant example? I want to learn Java script and QM script
04-21-2018, 12:09 AM (This post was last modified: 04-21-2018, 02:04 AM by Kevin.)
fullscreen for me has no border perhaps its your windows version (win10 here)
try this loads the page through javascript
small dialog window has a sizing border so can resize with mouse.
Function dialog_full_screen3
04-21-2018, 03:18 AM (This post was last modified: 04-21-2018, 03:21 AM by Kevin.)
try this if this doesn't work may have to disable windows theme on the dialog possible may not work as well.
I cannot test on win7 today will try tomorrow
04-21-2018, 11:46 PM (This post was last modified: 04-21-2018, 11:47 PM by Kevin.)
the code your using only fires when a new window is created either by shift+click a link or right click a link and select open in new window. it will not work the way your wanting in its current state.
Need to have a better idea what you're trying to accomplish. Your all over the map trying to use different examples and not understanding how they work.
What is your goal exactly? not the short term. I'm trying to understand what is your idea you have in mind.
I want to learn scripting language to improve learning and work efficiency. I have seen autohotkey on the Internet but I feel that QM is easier to learn.
My question, somewhat random, is to verify whether QM can achieve certain functions. It looks great now
In addition, I often use AutoText. QM does not have global hotkeys. I hope to add hotkeys in the future. I am using the following free AutoText software. I can only edit the script with a purchase license. The price is a little expensive. QM If you can add some AutoText settings dialogs, it will be more convenient, QM is very cost-effective, when I am familiar with the use, I will buy a license. Https://www.phraseexpress.com/
04-22-2018, 05:39 PM (This post was last modified: 04-22-2018, 05:42 PM by Kevin.)
there are several ways to create hotkeys depending on your needs.
1. function/macro triggers
keyboard hooks
File->New->Templates->Hook->Hook_WH_KEYBOARD_LL
creates a template you can use to create the hotkey you need
there is examples on the forum and in the archive file
can register hotkeys
example in archive file archive file found here http://www.quickmacros.com/forum/showthr...p?tid=2852
can create them yourself other ways
their are many possibilities
04-22-2018, 10:35 PM (This post was last modified: 04-22-2018, 10:41 PM by win.)
hi @rOn @Kevin
Thank you very much for your reply
I mean QM is not very convenient for defining AutoText. There is no hotkey, setting dialog for AutoText.
For example, I have in a word document or in the Google browser, select some text, I would like to quickly define them as AutoText, press ctrl + alt + t hotkey will pop up settings dialog for AutoText
In software phraseexpress, have hotkeys and dialogs is very convenient. I hope QM developers can enhance the capabilities of AutoText.
I think: The AutoText feature is very useful for most people, adding a settings dialog is very necessary
I'm sorry can't really help you with autotext features of Qm. That is one area of qm that i don't use but probably should . I'm sure Gintaras can help you further.