Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] 3 little questions for which I can't find answer
#1
Hi there,

3 little questions for which I can't find proper answers in forum :

1) some edit boxes send me this error :

"cannot paste. Make sure that this window is editable, supports Ctrl+V, and accepts this clipboard format. Some windows use Shift+Insert instead."

The good exemple is steam login box. I've got a TS menu and a key function.

The menu simply send nothing :

>menuitem
item1 :"sometext"
item2 :"sometext"
Password :"sometext"
<

The key function is triggerred by ctrl+win key +w, eat function enabled.

pw :key "mypwd"

it does fill the edit box, but with "mypwdpw", not "mypwd"

what is the problem? why does it send the password+pw, the name of the key shotcut?

2) i'd like to monitor my public IP and did not find a way to do it.

3) for 2) i'd like to compile a exe, looping endlessly for IP change or some other action. How do that, and how to stop the loop to stop the program, and how to pause the loop for a while?

Thanks.
#2
1. I would test it to see why it happens, but I don't have steam. Do you know other programs where it happens?

Also, could you export the menu and post here as attachment?

Try to replace
xxx :"yyy"
to
xxx :_s="yyy"; _s.setclip; key Cv

How if you replace trigger Ctrl+Win+W to some trigger without Win?

2, 3. See this: Multiping
#3
Hi Gintaras,

when i trigger without the win key, it's the same thing, with original or modified text (pw :_s="mypwd";_s.setclip; key Cv)
i tried to trigger with a simple letter (w), it doesn't work neither.

Boring, because it perfectly works with autohotkey, but i want to switch from it.

Any ideas?

For the ip thing, i must test further 'cos it takes longer. will tell you.

kind regards,
Laurent.
#4
Do you know other programs where it happens?

What happens if you add /b at the beginning of the TS menu? Example:
T.S. Menu
Trigger w     Help - how to add the trigger to the macro
Code:
Copy      Help
/b
pw :key "mypwd"
#5
yes, the /b switch did the trick. How apply the same trick to a menu item?

What does it does exactly.

For the IP and endless loop, the link is too complicates to search for the relevant explantions.

Can you be more specific please?

BTW, i want to thanks you again for the great support. It's the main thing that makes me use quick macro, nice community and the developper always helping.

kind regards,
Laurent.
#6
/b erases typed trigger text using Backspace. By default QM does not erase it. Without it, result should be "pwmypwd". I guess, the program always inserts pasted text at the beginning, that is why the result was "mypwdpw".

Not sure what is "monitor my public IP". QM probably does not have a function for it. Maybe GetIpAddress is what you need. Or Ping (from that forum topic).
#7
Ok, i get the /b thing. For any reason, i confused that with the "eat" option Sad

For the IP thing, i've got problem with rapidshare blocking my premium account because my ISP changes for unknown reasons my public IP.

Box -> 192.168.1.12 (local iP) -> 80.xx.xx.xx (public IP) on the internet. that is what I want to monitor. Ping has nothing to do with it, or so little it's not an option. FYI, I use a little program called IP Monitor (http://www.barefootinc.com) to do that, but I want to get rid of it.

And what about the endless listening function?


Attached Files Image(s)
   
#8
Macro
Code:
Copy      Help
str s
GetIpAddress "" s 1
out s

It gives all IPs of your computer. The first probably is local, the second public.
#9
Nope, only local is returned.

Anyway, i managed to do it by a workaround :

d.InitFromWeb("http://votreip.free.fr/")
str s=d.GetText
str n
str pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
if(findrx(s pattern 0 8 n)<0) out "does not match"; ret
n.trim(pattern)
out "Mon IP Publique est %s" n

Anyway to improve it?

Now, I tried to compile it as an exe.

I get an error on launching the program : Error (RT) in HtmlDoc.InitFromText: 0x80040154, Classe non enregistrée

Help?

kind regards,
Laurent.
#10
On my PC works well.

Does it show same data in qm and in exe?:
Macro Macro1086
Code:
Copy      Help
outb uuidof(MSHTML.HTMLDocument) sizeof(GUID)

-------------

Replace

HtmlDoc d
d.InitFromWeb("http://votreip.free.fr/")
str s=d.GetText

to

str s
IntGetUrl("http://votreip.free.fr/" s)

------------

GetIpAddress does not retrieve your public IP if using shared connection on other computer. Also may depend on hardware.

Try this macro:
Macro Macro1085
Code:
Copy      Help
out
RunConsole2 "ipconfig" _s
out _s

Does it show your public IP?
#11
Weird Weird Weird, it works now...maybe an error in formatting?

for the iponfig stuff, it does not show the public IP.

But all is donne, so thread is closed.

Thanks for all, and let's meet on another topic Smile

kind regards,
Laurent.


Forum Jump:


Users browsing this thread: 1 Guest(s)