Log in

View Full Version : alt gr keys



StevenV
11-19-2012, 04:49 PM
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
11-19-2012, 07:10 PM
are you using sendKeys, typeSend or other?

StevenV
11-19-2012, 10:46 PM
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
11-20-2012, 03:10 PM
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
11-20-2012, 08:25 PM
does not work to use getcharcode, because it returns the code for < instead of \

KingKong
11-21-2012, 10:23 AM
try using typebyte(ascii code of '\' here)

StevenV
11-21-2012, 04:13 PM
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
11-21-2012, 04:22 PM
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
11-22-2012, 08:40 AM
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
11-22-2012, 09:04 AM
Change your keyboard language to English (UK)

StevenV
11-23-2012, 11:05 AM
'\\' (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
11-23-2012, 12:40 PM
One other thing you could do is copy the / and make simba use ctrl + v :p

StevenV
11-25-2012, 08:44 PM
i thing i will have to enter part by part of the directory
'd:' enter, 'document' enter, ...
this untill this might been solved

footballjds
11-26-2012, 02:55 PM
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
11-27-2012, 04:19 PM
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
11-27-2012, 05:55 PM
begin
SendKeys('/', 0, 0);
SendKeys('\', 0, 0);
end.

run that and tell me what happens. It sends both those keys for me fine...

StevenV
11-27-2012, 07:03 PM
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
11-27-2012, 07:39 PM
you have a weird keyboard issue then... :/
I'd suggest using SCAR then...

StevenV
11-27-2012, 07:46 PM
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
11-27-2012, 07:48 PM
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
11-27-2012, 09:42 PM
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.