Weird Problem, How To Solve?

mark leenheer

Client
Регистрация
29.01.2012
Сообщения
156
Реакции
6
Баллы
0
Weird Problem With Tumblr Can't Add Post, How To Solve?

This is probably something easy I am missing but I can not seen to find an answer so here goes.

After I click the html button on the editor I can follow up with KB emulation and enter the post fine
without specifying any field value, it's in the right place already but this takes too long.

Can I somehow just dump in my content from a variable where the mouse is positioned and NOT according to any
field data because it's hidden, or missing and I can't find anything that works.

This, is what I need to do;
Untitled.jpg


Geesh I've spent a few hours trying to figure this out and am not sure what to try next, anyone have any ideas?
 
that's how I do that with tumblr. fast copy paste from a variable articleText

JavaScript:
Развернуть Свернуть Копировать
Emulator.ActiveWindow(instance.FormTitle);
System.Windows.Forms.Clipboard.SetText(project.Variables["articleText"].Value);
System.Windows.Forms.SendKeys.SendWait("^v");
 
  • Спасибо
Реакции: mark leenheer
Awesome! Thank You, I would have NEVER figured that out!
 
Hey Bulldozer,

Where do I put that code?

Please help!
 
Hey thanks for the quick response.

But,now I get this error when I run the template:

"Error in action "CS0234" "The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)" в строке "System.Windows.Forms.SendKeys.SendWait("^v");""
 
JavaScript:
Развернуть Свернуть Копировать
string newTheme = project.Variables["article"].Value;
lock(SyncObjects.InputSyncer)

{

       System.Windows.Forms.Clipboard.SetText(article);
       Emulator.ActiveWindow(instance.FormTitle);
       System.Windows.Forms.SendKeys.SendWait("^v");

}



Not sure about HB code but this code working fine.
 
  • Спасибо
Реакции: hogarinho
found one
 

Вложения

  • div.png
    div.png
    35,2 KB · Просмотры: 855
Hey i got the same issue, i do this:
  1. Emulator.ActiveWindow(instance.FormTitle);
  2. System.Windows.Forms.Clipboard.SetText(project.Variables["articleText"].Value);
  3. System.Windows.Forms.SendKeys.SendWait("^v");
And what is pasting, is just an OK out of nowhere.
 
It's not good idea to try clipboard for instances. Fill forms with standard actions.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)