简体   繁体   English

Imacros(javascript)从自定义输入对话框中获取变量值

[英]Imacros (javascript) getting variable value from custom input dialog

I am trying to find a way to create custom user input dialog with imacros (javascript).我正在尝试找到一种使用 imacros (javascript) 创建自定义用户输入对话框的方法。

However while the dialog itself could be done, say,然而,虽然对话本身可以完成,比如说,

with javascript与 javascript

or jQuery或 jQuery

No luck in getting the variable to be used "outside".让变量在“外部”使用没有运气。 It keeps saying variable is not defined, or illegal syntax (see i am trying to alert "a" variable outside)它一直说变量未定义,或语法非法(请参阅我试图在外面警告“a”变量)

Is there any way to get around this issue, attaining the goal?有没有办法解决这个问题,达到目标? Or i am doing it wrong?还是我做错了?

PS: I am using imacros 8.9.7 run in Firefox 56, Windows 7 (classic mode) PS:我正在使用在 Firefox 56、Windows 7(经典模式)中运行的 imacros 8.9.7

Still posting as an/"the" Answer a Link to one Post of mine that you "accepted" at "the" Answer/Solution to your Qt @OP in the parallel Thread you opened on the 'iMacros' Forum...:仍然张贴作为一个/“该”回答链接到我的一个帖子,您在“iMacros”论坛上打开的并行线程中“接受”Qt @OP 的“该”回答/解决方案......:

I won't quote its/(my) Content as it's pretty Verbose with several Links to other Threads on the iMacros Forum and its Content doesn't really fit for the "simplistic" Q/A Principle from SOF which doesn't/never works for Qt's, or only for ueber-simplistic Qt's from Users too lazy to read 2 Pages from the Wiki/Documentation...我不会引用它/(我的)内容,因为它非常冗长,并带有几个指向 iMacros 论坛上其他主题的链接,并且它的内容并不真正适合 SOF 的“简单化”Q/A 原则,它不会/从不适用于 Qt,或仅适用于用户懒得从 Wiki/文档中读取 2 页的 ueber-simplistic Qt...

=> For Users interested, this is a very clever/interesting Qt/Scenario, check the parallel Thread on the iMacros Forum for "more Info"... => 对于感兴趣的用户,这是一个非常聪明/有趣的 Qt/场景,请查看 iMacros 论坛上的并行线程以获取“更多信息”...


(@ SOF Mods, I post my Answers/Solutions on the iMacros Forum, (has been around before SOF), as (I make sure) no Content gets deleted there (Mod there sinds 2015, with 9000+ Posts / 1500+ Solutions), while all new Threads/Qt's about all get deleted "here" every Friday with just one '-1' from anybody...) (Counter has been at ~1450 for at least 3 years... (for 'iMacros' Qt's...)) (@ SOF Mods,我在 iMacros 论坛上发布了我的答案/解决方案,(在 SOF 之前就已经存在),因为(我确定)那里没有内容被删除(Mod there sinds 2015,有 9000 多个帖子/1500 多个解决方案) , 而所有关于的新线程/Qt 都会在每周五在“这里”被删除,任何人都只有一个“-1”...)(计数器至少在 3 年内保持在 ~1450...(对于“iMacros”) Qt的...))

  • @OP, if you can accept my Answer, to prevent Deletion of the whole Thread... @OP,如果您可以接受我的回答,以防止删除整个线程...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM