alt gr keys
StevenV
2012-11-19 11:49:04
Hallo,
i would like simba to type:
D:\Aquarium en Vissen\Verkopen\VerkopenScar\Fotos\Aquariums1.jpg
But instead it gives:
D:>Aquarium en Vissen>Verkopen>VerkopenScar>Fotos>Aquariums1.jpg
or if i want simba to type @ it sends E instead.
Is there away how i could solve this?
thx
footballjds
2012-11-19 14:10:20
are you using sendKeys, typeSend or other?
StevenV
2012-11-19 17:46:27
i am using sendkeys, cause i have no other basic function i can use.
TypeSend is juste a function which uses sendkeys so that's the same i guess,
but in the typesend function i found the function typebyte,
this is a function which is not in simba manual,
is there a place or file where i can find all the possible functions i can use?
footballjds
2012-11-20 10:10:04
From: StevenV
i am using sendkeys, cause i have no other basic function i can use.
TypeSend is juste a function which uses sendkeys so that's the same i guess,
but in the typesend function i found the function typebyte,
this is a function which is not in simba manual,
is there a place or file where i can find all the possible functions i can use?
take a look here and lmk if you can't get something working (:
hint try using getCharCode
StevenV
2012-11-20 15:25:00
does not work to use getcharcode, because it returns the code for < instead of \
KingKong
2012-11-21 05:23:05
try using typebyte(ascii code of '\' here)
StevenV
2012-11-21 11:13:05
the problem is that \ is in a string (directories path)
simba just can't write |@#{}[]´`~\ these characters,
and i was looking for a way how i could do that
Neodymium
2012-11-21 11:22:27
From: StevenV
the problem is that \ is in a string (directories path)
simba just can't write |@#{}[]´`~\ these characters,
and i was looking for a way how i could do that
'\\' (two backslashes) will produce '\' (one backslash). You escape the escape character with another escape character.
If it's a directory, you can probably use a forward slash instead.
StevenV
2012-11-22 03:40:08
It's a program to place advertisements on the net, and the directory path is safed on a INI file. Simba retrieves the directory from that file, so i would have to replace every backslash, or if i use an other character to.
But i'll try it out and if it works i'll make a procedure which checks if there is such a character used in the sentence.
I had been thinking about using forward slash, but it did not work
Chris
2012-11-22 04:04:19
Change your keyboard language to English (UK)
StevenV
2012-11-23 06:05:54
From: Neodymium
'\\' (two backslashes) will produce '\' (one backslash). You escape the escape character with another escape character.
If it's a directory, you can probably use a forward slash instead.
two backslashes dit not work …
if i changed keyboard to english, i would always have to do this before i run the program and then turn it back to normal afterwards, so that's to much husle.
I thougt of including scar script (cause scar can send those keys) but simba does not know the scar function so it does not work either.
I could use scar instead of simba i know, but simba has a better view and there for is easier to find faults
Chris
2012-11-23 07:40:34
One other thing you could do is copy the / and make simba use ctrl + v :p
StevenV
2012-11-25 15:44:09
i thing i will have to enter part by part of the directory
'd:' enter, 'document' enter, …
this untill this might been solved
footballjds
2012-11-26 09:55:26
StevenV, I'm glad you haven't given up yet. Could you please share your script? I'll work with you until this is functioning as it should. I remember a topic like this from a few years ago. Trying to remember how it was resolved.
don't give up! :D
StevenV
2012-11-27 11:19:44
So some explaintion about the script.
At my place i'm a amateur guppy breeder, but over time i have to many so i sell some. To do this i use an advertisment website.
This is a good site, lot's of users, but since lots of new ads are added every day my ads are going down fast. That's why i like to repost my ads every few days, but this takes time to type the whole ads again and again (sometimes i need to add 6 ads), that's why i made a script to easen up my life and let my computer do the job while i'm having dinner.
The problem then with this script now is that i want to upload some photo's. There opens a upload box and i would like simba to fill in the full directory of the file, so that it opens this file at once.
For now i have solved the problem by splitting the directory into pieces and enter every piece separately followed by an enter, this way simba goes to D:, then to folder, then to subfolder, then subsubfolder…..
it works fine but it's allot slower and i'm not sure yet how i can make some faile safes for this proces.
the part where it oploads the photos goes from line 399 to 453.
This was also a problem in scar but has been solved during later versions.
So i could still use scar, but then i would have to change my script a bit cause the website has changed, but i prefer simba simply because of the better look of the script, which gives you a better overall view.
And if i would like to use scar i would have to keep using an older version, because the new version has lost lots of old functions and has allot less functions available. I would have to rewrite the hole script, so i might as well do it in simba and try to improve it allot.
footballjds
2012-11-27 12:55:50
begin
SendKeys('/', 0, 0);
SendKeys('\', 0, 0);
end.
run that and tell me what happens. It sends both those keys for me fine…
StevenV
2012-11-27 14:03:22
this is the output : /> ,
it could have something to do with the fact i'm using a azerty keyboard
so i could change the settings to a qwerty,
but then i would have to change this everytime i start using simba and change it back when i'm done.
But this simply isn't really practical.
so that's not the problem,
if i change it to qwerty i get: ?|
footballjds
2012-11-27 14:39:44
you have a weird keyboard issue then… :/
I'd suggest using SCAR then…
StevenV
2012-11-27 14:46:20
but then it's strange that it does work with scar,
then i would have to use the old scar, but i don't like the view,
i like simba cause of the easy knowing which begin and end are together.
footballjds
2012-11-27 14:48:54
From: StevenV
but then it's strange that it does work with scar,
then i would have to use the old scar, but i don't like the view,
i like simba cause of the easy knowing which begin and end are together.
why couldn't you use the latest SCAR?
It's not surprising that it works in scar… :p
StevenV
2012-11-27 16:42:33
because the latest scar has lost lots of his functions,
i really don't know what happened.
And lot the old functions don't work, it has not many functions left to use
i tried to reinstall simba but without any result.
I really don't know why it's a problem on my computer (desktop) cause i thought all characters have the same code on every pc
at home a have 3 computers on which i can test this out.
If it works there then theres a problem with my pc,
if it does not work either, then there is a problem with belgian computers.