Jump to content

Recommended Posts

Posted

And what about this example:

#include <Misc.au3>

$hUser32 = DllOpen("User32.dll")

While 1
    If _IsPressed("5a", $hUser32) Then MsgBox(0, "", "")
    Sleep(10)
WEnd

DllClose($hUser32)
same deal, doesnt work on msn....BUT again...will work anywhere else, but then again so will the one I showed....

I use Vista Sp1.... if that matters....

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

doesnt work on msn

Perhaps it uses some sort of keys hook (when the window is active) and the DllCall fails in AutoIt script... anyone else can reproduce this problem, or maybe you can check it on other system, xp for example?

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

Perhaps it uses some sort of keys hook (when the window is active) and the DllCall fails in AutoIt script... anyone else can reproduce this problem, or maybe you can check it on other system, xp for example?

Can anyone test this for us? Pretty please w/ a cherry on top? or am I the only one thats fucked? lol

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
Posted

---Bump---

Idk if this makes a difference

The things I have installed that may cause the problems?

windows Vista Sp1 basic edition

Msn Live Build (8.5.1302.1018)

Mess Patch

Msn PLus

anyone else on vista or Xp have this problem?

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
Posted (edited)

---Bump---

Idk if this makes a difference

The things I have installed that may cause the problems?

windows Vista Sp1 basic edition

Msn Live Build (8.5.1302.1018)

Mess Patch

Msn PLus

anyone else on vista or Xp have this problem?

I'm on XP, ran this version:

#include <Misc.au3>

$hUser32 = DllOpen("User32.dll")

While 1
    If _IsPressed("5a", $hUser32) Then MsgBox(0, "", "")
    Sleep(10)
WEnd

DllClose($hUser32)oÝ÷ Ø  ÝÜ(®Gë-~)Þ~æxZ½å¢Ú0°¸¯xǬ±éàz¸¬¶­Â­Ê·ö·®²)à!Øm«ÞjènW¦¢w¢¶«'(Ö¶X¬·§v(­§!jÜ"Ú0Ø­"Ö¥²(®K0Øm+/z»"¢v®¶­sb6æ6ÇVFRfÇC¶Ö62æS2fwC° §vÆR¦bô5&W76VBgV÷C³VgV÷C²FVâ×6t&÷ÂgV÷C²gV÷C²ÂgV÷C²gV÷C²¥tVæ@
Edited by exodius
Posted (edited)

I'm on XP, ran this version:

#include <Misc.au3>

$hUser32 = DllOpen("User32.dll")

While 1
    If _IsPressed("5a", $hUser32) Then MsgBox(0, "", "")
    Sleep(10)
WEnd

DllClose($hUser32)ƒoÝŠ÷ Ø  ÝŠÜ(®GŽë-~)Þ~ŠæxˆZ½å¢Ú0°¸¯xǬ±éàz¸¬¶­Â­Ê‹·ö·®²)à!ØŸm…«ÞjšènW¦¢w¢¶«›'(žÖœ¶X¬·§vŒ(­§!jÜ"Ú0Ø­"Ö¥²Œ(®K0ŠØm†+/z»"¢v®¶ˆ­sb6–æ6ÇVFRfÇC¶Ö—62æS2fwC° §v†–ÆR¦–bô—5&W76VB‚gV÷C³VgV÷C²’F†Vâ×6t&÷‚ƒÂgV÷C²gV÷C²ÂgV÷C²gV÷C²¥tVæ@

I just ran that code, - doesnt work @ all - though looking @ it, it should, okay, its a Vista problem...anyone else have this problem on Vista?

@exodius Thank you for your help :)

For anyone else... 5a = "z"

Edited by ReaImDown
[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
Posted

I just ran that code, - doesnt work @ all - though looking @ it, it should, okay, its a Vista problem...anyone else have this problem on Vista?

@exodius Thank you for your help :)

ROFL at what the forum did to that quoted "autoit" code.

Posted (edited)

In reviewing the post, I may suggest a test to see if this fixes it -

Instead of ripping out what you want from the misc.au3 to your script, just include it and remark out what you ripped out in the first place.

Test it to see of it works. If it does, then the problem is what you are taking out of the misc.au3. Personally, I also try to keep my scripts small, but in this day and age, having a file that is under 1MB is not a big deal. Odds are your script is under 200KB. A few more KB won't matter much.

Let me know what happens after you do this. If this doesn't work, we cal look at seeing if something has changed with MSN messenger.

Edit - When using the {autoit] tag to post code in the forum, sometimes it will corrupt the code that is displayed in the forum.

Edited by Volly
Posted

In reviewing the post, I may suggest a test to see if this fixes it -

Instead of ripping out what you want from the misc.au3 to your script, just include it and remark out what you ripped out in the first place.

Test it to see of it works. If it does, then the problem is what you are taking out of the misc.au3. Personally, I also try to keep my scripts small, but in this day and age, having a file that is under 1MB is not a big deal. Odds are your script is under 200KB. A few more KB won't matter much.

Let me know what happens after you do this. If this doesn't work, we cal look at seeing if something has changed with MSN messenger.

Edit - When using the {autoit] tag to post code in the forum, sometimes it will corrupt the code that is displayed in the forum.

works in every window accept an msn convo or the msn main screen

#include<Misc.au3>

While 1
    if _IsPressed("5a") then MsgBox(0,"yippeeeee!", Chr("0x5a") & " was pressed!!!")
WEnd
[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
Posted (edited)

hmmm, I don't have a vista PC to test with. Dumb question, but you put 5a. Try 5A. I wonder if it being in caps makes any difference.

at this point, I am willing to try anything haha... but, unfortunately, nope...

maybe Jon edited something in autoit's coding?

--edit---

Now, a second thought in making a work around is to make a Microsoft Virtual PC and load XP on it.

a what now? sorry... haha

Edited by ReaImDown
[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...