Sign in to follow this  
Followers 0
luzif3r

controlsend % (percent sign)

17 posts in this topic

well, it might be a huge oversight on my part, but i am unable to controlsend "%" (percent sign) to an inactive and minimized window. i have tried several conversions or even briefly activating the window, which works but it takes quite long and is just annoying. so can anyone tell me how to do this?

Share this post


Link to post
Share on other sites



Hi,

no prob for me:

Opt('WinTitleMatchMode', 4)
Run('notepad', '',@SW_MINIMIZE)
Global $text = InputBox("Dein Text", "Bitte Text eingeben")
ControlSend("classname=Notepad", "", 'Edit1', $text)

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

hm, your "solution" turns out to give me a '5' and i could have told you because i tried that one before. i guess the program does something special then? any way to circumvent that? maybe some formatting or send it raw thru some dll calls? i am really clueless of why that does not work..

Share this post


Link to post
Share on other sites

hm, your "solution" turns out to give me a '5' and i could have told you because i tried that one before. i guess the program does something special then? any way to circumvent that? maybe some formatting or send it raw thru some dll calls? i am really clueless of why that does not work..

Which program?


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Try

Opt('WinTitleMatchMode', 4)
Run('notepad', '',@SW_MINIMIZE)
Sleep(1000)
;Global $text = InputBox("Dein Text", "Bitte Text eingeben")
ControlSend("classname=Notepad", "", 'Edit1', '{ASC 037}')

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

thanks for staying with me but i tried the conversion already and i tried it again now but it just reads '037'. i hope it aint a problem that im using the window handle.

Share this post


Link to post
Share on other sites

Hi,

what program? Maybe somebody could help testing.

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

World of Warcraft to be exact and some other games like Hellgate London and i think i tried it on NFS prostreet

Share this post


Link to post
Share on other sites

all 5's

Share this post


Link to post
Share on other sites

The only other variation that comes to mind would be something like:

ControlSend("Untitled - Notepad","","Edit1",Chr(37))

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

its kinda embarrassing to bother you but it still gives me a 5 :/

code snippet:

Opt('WinTitleMatchMode', 4)
$wow_handle = WinGetHandle("classname=GxWindowClassD3d")
ControlSend($wow_handle, "", "", Chr(37))
Edited by luzif3r

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

as i assumed it is a bunch of 5's

thanks for helping anyways

Edited by luzif3r

Share this post


Link to post
Share on other sites

ControlSend("Untitled", "", "Edit1","+5+5+5+5+5")


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

result: 456456456456 @ hubertus

result: 55555 @ larry

Edited by luzif3r

Share this post


Link to post
Share on other sites

Send("{SHIFTDOWN}")

ControlSend("Untitled", "", "Edit1","55555")

Send("{SHIFTUP}")


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

result: abcabc123123 @hubertus ofc

your assumption is correct. how do i change that while keeping it minimized?

Edited by luzif3r

Share this post


Link to post
Share on other sites

@ larry: D'OH

IT WORKS

there is a 1 second window tho where everything is "shifted up" still that i didnt think of that.. XD

thanks a bunch!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0